Home
last modified time | relevance | path

Searched refs:ComputeNumSignBits (Results 1 – 25 of 63) sorted by relevance

123

/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp896 unsigned llvm::ComputeNumSignBits(Value *V, const TargetData *TD, in ComputeNumSignBits() function in llvm
918 return ComputeNumSignBits(U->getOperand(0), TD, Depth+1) + Tmp; in ComputeNumSignBits()
921 Tmp = ComputeNumSignBits(U->getOperand(0), TD, Depth+1); in ComputeNumSignBits()
938 Tmp = ComputeNumSignBits(U->getOperand(0), TD, Depth+1); in ComputeNumSignBits()
948 Tmp = ComputeNumSignBits(U->getOperand(0), TD, Depth+1); in ComputeNumSignBits()
950 Tmp2 = ComputeNumSignBits(U->getOperand(1), TD, Depth+1); in ComputeNumSignBits()
959 Tmp = ComputeNumSignBits(U->getOperand(1), TD, Depth+1); in ComputeNumSignBits()
961 Tmp2 = ComputeNumSignBits(U->getOperand(2), TD, Depth+1); in ComputeNumSignBits()
967 Tmp = ComputeNumSignBits(U->getOperand(0), TD, Depth+1); in ComputeNumSignBits()
989 Tmp2 = ComputeNumSignBits(U->getOperand(1), TD, Depth+1); in ComputeNumSignBits()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DValueTracking.cpp290 static unsigned ComputeNumSignBits(const Value *V, unsigned Depth,
293 unsigned llvm::ComputeNumSignBits(const Value *V, const DataLayout &DL, in ComputeNumSignBits() function in llvm
297 return ::ComputeNumSignBits(V, Depth, Query(DL, AC, safeCxtI(V, CxtI), DT)); in ComputeNumSignBits()
2204 static unsigned ComputeNumSignBits(const Value *V, unsigned Depth, in ComputeNumSignBits() function
2244 return ComputeNumSignBits(U->getOperand(0), Depth + 1, Q) + Tmp; in ComputeNumSignBitsImpl()
2256 unsigned NumBits = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2278 ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2300 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2316 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2328 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
[all …]
/external/llvm/lib/Analysis/
DValueTracking.cpp226 static unsigned ComputeNumSignBits(Value *V, unsigned Depth, const Query &Q);
228 unsigned llvm::ComputeNumSignBits(Value *V, const DataLayout &DL, in ComputeNumSignBits() function in llvm
232 return ::ComputeNumSignBits(V, Depth, Query(DL, AC, safeCxtI(V, CxtI), DT)); in ComputeNumSignBits()
1959 unsigned ComputeNumSignBits(Value *V, unsigned Depth, const Query &Q) { in ComputeNumSignBits() function
1975 return ComputeNumSignBits(U->getOperand(0), Depth + 1, Q) + Tmp; in ComputeNumSignBits()
1987 unsigned NumBits = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBits()
2009 ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBits()
2031 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBits()
2044 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBits()
2056 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBits()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DValueTracking.h81 unsigned ComputeNumSignBits(Value *Op, const TargetData *TD = 0,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp3139 unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const { in ComputeNumSignBits() function in SelectionDAG
3144 return ComputeNumSignBits(Op, DemandedElts, Depth); in ComputeNumSignBits()
3147 unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts, in ComputeNumSignBits() function in SelectionDAG
3184 Tmp2 = ComputeNumSignBits(Op.getOperand(i), Depth + 1); in ComputeNumSignBits()
3218 Tmp = ComputeNumSignBits(Op.getOperand(0), DemandedLHS, Depth + 1); in ComputeNumSignBits()
3220 Tmp2 = ComputeNumSignBits(Op.getOperand(1), DemandedRHS, Depth + 1); in ComputeNumSignBits()
3241 return ComputeNumSignBits(N0, DemandedElts, Depth + 1); in ComputeNumSignBits()
3248 Tmp = ComputeNumSignBits(N0, Depth + 1); in ComputeNumSignBits()
3257 return ComputeNumSignBits(Op.getOperand(0), DemandedElts, Depth+1) + Tmp; in ComputeNumSignBits()
3262 Tmp2 = ComputeNumSignBits(Op.getOperand(0), DemandedElts, Depth+1); in ComputeNumSignBits()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombine.h299 unsigned ComputeNumSignBits(Value *Op, unsigned Depth = 0) const {
300 return llvm::ComputeNumSignBits(Op, TD, Depth);
DInstCombineAddSub.cpp72 if (ComputeNumSignBits(LHS) > 1 && ComputeNumSignBits(RHS) > 1) in WillNotOverflowSignedAdd()
DInstCombineShifts.cpp651 ComputeNumSignBits(I.getOperand(0)) > ShAmt) { in visitShl()
756 unsigned NumSignBits = ComputeNumSignBits(Op0); in visitAShr()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DValueTrackingTest.cpp260 EXPECT_EQ(ComputeNumSignBits(RVal, M->getDataLayout()), 1u); in TEST()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h487 unsigned ComputeNumSignBits(Value *Op, unsigned Depth = 0,
489 return llvm::ComputeNumSignBits(Op, DL, Depth, AC, CxtI, DT);
DInstCombineAddSub.cpp892 if (ComputeNumSignBits(LHS, 0, &CxtI) > 1 && in WillNotOverflowSignedAdd()
893 ComputeNumSignBits(RHS, 0, &CxtI) > 1) in WillNotOverflowSignedAdd()
929 if (ComputeNumSignBits(LHS, 0, &CxtI) > 1 && in WillNotOverflowSignedSub()
930 ComputeNumSignBits(RHS, 0, &CxtI) > 1) in WillNotOverflowSignedSub()
DInstCombineMulDivRem.cpp148 ComputeNumSignBits(LHS, 0, &CxtI) + ComputeNumSignBits(RHS, 0, &CxtI); in WillNotOverflowSignedMul()
DInstCombineShifts.cpp722 ComputeNumSignBits(I.getOperand(0), 0, &I) > ShAmt) { in visitShl()
/external/llvm/include/llvm/Analysis/
DValueTracking.h144 unsigned ComputeNumSignBits(Value *Op, const DataLayout &DL,
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2527 unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const { in ComputeNumSignBits() function in SelectionDAG
2554 return ComputeNumSignBits(Op.getOperand(0), Depth+1) + Tmp; in ComputeNumSignBits()
2562 Tmp2 = ComputeNumSignBits(Op.getOperand(0), Depth+1); in ComputeNumSignBits()
2566 Tmp = ComputeNumSignBits(Op.getOperand(0), Depth+1); in ComputeNumSignBits()
2576 Tmp = ComputeNumSignBits(Op.getOperand(0), Depth+1); in ComputeNumSignBits()
2586 Tmp = ComputeNumSignBits(Op.getOperand(0), Depth+1); in ComputeNumSignBits()
2588 Tmp2 = ComputeNumSignBits(Op.getOperand(1), Depth+1); in ComputeNumSignBits()
2597 Tmp = ComputeNumSignBits(Op.getOperand(1), Depth+1); in ComputeNumSignBits()
2599 Tmp2 = ComputeNumSignBits(Op.getOperand(2), Depth+1); in ComputeNumSignBits()
2602 Tmp = ComputeNumSignBits(Op.getOperand(2), Depth+1); in ComputeNumSignBits()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DValueTracking.h160 unsigned ComputeNumSignBits(const Value *Op, const DataLayout &DL,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h655 unsigned ComputeNumSignBits(const Value *Op, unsigned Depth = 0,
657 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT);
DInstCombineShifts.cpp664 if (!I.hasNoSignedWrap() && ComputeNumSignBits(Op0, 0, &I) > ShAmt) { in visitShl()
DInstCombineCasts.cpp415 IC.ComputeNumSignBits(I->getOperand(0), 0, CxtI)) in canEvaluateTruncated()
1365 if (ComputeNumSignBits(Res, 0, &CI) > DestBitSize - SrcBitSize) in visitSExt()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2094 unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const{ in ComputeNumSignBits() function in SelectionDAG
2120 return ComputeNumSignBits(Op.getOperand(0), Depth+1) + Tmp; in ComputeNumSignBits()
2128 Tmp2 = ComputeNumSignBits(Op.getOperand(0), Depth+1); in ComputeNumSignBits()
2132 Tmp = ComputeNumSignBits(Op.getOperand(0), Depth+1); in ComputeNumSignBits()
2142 Tmp = ComputeNumSignBits(Op.getOperand(0), Depth+1); in ComputeNumSignBits()
2152 Tmp = ComputeNumSignBits(Op.getOperand(0), Depth+1); in ComputeNumSignBits()
2154 Tmp2 = ComputeNumSignBits(Op.getOperand(1), Depth+1); in ComputeNumSignBits()
2163 Tmp = ComputeNumSignBits(Op.getOperand(1), Depth+1); in ComputeNumSignBits()
2165 Tmp2 = ComputeNumSignBits(Op.getOperand(2), Depth+1); in ComputeNumSignBits()
2194 Tmp = ComputeNumSignBits(Op.getOperand(0), Depth+1); in ComputeNumSignBits()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp513 unsigned LHSSignBits = ComputeNumSignBits(Num, DL, 0, AC, &I); in expandDivRem24()
517 unsigned RHSSignBits = ComputeNumSignBits(Den, DL, 0, AC, &I); in expandDivRem24()
DAMDGPUISelLowering.cpp143 return VT.getSizeInBits() - DAG.ComputeNumSignBits(Op); in numBitsSigned()
1455 unsigned LHSSignBits = DAG.ComputeNumSignBits(LHS); in LowerDIVREM24()
1459 unsigned RHSSignBits = DAG.ComputeNumSignBits(RHS); in LowerDIVREM24()
1894 DAG.ComputeNumSignBits(LHS) > 32 && in LowerSDIVREM()
1895 DAG.ComputeNumSignBits(RHS) > 32) { in LowerSDIVREM()
3828 unsigned OpSignBits = DAG.ComputeNumSignBits(BitsFrom); in PerformDAGCombine()
4304 unsigned Op0SignBits = DAG.ComputeNumSignBits(Op.getOperand(0), Depth + 1); in ComputeNumSignBitsForTargetNode()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp1240 unsigned LHSSignBits = DAG.ComputeNumSignBits(LHS); in LowerDIVREM24()
1244 unsigned RHSSignBits = DAG.ComputeNumSignBits(RHS); in LowerDIVREM24()
1544 DAG.ComputeNumSignBits(LHS) > 32 && in LowerSDIVREM()
1545 DAG.ComputeNumSignBits(RHS) > 32) { in LowerSDIVREM()
2133 (VT.getSizeInBits() - DAG.ComputeNumSignBits(Op)) < 24; in isI24()
2662 unsigned OpSignBits = DAG.ComputeNumSignBits(BitsFrom); in PerformDAGCombine()
2971 unsigned Op0SignBits = DAG.ComputeNumSignBits(Op.getOperand(0), Depth + 1); in ComputeNumSignBitsForTargetNode()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DSelectionDAG.h1467 unsigned ComputeNumSignBits(SDValue Op, unsigned Depth = 0) const;
1477 unsigned ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
/external/swiftshader/third_party/LLVM/lib/Target/XCore/
DXCoreISelLowering.cpp669 unsigned LHSSB = DAG.ComputeNumSignBits(Mul.getOperand(0)); in TryExpandADDWithMul()
670 unsigned RHSSB = DAG.ComputeNumSignBits(Mul.getOperand(1)); in TryExpandADDWithMul()

123