Home
last modified time | relevance | path

Searched refs:ConstInt (Results 1 – 16 of 16) 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp346 ConstantInt *ConstInt) { in collectConstantCandidates() argument
352 ConstInt->getValue(), ConstInt->getType()); in collectConstantCandidates()
354 Cost = TTI->getIntImmCost(Inst->getOpcode(), Idx, ConstInt->getValue(), in collectConstantCandidates()
355 ConstInt->getType()); in collectConstantCandidates()
361 std::tie(Itr, Inserted) = ConstCandMap.insert(std::make_pair(ConstInt, 0)); in collectConstantCandidates()
363 ConstCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
368 << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
370 else dbgs() << "Collect constant " << *ConstInt in collectConstantCandidates()
383 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
384 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-7.0/llvm/include/llvm/Transforms/Scalar/
DConstantHoisting.h77 ConstantInt *ConstInt; member
80 ConstantCandidate(ConstantInt *ConstInt) : ConstInt(ConstInt) {} in ConstantCandidate()
146 ConstantInt *ConstInt);
/external/swiftshader/third_party/llvm-7.0/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.go793 func ConstInt(t Type, n uint64, signExtend bool) (v Value) { func
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCLoopPreIncPrep.cpp305 const APInt &ConstInt = StepConst->getValue()->getValue(); in runOnLoop() local
306 if (ConstInt.isSignedIntN(16) && ConstInt.srem(4) != 0) in runOnLoop()
DPPCFastISel.cpp854 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(SrcValue2)) { in PPCEmitCmp() local
857 const APInt &CIVal = ConstInt->getValue(); in PPCEmitCmp()
1295 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(1))) { in SelectBinaryIntOp() local
1296 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLocal.cpp1660 auto *ConstInt = dyn_cast<ConstantInt>(I.getOperand(1)); in salvageDebugInfo() local
1661 if (!ConstInt || ConstInt->getBitWidth() > 64) in salvageDebugInfo()
1664 uint64_t Val = ConstInt->getSExtValue(); in salvageDebugInfo()
/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-7.0/llvm/lib/Target/ARM/
DARMFastISel.cpp1372 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(Src2Value)) { in ARMEmitCmp() local
1375 const APInt &CIVal = ConstInt->getValue(); in ARMEmitCmp()
1643 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(2))) { in SelectSelect() local
1645 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/swiftshader/third_party/subzero/src/
DIceTargetLoweringX86BaseImpl.h1391 auto *ConstInt = llvm::dyn_cast<ConstantInteger32>(
1394 return legalize(ConstInt);
1420 auto *ConstInt = llvm::dyn_cast<ConstantInteger32>(
1423 return legalize(ConstInt);
5650 if (auto *ConstInt =
5652 ZeroesAvailable = ConstInt->getValue();