Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp367 ConstantInt *ConstInt) { in collectConstantCandidates() argument
373 ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
377 Inst->getOpcode(), Idx, ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
645 ConstantInt *ConstInt = MaxCostItr->ConstInt; in findAndMakeBaseConstant() local
648 ConstInfo.BaseInt = ConstInt; in findAndMakeBaseConstant()
650 Type *Ty = ConstInt->getType(); in findAndMakeBaseConstant()
654 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant()
677 if (LHS.ConstInt->getType() != RHS.ConstInt->getType()) in findBaseConstants()
680 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue()); in findBaseConstants()
688 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) { in findBaseConstants()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h84 ConstantInt *ConstInt; member
88 ConstantCandidate(ConstantInt *ConstInt, ConstantExpr *ConstExpr=nullptr) :
89 ConstInt(ConstInt), ConstExpr(ConstExpr) {} in ConstInt() function
176 ConstantInt *ConstInt);
/llvm-project-15.0.7/llvm/bindings/go/llvm/
H A 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")
H A Dir.go831 func ConstInt(t Type, n uint64, signExtend bool) (v Value) { func
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dfor-range-copy.cpp191 typedef const int ConstInt; in negativeConstCheapToCopyTypedef() typedef
192 for (ConstInt C : View<Iterator<ConstInt>>()) { in negativeConstCheapToCopyTypedef()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DAssumeBundleQueries.cpp106 if (auto *ConstInt = dyn_cast<ConstantInt>( in getKnowledgeFromBundle() local
108 return ConstInt->getZExtValue(); in getKnowledgeFromBundle()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp187 const auto ConstInt = in buildConstantInt() local
189 Register Res = DT.find(ConstInt, &MF); in buildConstantInt()
196 DT.add(ConstInt, &MIRBuilder.getMF(), Res); in buildConstantInt()
198 MIRBuilder.buildConstant(Res, *ConstInt); in buildConstantInt()
255 const auto ConstInt = ConstantInt::get(LLVMBaseTy, Val); in getOrCreateConsIntVector() local
257 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector()
H A DSPIRVInstructionSelector.cpp878 auto ConstInt = ConstantInt::get(LLVMTy, Val); in buildI32Constant() local
879 Register NewReg = GR.find(ConstInt, GR.CurMF); in buildI32Constant()
882 GR.add(ConstInt, GR.CurMF, NewReg); in buildI32Constant()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp1329 const APInt &ConstInt = StepConst->getValue()->getValue(); in runOnLoop() local
1330 if (ConstInt.isSignedIntN(16) && ConstInt.srem(4) != 0) in runOnLoop()
H A DPPCFastISel.cpp840 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(SrcValue2)) { in PPCEmitCmp() local
843 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()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLocal.cpp1877 auto *ConstInt = dyn_cast<ConstantInt>(BI->getOperand(1)); in getSalvageOpsForBinOp() local
1879 if (ConstInt && ConstInt->getBitWidth() > 64) in getSalvageOpsForBinOp()
1884 if (ConstInt) { in getSalvageOpsForBinOp()
1885 uint64_t Val = ConstInt->getSExtValue(); in getSalvageOpsForBinOp()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp80 if (ConstantInt *ConstInt = dyn_cast<ConstantInt>(&V)) { in canSafelyConvertTo16Bit() local
83 APInt IntValue(ConstInt->getValue()); in canSafelyConvertTo16Bit()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A 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()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dtype-traits.cpp1332 typedef const int ConstInt; in is_standard_layout() typedef
1333 typedef ConstInt ConstIntAr[4]; in is_standard_layout()
1337 int t02[T(__is_standard_layout(ConstInt))]; in is_standard_layout()