Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp367 ConstantInt *ConstInt) { in collectConstantCandidates() argument
368 if (ConstInt->getType()->isVectorTy()) in collectConstantCandidates()
376 ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
380 Inst->getOpcode(), Idx, ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
387 ConstPtrUnionType Cand = ConstInt; in collectConstantCandidates()
390 ConstIntCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
395 << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
397 else dbgs() << "Collect constant " << *ConstInt in collectConstantCandidates()
462 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
463 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h87 ConstantInt *ConstInt; member
91 ConstantCandidate(ConstantInt *ConstInt, ConstantExpr *ConstExpr=nullptr) :
92 ConstInt(ConstInt), ConstExpr(ConstExpr) {} in ConstInt() function
185 ConstantInt *ConstInt);
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
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 DSPIRVGlobalRegistry.cpp307 const auto ConstInt = in buildConstantInt() local
309 Register Res = DT.find(ConstInt, &MF); in buildConstantInt()
317 DT.add(ConstInt, &MIRBuilder.getMF(), Res); in buildConstantInt()
319 MIRBuilder.buildConstant(Res, *ConstInt); in buildConstantInt()
547 const auto ConstInt = ConstantInt::get(LLVMBaseTy, Val); in getOrCreateConsIntVector() local
549 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector()
H A DSPIRVInstructionSelector.cpp1585 auto ConstInt = ConstantInt::get(LLVMTy, Val); in buildI32Constant() local
1586 Register NewReg = GR.find(ConstInt, GR.CurMF); in buildI32Constant()
1589 GR.add(ConstInt, GR.CurMF, NewReg); in buildI32Constant()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DAssumeBundleQueries.cpp109 if (auto *ConstInt = dyn_cast<ConstantInt>( in getKnowledgeFromBundle()
111 return ConstInt->getZExtValue(); in getKnowledgeFromBundle()
106 if (auto *ConstInt = dyn_cast<ConstantInt>( getKnowledgeFromBundle() local
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp1001 if (auto *ConstInt = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in optimizeStrNCmp()
1002 N = std::min(N, ConstInt->getZExtValue()); in optimizeStrNCmp() local
1122 if (auto *ConstInt = dyn_cast<ConstantInt>(Call->getArgOperand(2))) { in foldMemChr()
1123 uint64_t Val = ConstInt->getZExtValue(); in foldMemChr() local
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2467 auto *ConstInt = dyn_cast<ConstantInt>(BI->getOperand(1)); in getSalvageOpsForBinOp() local
2469 if (ConstInt && ConstInt->getBitWidth() > 64) in getSalvageOpsForBinOp()
2474 if (ConstInt) { in getSalvageOpsForBinOp()
2475 uint64_t Val = ConstInt->getSExtValue(); in getSalvageOpsForBinOp()
2526 auto *ConstInt = dyn_cast<ConstantInt>(Icmp->getOperand(1)); in getSalvageOpsForIcmpOp() local
2528 if (ConstInt && ConstInt->getBitWidth() > 64) in getSalvageOpsForIcmpOp()
2531 if (ConstInt) { in getSalvageOpsForIcmpOp()
2536 uint64_t Val = ConstInt->getSExtValue(); in getSalvageOpsForIcmpOp()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h760 APInt ConstInt;
761 if (sd_context_match(N, Ctx, m_ConstInt(ConstInt)))
762 return APInt::isSameValue(IntVal, ConstInt);
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp1336 const APInt &ConstInt = StepConst->getValue()->getValue(); in runOnLoop() local
1337 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()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp83 if (ConstantInt *ConstInt = dyn_cast<ConstantInt>(&V)) { in canSafelyConvertTo16Bit() local
86 APInt IntValue(ConstInt->getValue()); in canSafelyConvertTo16Bit()
/freebsd/contrib/llvm-project/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()