Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp365 ConstantInt *ConstInt) { in collectConstantCandidates() argument
371 ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
375 Inst->getOpcode(), Idx, ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
382 ConstPtrUnionType Cand = ConstInt; in collectConstantCandidates()
385 ConstIntCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
390 << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
392 else dbgs() << "Collect constant " << *ConstInt in collectConstantCandidates()
457 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
458 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
469 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() local
[all …]
/openbsd-src/gnu/llvm/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);
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp188 const auto ConstInt = in buildConstantInt() local
190 Register Res = DT.find(ConstInt, &MF); in buildConstantInt()
197 DT.add(ConstInt, &MIRBuilder.getMF(), Res); in buildConstantInt()
199 MIRBuilder.buildConstant(Res, *ConstInt); in buildConstantInt()
297 const auto ConstInt = ConstantInt::get(LLVMBaseTy, Val); in getOrCreateConsIntVector() local
299 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector()
313 const auto ConstInt = ConstantInt::get(LLVMBaseTy, Val); in getOrCreateConsIntArray() local
315 ConstantArray::get(const_cast<ArrayType *>(LLVMArrTy), {ConstInt}); in getOrCreateConsIntArray()
366 const auto ConstInt = ConstantInt::get(LLVMBaseTy, Val); in getOrCreateConsIntVector() local
368 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector()
[all …]
H A DSPIRVRegularizer.cpp235 auto ConstInt = ConstantInt::get(IntegerType::get(CI->getContext(), 32), 0); in visitCallScalToVec() local
238 InsertElementInst::Create(PVal, CI->getOperand(1), ConstInt, "", CI); in visitCallScalToVec()
240 Constant *ConstVec = ConstantVector::getSplat(VecElemCount, ConstInt); in visitCallScalToVec()
H A DSPIRVInstructionSelector.cpp1043 auto ConstInt = ConstantInt::get(LLVMTy, Val); in buildI32Constant() local
1044 Register NewReg = GR.find(ConstInt, GR.CurMF); in buildI32Constant()
1047 GR.add(ConstInt, GR.CurMF, NewReg); in buildI32Constant()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DAssumeBundleQueries.cpp106 if (auto *ConstInt = dyn_cast<ConstantInt>( in getKnowledgeFromBundle() local
108 return ConstInt->getZExtValue(); in getKnowledgeFromBundle()
/openbsd-src/gnu/llvm/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.cpp839 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(SrcValue2)) { in PPCEmitCmp() local
842 const APInt &CIVal = ConstInt->getValue(); in PPCEmitCmp()
1304 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(1))) { in SelectBinaryIntOp() local
1305 const APInt &CIVal = ConstInt->getValue(); in SelectBinaryIntOp()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLocal.cpp1983 auto *ConstInt = dyn_cast<ConstantInt>(BI->getOperand(1)); in getSalvageOpsForBinOp() local
1985 if (ConstInt && ConstInt->getBitWidth() > 64) in getSalvageOpsForBinOp()
1990 if (ConstInt) { in getSalvageOpsForBinOp()
1991 uint64_t Val = ConstInt->getSExtValue(); in getSalvageOpsForBinOp()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp82 if (ConstantInt *ConstInt = dyn_cast<ConstantInt>(&V)) { in canSafelyConvertTo16Bit() local
85 APInt IntValue(ConstInt->getValue()); in canSafelyConvertTo16Bit()
/openbsd-src/gnu/llvm/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()