Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp181 ConstantInt *ConstInt) { in collectConstantCandidates() argument
187 ConstInt->getValue(), ConstInt->getType()); in collectConstantCandidates()
189 Cost = TTI->getIntImmCost(Inst->getOpcode(), Idx, ConstInt->getValue(), in collectConstantCandidates()
190 ConstInt->getType()); in collectConstantCandidates()
196 std::tie(Itr, Inserted) = ConstCandMap.insert(std::make_pair(ConstInt, 0)); in collectConstantCandidates()
198 ConstCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
203 dbgs() << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
206 dbgs() << "Collect constant " << *ConstInt << " indirectly from " in collectConstantCandidates()
243 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
244 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp360 ConstantInt *ConstInt) { in collectConstantCandidates() argument
366 ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
370 Inst->getOpcode(), Idx, ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
377 ConstPtrUnionType Cand = ConstInt; in collectConstantCandidates()
380 ConstIntCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
385 << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
387 else dbgs() << "Collect constant " << *ConstInt in collectConstantCandidates()
444 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
445 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
456 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp360 ConstantInt *ConstInt) { in collectConstantCandidates() argument
366 ConstInt->getValue(), ConstInt->getType()); in collectConstantCandidates()
368 Cost = TTI->getIntImmCostInst(Inst->getOpcode(), Idx, ConstInt->getValue(), in collectConstantCandidates()
369 ConstInt->getType()); in collectConstantCandidates()
375 ConstPtrUnionType Cand = ConstInt; in collectConstantCandidates()
378 ConstIntCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
383 << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
385 else dbgs() << "Collect constant " << *ConstInt in collectConstantCandidates()
440 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
441 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
[all …]
/external/llvm/include/llvm/Transforms/Scalar/
DConstantHoisting.h63 ConstantInt *ConstInt; member
66 ConstantCandidate(ConstantInt *ConstInt) in ConstantCandidate()
67 : ConstInt(ConstInt), CumulativeCost(0) { } in ConstantCandidate()
131 ConstantInt *ConstInt);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DConstantHoisting.h85 ConstantInt *ConstInt; member
89 ConstantCandidate(ConstantInt *ConstInt, ConstantExpr *ConstExpr=nullptr) :
90 ConstInt(ConstInt), ConstExpr(ConstExpr) {} in ConstInt() function
177 ConstantInt *ConstInt);
/external/llvm-project/llvm/include/llvm/Transforms/Scalar/
DConstantHoisting.h85 ConstantInt *ConstInt; member
89 ConstantCandidate(ConstantInt *ConstInt, ConstantExpr *ConstExpr=nullptr) :
90 ConstInt(ConstInt), ConstExpr(ConstExpr) {} in ConstInt() function
177 ConstantInt *ConstInt);
/external/llvm/bindings/go/llvm/
Dexecutionengine_test.go42 If := builder.CreateICmp(IntEQ, n, ConstInt(Int32Type(), 0, false), "cmptmp")
46 res_iftrue := ConstInt(Int32Type(), 1, false)
50 n_minus := builder.CreateSub(n, ConstInt(Int32Type(), 1, false), "subtmp")
Dir.go765 func ConstInt(t Type, n uint64, signExtend bool) (v Value) { func
/external/llvm-project/llvm/bindings/go/llvm/
Dexecutionengine_test.go41 If := builder.CreateICmp(IntEQ, n, ConstInt(Int32Type(), 0, false), "cmptmp")
45 res_iftrue := ConstInt(Int32Type(), 1, false)
49 n_minus := builder.CreateSub(n, ConstInt(Int32Type(), 1, false), "subtmp")
Dir.go831 func ConstInt(t Type, n uint64, signExtend bool) (v Value) { func
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dperformance-for-range-copy.cpp191 typedef const int ConstInt; in negativeConstCheapToCopyTypedef() typedef
192 for (ConstInt C : View<Iterator<ConstInt>>()) { in negativeConstCheapToCopyTypedef()
/external/llvm-project/llvm/lib/Analysis/
DAssumeBundleQueries.cpp112 if (auto *ConstInt = dyn_cast<ConstantInt>( in getKnowledgeFromBundle() local
114 return ConstInt->getZExtValue(); in getKnowledgeFromBundle()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCLoopInstrFormPrep.cpp852 const APInt &ConstInt = StepConst->getValue()->getValue(); in runOnLoop() local
853 if (ConstInt.isSignedIntN(16) && ConstInt.srem(4) != 0) in runOnLoop()
DPPCFastISel.cpp845 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(SrcValue2)) { in PPCEmitCmp() local
848 const APInt &CIVal = ConstInt->getValue(); in PPCEmitCmp()
1308 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(1))) { in SelectBinaryIntOp() local
1309 const APInt &CIVal = ConstInt->getValue(); in SelectBinaryIntOp()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCLoopInstrFormPrep.cpp838 const APInt &ConstInt = StepConst->getValue()->getValue(); in runOnLoop() local
839 if (ConstInt.isSignedIntN(16) && ConstInt.srem(4) != 0) in runOnLoop()
DPPCFastISel.cpp843 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(SrcValue2)) { in PPCEmitCmp() local
846 const APInt &CIVal = ConstInt->getValue(); in PPCEmitCmp()
1305 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(1))) { in SelectBinaryIntOp() local
1306 const APInt &CIVal = ConstInt->getValue(); in SelectBinaryIntOp()
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp833 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(SrcValue2)) { in PPCEmitCmp() local
836 const APInt &CIVal = ConstInt->getValue(); in PPCEmitCmp()
1208 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(1))) { in SelectBinaryIntOp() local
1209 const APInt &CIVal = ConstInt->getValue(); in SelectBinaryIntOp()
/external/llvm-project/llvm/lib/Transforms/Utils/
DLocal.cpp1832 auto *ConstInt = dyn_cast<ConstantInt>(I.getOperand(1)); in salvageDebugInfoImpl() local
1833 if (!ConstInt || ConstInt->getBitWidth() > 64) in salvageDebugInfoImpl()
1836 uint64_t Val = ConstInt->getSExtValue(); in salvageDebugInfoImpl()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLocal.cpp1714 auto *ConstInt = dyn_cast<ConstantInt>(I.getOperand(1)); in salvageDebugInfoImpl() local
1715 if (!ConstInt || ConstInt->getBitWidth() > 64) in salvageDebugInfoImpl()
1718 uint64_t Val = ConstInt->getSExtValue(); in salvageDebugInfoImpl()
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp1367 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(Src2Value)) { in ARMEmitCmp() local
1370 const APInt &CIVal = ConstInt->getValue(); in ARMEmitCmp()
1627 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(2))) { in SelectSelect() local
1629 Imm = (int)ConstInt->getValue().getZExtValue(); in SelectSelect()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMFastISel.cpp1370 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(Src2Value)) { in ARMEmitCmp() local
1373 const APInt &CIVal = ConstInt->getValue(); in ARMEmitCmp()
1632 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(2))) { in SelectSelect() local
1634 Imm = (int)ConstInt->getValue().getZExtValue(); in SelectSelect()
/external/llvm-project/llvm/lib/Target/ARM/
DARMFastISel.cpp1357 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(Src2Value)) { in ARMEmitCmp() local
1360 const APInt &CIVal = ConstInt->getValue(); in ARMEmitCmp()
1619 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(2))) { in SelectSelect() local
1621 Imm = (int)ConstInt->getValue().getZExtValue(); in SelectSelect()
/external/clang/test/SemaCXX/
Dtype-traits.cpp1184 typedef const int ConstInt; in is_standard_layout() typedef
1185 typedef ConstInt ConstIntAr[4]; in is_standard_layout()
1189 int t02[T(__is_standard_layout(ConstInt))]; in is_standard_layout()
/external/llvm-project/clang/test/SemaCXX/
Dtype-traits.cpp1331 typedef const int ConstInt; in is_standard_layout() typedef
1332 typedef ConstInt ConstIntAr[4]; in is_standard_layout()
1336 int t02[T(__is_standard_layout(ConstInt))]; in is_standard_layout()
/external/swiftshader/third_party/subzero/src/
DIceTargetLoweringX86BaseImpl.h1441 auto *ConstInt = llvm::dyn_cast<ConstantInteger32>(
1444 return legalize(ConstInt);
1470 auto *ConstInt = llvm::dyn_cast<ConstantInteger32>(
1473 return legalize(ConstInt);
5729 if (auto *ConstInt =
5731 ZeroesAvailable = ConstInt->getValue();