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.cpp362 ConstantInt *ConstInt) { in collectConstantCandidates() argument
363 if (ConstInt->getType()->isVectorTy()) in collectConstantCandidates()
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()
[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.cpp230 auto ConstInt = ConstantInt::get(IntegerType::get(CI->getContext(), 32), 0); in visitCallScalToVec() local
233 PVal, CI->getOperand(1), ConstInt, "", CI->getIterator()); in visitCallScalToVec()
235 Constant *ConstVec = ConstantVector::getSplat(VecElemCount, ConstInt); in visitCallScalToVec()
H A DSPIRVGlobalRegistry.cpp639 const auto ConstInt = ConstantInt::get(LLVMBaseTy, Val); in getOrCreateConsIntVector() local
641 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstInt); in getOrCreateConsIntVector()
H A DSPIRVInstructionSelector.cpp2490 auto ConstInt = ConstantInt::get(LLVMTy, Val); in buildI32Constant() local
2491 Register NewReg = GR.find(ConstInt, GR.CurMF); in buildI32Constant()
2506 GR.add(ConstInt, MI); in buildI32Constant()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DAssumeBundleQueries.cpp110 if (auto *ConstInt = dyn_cast<ConstantInt>( in getKnowledgeFromBundle() local
112 return ConstInt->getZExtValue(); in getKnowledgeFromBundle()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp1064 if (auto *ConstInt = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in optimizeStrNCmp() local
1065 N = std::min(N, ConstInt->getZExtValue()); in optimizeStrNCmp()
1192 if (auto *ConstInt = dyn_cast<ConstantInt>(Call->getArgOperand(2))) { in foldMemChr() local
1193 uint64_t Val = ConstInt->getZExtValue(); in foldMemChr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2508 auto *ConstInt = dyn_cast<ConstantInt>(BI->getOperand(1)); in getSalvageOpsForBinOp() local
2510 if (ConstInt && ConstInt->getBitWidth() > 64) in getSalvageOpsForBinOp()
2515 if (ConstInt) { in getSalvageOpsForBinOp()
2516 uint64_t Val = ConstInt->getSExtValue(); in getSalvageOpsForBinOp()
2567 auto *ConstInt = dyn_cast<ConstantInt>(Icmp->getOperand(1)); in getSalvageOpsForIcmpOp() local
2569 if (ConstInt && ConstInt->getBitWidth() > 64) in getSalvageOpsForIcmpOp()
2572 if (ConstInt) { in getSalvageOpsForIcmpOp()
2577 uint64_t Val = ConstInt->getSExtValue(); in getSalvageOpsForIcmpOp()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp1327 const APInt &ConstInt = StepConst->getValue()->getValue(); in runOnLoop() local
1328 if (ConstInt.isSignedIntN(16) && ConstInt.srem(4) != 0) in runOnLoop()
H A DPPCFastISel.cpp827 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(SrcValue2)) { in PPCEmitCmp() local
830 const APInt &CIVal = ConstInt->getValue(); in PPCEmitCmp()
1293 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(1))) { in SelectBinaryIntOp() local
1294 const APInt &CIVal = ConstInt->getValue(); in SelectBinaryIntOp()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h1102 APInt ConstInt;
1103 if (sd_context_match(N, Ctx, m_ConstInt(ConstInt)))
1104 return APInt::isSameValue(IntVal, ConstInt);
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMFastISel.cpp1401 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(Src2Value)) { in ARMEmitCmp() local
1404 const APInt &CIVal = ConstInt->getValue(); in ARMEmitCmp()
1676 if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(I->getOperand(2))) { in SelectSelect() local
1678 Imm = (int)ConstInt->getValue().getZExtValue(); in SelectSelect()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp84 if (ConstantInt *ConstInt = dyn_cast<ConstantInt>(&V)) { in canSafelyConvertTo16Bit() local
87 APInt IntValue(ConstInt->getValue()); in canSafelyConvertTo16Bit()