/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUPrintfRuntimeBinding.cpp | 349 Value *sumC = ConstantInt::get(SizetTy, Sum, false); 378 ConstantInt *zeroInt = 379 ConstantInt::get(Ctx, APInt(32, StringRef("0"), 10)); 390 new StoreInst(ConstantInt::get(I32Ty, UniqID), id_gep_cast, Brnch); 393 ConstantInt *fourInt = 394 ConstantInt::get(Ctx, APInt(32, StringRef("4"), 10)); 462 Value *ANumV = ConstantInt::get(Int32Ty, ANum, false); 468 Value *ANumV = ConstantInt::get(Int32Ty, 0xFFFFFF00, false); 531 BuffOffset.push_back(ConstantInt::get(I32Ty, ArgSize));
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VectorCombine.cpp | 96 assert(isa<ConstantInt>(Ext0->getIndexOperand()) && 97 isa<ConstantInt>(Ext1->getIndexOperand()) && 100 unsigned Index0 = cast<ConstantInt>(Ext0->getIndexOperand())->getZExtValue(); 101 unsigned Index1 = cast<ConstantInt>(Ext1->getIndexOperand())->getZExtValue(); 141 assert(isa<ConstantInt>(Ext0->getOperand(1)) && 142 isa<ConstantInt>(Ext1->getOperand(1)) && 164 unsigned Ext0Index = cast<ConstantInt>(Ext0->getOperand(1))->getZExtValue(); 165 unsigned Ext1Index = cast<ConstantInt>(Ext1->getOperand(1))->getZExtValue(); 249 assert(isa<ConstantInt>(C) && "Expected a constant index operand"); 253 Value *Shuf = createShiftShuffle(X, cast<ConstantInt>( [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | SanitizerCoverage.cpp | 358 ConstantInt::get(IntptrTy, sizeof(uint64_t))); 724 ConstantInt::get(IntptrTy, 1), IntptrPtrTy)); 729 ConstantInt::get(IntptrTy, 0), IntptrPtrTy)); 805 Initializers.push_back(ConstantInt::get(Int64Ty, SI->getNumCases())); 807 ConstantInt::get(Int64Ty, Cond->getType()->getScalarSizeInBits())); 820 return cast<ConstantInt>(A)->getLimitedValue() < 821 cast<ConstantInt>(B)->getLimitedValue(); 839 if (isa<ConstantInt>(A1)) continue; 857 if (!isa<ConstantInt>(*I) && (*I)->getType()->isIntegerTy()) 880 bool FirstIsConst = isa<ConstantInt>(A [all...] |
H A D | AddressSanitizer.cpp | 613 const ConstantInt *CI = dyn_cast<ConstantInt>(AI.getArraySize()); 1059 auto *Size = cast<ConstantInt>(II.getArgOperand(0)); 1066 !ConstantInt::isValueValidForType(IntptrTy, SizeValue)) 1122 LineNo = mdconst::extract<ConstantInt>(MDN->getOperand(1))->getLimitedValue(); 1124 mdconst::extract<ConstantInt>(MDN->getOperand(2))->getLimitedValue(); 1152 ConstantInt *IsDynInit = mdconst::extract<ConstantInt>(MDN->getOperand(3)); 1154 ConstantInt *IsExcluded = 1155 mdconst::extract<ConstantInt>(MD [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | JumpThreading.cpp | 256 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); 603 return dyn_cast<ConstantInt>(Val); 607 /// if we can infer that the value is a known ConstantInt/BlockAddress or undef 712 ConstantInt *InterestingVal; 714 InterestingVal = ConstantInt::getTrue(I->getContext()); 716 InterestingVal = ConstantInt::getFalse(I->getContext()); 740 isa<ConstantInt>(I->getOperand(1)) && 741 cast<ConstantInt>(I->getOperand(1))->isOne()) { 758 if (ConstantInt *C [all...] |
H A D | LowerConstantIntrinsics.cpp | 48 return isa<Constant>(Op) ? ConstantInt::getTrue(II->getType()) 49 : ConstantInt::getFalse(II->getType());
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 57 I->setOperand(OpNo, ConstantInt::get(Op->getType(), *C & Demanded)); 282 isa<ConstantInt>(I->getOperand(1)) && 283 isa<ConstantInt>(LHSInst->getOperand(1)) && 285 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1)); 286 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); 290 ConstantInt::get(I->getType(), NewMask & AndRHS->getValue()); 295 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue()); 360 I->setOperand(OpNo, ConstantInt [all...] |
H A D | InstCombineMulDivRem.cpp | 106 return ConstantInt::get(Ty, IVal->logBase2()); 124 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2())); 222 C1, ConstantInt::get(C1->getType()->getScalarType(), 1)); 239 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) { 249 ConstantInt *C1; 258 ConstantInt::get(Y->getType(), PosVal)); 397 return SelectInst::Create(X, Op1, ConstantInt::get(I.getType(), 0)); 399 return SelectInst::Create(X, Op0, ConstantInt::get(I.getType(), 0)); 691 replaceUse(*I, NonNullOperand == 1 ? ConstantInt [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | PHITransAddr.cpp | 35 isa<ConstantInt>(Inst->getOperand(1))) 254 isa<ConstantInt>(Inst->getOperand(1))) { 256 Constant *RHS = cast<ConstantInt>(Inst->getOperand(1)); 266 if (ConstantInt *CI = dyn_cast<ConstantInt>(BOp->getOperand(1))) { 422 isa<ConstantInt>(Inst->getOperand(1))) {
|
H A D | ConstantFolding.cpp | 86 auto *ElementCI = dyn_cast_or_null<ConstantInt>(Element); 133 return ConstantInt::get(DestTy, Result); 147 if (isa<ConstantFP>(C) || isa<ConstantInt>(C)) { 224 Src = dyn_cast_or_null<ConstantInt>(Src); 233 ConstantInt::get(Src->getType(), ShiftAmt)); 261 auto *Src = dyn_cast<ConstantInt>(Element); 270 ConstantInt::get(Src->getType(), ShiftAmt)); 413 if (auto *CI = dyn_cast<ConstantInt>(C)) { 634 return ConstantInt::get(IntType->getContext(), ResultVal); 711 Constant *Res = ConstantInt [all...] |
H A D | CmpInstAnalysis.cpp | 47 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 0); 55 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 1);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroInstr.h | 56 ConstantInt *getRawIndex() const { 57 return cast<ConstantInt>(getArgOperand(IndexArg)); 211 return cast<ConstantInt>(getArgOperand(SizeArg))->getZExtValue(); 215 return cast<ConstantInt>(getArgOperand(AlignArg))->getAlignValue(); 350 return cast<ConstantInt>(getArgOperand(AlignArg))->getAlignValue(); 472 return cast<ConstantInt>(getArgOperand(AlignArg))->getAlignValue();
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | TypePromotion.cpp | 342 !isa<ConstantInt>(I->getOperand(1))) 345 ConstantInt *OverflowConst = cast<ConstantInt>(I->getOperand(1)); 357 ConstantInt *ICmpConst = nullptr; 358 if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(0))) 360 else if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(1))) 459 assert((isa<ConstantInt>(I->getOperand(1)) && 460 cast<ConstantInt>(I->getOperand(1))->isNegative()) && 463 auto Const = cast<ConstantInt>(I->getOperand(1)); 464 auto *NewConst = ConstantInt [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64StackTagging.cpp | 127 uint64_t StoreSize = cast<ConstantInt>(MSI->getLength())->getZExtValue(); 132 cast<ConstantInt>(MSI->getValue())); 137 ConstantInt *V) { 151 ConstantInt *C = 152 ConstantInt::get(IRB.getInt64Ty(), Cst * V->getZExtValue()); 238 {Ptr, ConstantInt::get(IRB.getInt64Ty(), Size)}); 247 IRB.CreateCall(SetTagFn, {Ptr, ConstantInt::get(IRB.getInt64Ty(), Size)}); 391 if (MSI->isVolatile() || !isa<ConstantInt>(MSI->getLength())) 394 if (!isa<ConstantInt>(MSI->getValue())) 451 ConstantInt [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGGPUBuiltin.cpp | 90 return RValue::get(llvm::ConstantInt::get(IntTy, 0)); 144 return RValue::get(llvm::ConstantInt::get(IntTy, -1));
|
H A D | CGVTT.cpp | 77 llvm::ConstantInt::get(Int32Ty, 0), 78 llvm::ConstantInt::get(Int32Ty, AddressPoint.VTableIndex), 79 llvm::ConstantInt::get(Int32Ty, AddressPoint.AddressPointIndex),
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CtorUtils.cpp | 106 ConstantInt *CI = cast<ConstantInt>(CS->getOperand(0));
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXUtilities.cpp | 58 ConstantInt *Val = mdconst::dyn_extract<ConstantInt>(md->getOperand(i + 1)); 302 if (const ConstantInt *CI = 303 mdconst::dyn_extract<ConstantInt>(alignNode->getOperand(i))) {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetObjectFile.cpp | 93 SSThreshold = mdconst::extract<ConstantInt>(MFE.Val)->getZExtValue();
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTDC.cpp | 242 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); 275 auto *MaskC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); 360 Value *Zero32 = ConstantInt::get(Type::getInt32Ty(Ctx), 0); 376 Value *MaskVal = ConstantInt::get(Type::getInt64Ty(Ctx), Mask);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ShuffleDecodeConstantPool.cpp | 63 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) 72 auto *Elt = cast<ConstantInt>(COp); 83 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) 93 MaskBits.insertBits(cast<ConstantInt>(COp)->getValue(), BitOffset);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonLoopIdiomRecognition.cpp | 634 if (!isa<ConstantInt>(InitV) || !cast<ConstantInt>(InitV)->isZero()) 650 if (auto *T = dyn_cast<ConstantInt>(IncV)) 953 if (PV.Inv && !isa<ConstantInt>(PV.Q)) 1039 Value *Mask = ConstantInt::get(DestTy, (1u << TruncTy->getBitWidth()) - 1); 1048 if (ConstantInt *CI = dyn_cast<ConstantInt>(In->getOperand(i))) 1050 In->setOperand(i, ConstantInt::get(DestTy, CI->getZExtValue())); 1267 if (auto *C = dyn_cast<ConstantInt>(V)) 1414 if (isa<ConstantInt>(O [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | IRBuilder.h | 397 ConstantInt *getInt1(bool V) { 398 return ConstantInt::get(getInt1Ty(), V); 402 ConstantInt *getTrue() { 403 return ConstantInt::getTrue(Context); 407 ConstantInt *getFalse() { 408 return ConstantInt::getFalse(Context); 412 ConstantInt *getInt8(uint8_t C) { 413 return ConstantInt::get(getInt8Ty(), C); 417 ConstantInt *getInt16(uint16_t C) { 418 return ConstantInt [all...] |
/freebsd-13-stable/contrib/llvm-project/compiler-rt/include/profile/ |
H A D | InstrProfData.inc | 73 ConstantInt::get(llvm::Type::getInt64Ty(Ctx), \ 76 ConstantInt::get(llvm::Type::getInt64Ty(Ctx), \ 90 ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters)) 115 ConstantInt::get(llvm::Type::GetInt64Ty(Ctx), 0)) 117 ConstantInt::get(llvm::Type::GetInt64Ty(Ctx), 0)) 119 ConstantInt::get(llvm::Type::GetInt8PtrTy(Ctx), 0)) 223 llvm::ConstantInt::get(llvm::Type::getInt32Ty(Ctx), \ 228 llvm::ConstantInt::get( \ 232 llvm::ConstantInt::get( \ 235 llvm::ConstantInt [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | Value.cpp | 184 Assume->setOperand(0, ConstantInt::getTrue(Assume->getContext())); 712 ConstantInt *CI = mdconst::extract<ConstantInt>(MD->getOperand(0)); 718 ConstantInt *CI = mdconst::extract<ConstantInt>(MD->getOperand(0)); 725 ConstantInt *CI = mdconst::extract<ConstantInt>(MD->getOperand(0)); 731 ConstantInt *CI = mdconst::extract<ConstantInt>(MD->getOperand(0)); 800 ConstantInt *C [all...] |