/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstantHoisting.cpp | 367 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 D | ConstantHoisting.h | 87 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 D | SPIRVRegularizer.cpp | 235 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 D | SPIRVGlobalRegistry.cpp | 307 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 D | SPIRVInstructionSelector.cpp | 1585 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 D | AssumeBundleQueries.cpp | 109 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 D | AggressiveInstCombine.cpp | 1001 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 D | Local.cpp | 2467 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 D | SDPatternMatch.h | 760 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 D | PPCLoopInstrFormPrep.cpp | 1336 const APInt &ConstInt = StepConst->getValue()->getValue(); in runOnLoop() local 1337 if (ConstInt.isSignedIntN(16) && ConstInt.srem(4) != 0) in runOnLoop()
|
H A D | PPCFastISel.cpp | 839 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 D | AMDGPUInstCombineIntrinsic.cpp | 83 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 D | ARMFastISel.cpp | 1357 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()
|