Home
last modified time | relevance | path

Searched refs:ConstantInt (Results 1 – 25 of 551) sorted by relevance

12345678910>>...23

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp63 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
65 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
71 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP()
73 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
75 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
77 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), in LowerBSWAP()
80 ConstantInt::get(V->getType(), 0xFF0000), in LowerBSWAP()
83 ConstantInt::get(V->getType(), 0xFF00), in LowerBSWAP()
91 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56), in LowerBSWAP()
93 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40), in LowerBSWAP()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMDBuilder.cpp64 Vals[i + Offset] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights()
82 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count))); in createFunctionEntryCount()
87 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID))); in createFunctionEntryCount()
101 return createRange(ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi)); in createRange()
126 Ops.push_back(createConstant(ConstantInt::get(Int64, CalleeArgNo))); in createCallbackEncoding()
129 Ops.push_back(createConstant(ConstantInt::get(Int64, ArgNo, true))); in createCallbackEncoding()
132 Ops.push_back(createConstant(ConstantInt::get(Int1, VarArgArePassed))); in createCallbackEncoding()
144 cast<ConstantInt>(NewCBCalleeIdxAsCM->getValue())->getZExtValue(); in mergeCallbackEncodings()
157 cast<ConstantInt>(OldCBCalleeIdxAsCM->getValue())->getZExtValue(); in mergeCallbackEncodings()
223 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1); in createTBAANode()
[all …]
H A DConstantFold.cpp84 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast()
90 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast()
116 return ConstantInt::get(FP->getContext(), in FoldBitCast()
181 Constant *C = ConstantExpr::getExtractElement(V, ConstantInt::get(Ty, i)); in ConstantFoldCastInstruction()
218 return ConstantInt::get(FPC->getContext(), IntVal); in ConstantFoldCastInstruction()
223 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction()
233 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction()
235 return ConstantInt::get(V->getContext(), in ConstantFoldCastInstruction()
240 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction()
242 return ConstantInt::get(V->getContext(), in ConstantFoldCastInstruction()
[all …]
H A DConstants.cpp92 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNullValue()
109 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isAllOnesValue()
126 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isOneValue()
143 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNotOneValue()
171 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isMinSignedValue()
188 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNotMinSignedValue()
373 return ConstantInt::get(Ty, 0); in getNullValue()
404 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue()
419 return ConstantInt::get(Ty->getContext(), in getAllOnesValue()
463 if (ConstantInt *CI = dyn_cast<ConstantInt>(Elt)) { in getAggregateElement()
[all …]
H A DModule.cpp289 if (ConstantInt *Behavior = mdconst::dyn_extract_or_null<ConstantInt>(MD)) { in isValidModFlagBehavior()
364 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Behavior)), in addModuleFlag()
375 addModuleFlag(Behavior, Key, ConstantInt::get(Int32Ty, Val)); in addModuleFlag()
380 assert(mdconst::hasa<ConstantInt>(Node->getOperand(0)) && in addModuleFlag()
408 setModuleFlag(Behavior, Key, ConstantInt::get(Int32Ty, Val)); in setModuleFlag()
570 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getNumberRegisterParameters()
577 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getDwarfVersion()
582 return Val && cast<ConstantInt>(Val->getValue())->isOne(); in isDwarf64()
589 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getCodeViewFlag()
612 cast<ConstantInt>(Val->getValue())->getZExtValue()); in getPICLevel()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp142 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate()
153 ConstantInt *Index = nullptr;
217 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
224 ConstantInt *Idx, Value *S,
289 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable()
311 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(Idx); in hasOnlyOneNonZeroIndex()
343 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis()
409 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd()
416 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd()
420 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
[all …]
H A DLowerExpectIntrinsic.cpp87 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
118 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef()
163 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef()
177 Result ^= cast<ConstantInt>(Op->getOperand(1))->getValue(); in handlePhiDef()
216 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef()
291 ConstantInt *CmpConstOperand = nullptr; in handleBrSelExpect()
300 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect()
322 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
H A DSeparateConstOffsetFromGEP.cpp557 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) { in CanTraceInto()
561 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto()
627 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find()
697 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain()
699 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
731 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
732 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
748 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset()
850 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue(); in accumulateByteOffset()
882 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToSingleIndexGEPs()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeBasedAliasAnalysis.cpp184 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(2)); in isTypeImmutable()
232 return mdconst::extract<ConstantInt>(Node->getOperand(2))->getZExtValue(); in getOffset()
238 return mdconst::extract<ConstantInt>(Node->getOperand(3))->getZExtValue(); in getSize()
248 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(OpNo)); in isTypeImmutable()
325 : mdconst::extract<ConstantInt>(Operands[2])->getZExtValue(); in getField()
343 mdconst::extract<ConstantInt>(Operands[Idx + 1])->getZExtValue(); in getField()
355 mdconst::extract<ConstantInt>(Operands[TheIdx + 1])->getZExtValue(); in getField()
546 auto *OffsetNode = ConstantAsMetadata::get(ConstantInt::get(Int64, 0)); in createAccessTag()
553 ConstantAsMetadata::get(ConstantInt::get(Int64, AccessSize)); in createAccessTag()
764 ConstantInt *InnerOffset = mdconst::extract<ConstantInt>(MD->getOperand(i)); in shiftTBAAStruct()
[all …]
H A DMemoryLocation.cpp182 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument()
194 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument()
221 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument()
265 if (const auto *Len = dyn_cast<ConstantInt>(Call->getArgOperand(2))) { in getForArgument()
277 if (const auto *Len = dyn_cast<ConstantInt>(Call->getArgOperand(2))) { in getForArgument()
298 if (const ConstantInt *LenCI = in getForArgument()
299 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument()
307 if (const ConstantInt *LenCI = in getForArgument()
308 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument()
314 if (const ConstantInt *LenCI = in getForArgument()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp120 auto *Zero = ConstantInt::get(getSizeTTy(M), 0u); in createBinDesc()
150 auto *Begin = ConstantInt::get(getSizeTTy(M), Entry->ImageOffset); in createBinDesc()
152 ConstantInt::get(getSizeTTy(M), Entry->ImageOffset + Entry->ImageSize); in createBinDesc()
181 ConstantInt::get(Type::getInt32Ty(C), ImagesInits.size()), ImagesB, in createBinDesc()
287 ConstantInt::get(Type::getInt32Ty(C), IsHIP ? HIPFatMagic : CudaFatMagic), in createFatbinDesc()
288 ConstantInt::get(Type::getInt32Ty(C), 1), in createFatbinDesc()
399 {ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction()
400 ConstantInt::get(Type::getInt32Ty(C), 0)}); in createRegisterGlobalsFunction()
404 {ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction()
405 ConstantInt::get(Type::getInt32Ty(C), 1)}); in createRegisterGlobalsFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp23 Cs.push_back(ConstantInt::get(IntTy, 0)); in makeConstantsWithType()
24 Cs.push_back(ConstantInt::get(IntTy, 1)); in makeConstantsWithType()
25 Cs.push_back(ConstantInt::get(IntTy, 42)); in makeConstantsWithType()
26 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType()
27 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType()
28 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType()
29 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType()
30 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp26 ConstantInt *CopyLen, Align SrcAlign, Align DstAlign, bool SrcIsVolatile, in createMemCpyLoopKnownSize()
73 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0U), PreLoopBB); in createMemCpyLoopKnownSize()
97 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U)); in createMemCpyLoopKnownSize()
101 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount); in createMemCpyLoopKnownSize()
132 OpTy, SrcAddr, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize()
141 OpTy, DstAddr, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize()
217 ConstantInt *CILoopOpSize = ConstantInt::get(ILengthType, LoopOpSize); in createMemCpyLoopUnknownSize()
231 LoopIndex->addIncoming(ConstantInt::get(CopyLenType, 0U), PreLoopBB); in createMemCpyLoopUnknownSize()
252 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize()
285 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize()
[all …]
H A DSimplifyLibCalls.cpp236 return ConstantInt::get(RetTy, Result); in convertStrToInt()
314 if (ConstantInt *LenC = dyn_cast<ConstantInt>(Size)) { in annotateNonNullAndDereferenceable()
395 ConstantInt::get(DL.getIntPtrType(Src->getContext()), Len + 1)); in emitStrLenMemCpy()
410 ConstantInt *LengthArg = dyn_cast<ConstantInt>(Size); in optimizeStrNCat()
458 Value *Zero = ConstantInt::get(NBytes->getType(), 0); in memChrToCharCompare()
477 ConstantInt *CharC = dyn_cast<ConstantInt>(CharVal); in optimizeStrChr()
495 ConstantInt::get(SizeTTy, Len), B, in optimizeStrChr()
532 ConstantInt *CharC = dyn_cast<ConstantInt>(CharVal); in optimizeStrRChr()
549 Value *Size = ConstantInt::get(SizeTTy, NBytes); in optimizeStrRChr()
556 return ConstantInt::get(CI->getType(), 0); in optimizeStrCmp()
[all …]
H A DLowerSwitch.cpp73 ConstantInt *Low;
74 ConstantInt *High;
77 CaseRange(ConstantInt *low, ConstantInt *high, BasicBlock *bb) in CaseRange()
88 const ConstantInt *CI1 = cast<const ConstantInt>(C1.Low); in operator ()()
89 const ConstantInt *CI2 = cast<const ConstantInt>(C2.High); in operator ()()
156 BasicBlock *NewLeafBlock(CaseRange &Leaf, Value *Val, ConstantInt *LowerBound, in NewLeafBlock()
157 ConstantInt *UpperBound, BasicBlock *OrigBlock, in NewLeafBlock()
228 BasicBlock *SwitchConvert(CaseItr Begin, CaseItr End, ConstantInt *LowerBound, in SwitchConvert()
229 ConstantInt *UpperBound, Value *Val, in SwitchConvert()
264 ConstantInt *NewLowerBound = Pivot.Low; in SwitchConvert()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp113 ConstantInt *AndCst) { in foldCmpLoadFromIndexedGlobal()
132 if (GEP->getNumOperands() < 3 || !isa<ConstantInt>(GEP->getOperand(1)) || in foldCmpLoadFromIndexedGlobal()
133 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in foldCmpLoadFromIndexedGlobal()
144 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); in foldCmpLoadFromIndexedGlobal()
233 if (!isa<ConstantInt>(C)) in foldCmpLoadFromIndexedGlobal()
238 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero(); in foldCmpLoadFromIndexedGlobal()
315 Value *Mask = ConstantInt::get(Idx->getType(), -1); in foldCmpLoadFromIndexedGlobal()
330 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in foldCmpLoadFromIndexedGlobal()
338 Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement); in foldCmpLoadFromIndexedGlobal()
351 Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement); in foldCmpLoadFromIndexedGlobal()
[all …]
H A DInstCombineShifts.cpp251 SumOfShAmts, ConstantInt::get(SumOfShAmts->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput()
291 ShAmtsDiff, ConstantInt::get(ShAmtsDiff->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput()
295 ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(), in dropRedundantMaskingOfLeftShiftInput()
482 Constant *NewC = ConstantInt::get(Ty, I.getOpcode() == Instruction::Shl in commonShiftTransforms()
503 Constant *Mask = ConstantExpr::getSub(C, ConstantInt::get(Ty, 1)); in commonShiftTransforms()
512 return replaceOperand(I, 1, ConstantInt::get(Ty, BitWidth - 1)); in commonShiftTransforms()
639 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt)); in foldShiftedShift()
668 ConstantInt::get(ShType, Mask)); in foldShiftedShift()
741 ConstantInt::get(I->getType(), Mask)); in getShiftedValue()
796 Constant *NegDivC = ConstantInt::get(Ty, -(*DivC)); in FoldShiftByConstant()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXImageOptimizer.cpp45 void replaceWith(Instruction *From, ConstantInt *To);
96 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSampler()
100 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSampler()
113 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSurface()
119 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSurface()
131 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePTexture()
138 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePTexture()
146 void NVPTXImageOptimizer::replaceWith(Instruction *From, ConstantInt *To) { in replaceWith()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrOrderFile.cpp124 Value *IdxFlags[] = {ConstantInt::get(Int32Ty, 0), in generateCodeSequence()
125 ConstantInt::get(Int32Ty, FuncId)}; in generateCodeSequence()
128 entryB.CreateStore(ConstantInt::get(Int8Ty, 1), MapAddr); in generateCodeSequence()
130 entryB.CreateICmpEQ(loadBitMap, ConstantInt::get(Int8Ty, 0)); in generateCodeSequence()
135 AtomicRMWInst::Add, BufferIdx, ConstantInt::get(Int32Ty, 1), in generateCodeSequence()
139 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence()
140 Value *BufferGEPIdx[] = {ConstantInt::get(Int32Ty, 0), WrappedIdx}; in generateCodeSequence()
143 updateB.CreateStore(ConstantInt::get(Type::getInt64Ty(Ctx), MD5Hash(F.getName())), in generateCodeSequence()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp83 if (ConstantInt *ConstInt = dyn_cast<ConstantInt>(&V)) { in canSafelyConvertTo16Bit()
179 dyn_cast<ConstantInt>(II.getOperand(ImageDimIntr->MipIndex))) { in simplifyAMDGCNImageIntrinsic()
214 dyn_cast<ConstantInt>(II.getOperand(ImageDimIntr->OffsetIndex))) { in simplifyAMDGCNImageIntrinsic()
591 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), Exp)); in instCombineIntrinsic()
603 const ConstantInt *CMask = dyn_cast<ConstantInt>(Src1); in instCombineIntrinsic()
609 II.setArgOperand(1, ConstantInt::get(Src1->getType(), in instCombineIntrinsic()
620 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), false)); in instCombineIntrinsic()
625 Src1, ConstantInt::getNullValue(Src1->getType())); in instCombineIntrinsic()
681 ConstantInt *CWidth = dyn_cast<ConstantInt>(II.getArgOperand(2)); in instCombineIntrinsic()
685 return IC.replaceInstUsesWith(II, ConstantInt::getNullValue(Ty)); in instCombineIntrinsic()
[all …]
H A DAMDGPUImageIntrinsicOptimizer.cpp119 auto FragIdList = cast<ConstantInt>(IIList.front()->getArgOperand(I)); in addInstToMergeableList()
120 auto FragId = cast<ConstantInt>(II->getArgOperand(I)); in addInstToMergeableList()
165 if (!isa<ConstantInt>(II->getArgOperand(FragIdIndex))) in collectMergeableInsts()
203 ConstantInt *DMask = cast<ConstantInt>( in optimizeSection()
222 auto FragId = cast<ConstantInt>(IIList.front()->getArgOperand(FragIdIndex)); in optimizeSection()
242 ConstantInt::get(DMask->getType(), NewMaskVal); in optimizeSection()
243 Args[FragIdIndex] = ConstantInt::get(FragId->getType(), NewFragIdVal); in optimizeSection()
254 auto Idx = cast<ConstantInt>(II->getArgOperand(FragIdIndex)); in optimizeSection()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp39 ConstantInt *extractNumericTypeId(MDNode *MD);
47 ConstantInt *CrossDSOCFI::extractNumericTypeId(MDNode *MD) { in extractNumericTypeId()
52 auto C = dyn_cast_or_null<ConstantInt>(TM->getValue()); in extractNumericTypeId()
70 if (ConstantInt *TypeId = extractNumericTypeId(Type)) in buildCFICheck()
79 if (ConstantInt *TypeId = in buildCFICheck()
125 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId); in buildCFICheck()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/HLSL/
H A DHLSLResource.cpp28 cast<ConstantInt>( in getResourceKind()
34 cast<ConstantInt>( in getElementType()
39 return cast<ConstantInt>( in getIsROV()
44 return cast<ConstantInt>( in getResourceIndex()
49 return cast<ConstantInt>( in getSpace()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSwitchLoweringUtils.h22 class ConstantInt; variable
44 const ConstantInt *Low, *High;
52 static CaseCluster range(const ConstantInt *Low, const ConstantInt *High, in range()
63 static CaseCluster jumpTable(const ConstantInt *Low, const ConstantInt *High, in jumpTable()
74 static CaseCluster bitTests(const ConstantInt *Low, const ConstantInt *High, in bitTests()
247 const ConstantInt *GE = nullptr;
248 const ConstantInt *L
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRShiftExpand.cpp59 if (isa<ConstantInt>(I.getOperand(1))) in runOnFunction()
82 Value *Int8Zero = ConstantInt::get(Int8Ty, 0); in expand()
112 Builder.CreateSub(ShiftAmountPHI, ConstantInt::get(Int8Ty, 1)); in expand()
121 ValueShifted = Builder.CreateShl(ValuePHI, ConstantInt::get(InputTy, 1)); in expand()
124 ValueShifted = Builder.CreateLShr(ValuePHI, ConstantInt::get(InputTy, 1)); in expand()
127 ValueShifted = Builder.CreateAShr(ValuePHI, ConstantInt::get(InputTy, 1)); in expand()

12345678910>>...23