| /freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/ |
| D | MDBuilder.cpp | 50 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights() 68 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count))); in createFunctionEntryCount() 73 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID))); in createFunctionEntryCount() 88 return createRange(ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi)); in createRange() 113 Ops.push_back(createConstant(ConstantInt::get(Int64, CalleeArgNo))); in createCallbackEncoding() 116 Ops.push_back(createConstant(ConstantInt::get(Int64, ArgNo, true))); in createCallbackEncoding() 119 Ops.push_back(createConstant(ConstantInt::get(Int1, VarArgArePassed))); in createCallbackEncoding() 131 cast<ConstantInt>(NewCBCalleeIdxAsCM->getValue())->getZExtValue(); in mergeCallbackEncodings() 143 cast<ConstantInt>(OldCBCalleeIdxAsCM->getValue())->getZExtValue(); in mergeCallbackEncodings() 180 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1); in createTBAANode() [all …]
|
| D | ConstantFold.cpp | 73 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); in BitCastConstantVector() 158 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast() 168 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast() 199 return ConstantInt::get(FP->getContext(), in FoldBitCast() 226 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes() 231 return ConstantInt::get(CI->getContext(), V); in ExtractConstantBytes() 247 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes() 271 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes() 294 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes() 341 ConstantInt::get(Res->getType(), ByteStart*8)); in ExtractConstantBytes() [all …]
|
| D | Metadata.cpp | 992 static bool tryMergeRange(SmallVectorImpl<ConstantInt *> &EndPoints, in tryMergeRange() 993 ConstantInt *Low, ConstantInt *High) { in tryMergeRange() 1003 cast<ConstantInt>(ConstantInt::get(Ty, Union.getLower())); in tryMergeRange() 1005 cast<ConstantInt>(ConstantInt::get(Ty, Union.getUpper())); in tryMergeRange() 1011 static void addRange(SmallVectorImpl<ConstantInt *> &EndPoints, in addRange() 1012 ConstantInt *Low, ConstantInt *High) { in addRange() 1034 SmallVector<ConstantInt *, 4> EndPoints; in getMostGenericRange() 1040 ConstantInt *ALow = mdconst::extract<ConstantInt>(A->getOperand(2 * AI)); in getMostGenericRange() 1041 ConstantInt *BLow = mdconst::extract<ConstantInt>(B->getOperand(2 * BI)); in getMostGenericRange() 1045 mdconst::extract<ConstantInt>(A->getOperand(2 * AI + 1))); in getMostGenericRange() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
| D | IntrinsicLowering.cpp | 63 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-12-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| D | MemoryLocation.cpp | 115 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getForSource() 136 if (ConstantInt *C = dyn_cast<ConstantInt>(MI->getLength())) in getForDest() 167 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument() 179 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument() 206 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument() 238 if (const ConstantInt *LenCI = in getForArgument() 239 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 247 if (const ConstantInt *LenCI = in getForArgument() 248 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument() 254 if (const ConstantInt *LenCI = in getForArgument() [all …]
|
| D | TypeBasedAliasAnalysis.cpp | 184 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() 321 : mdconst::extract<ConstantInt>(Node->getOperand(2)) in getField() 338 uint64_t Cur = mdconst::extract<ConstantInt>(Node->getOperand(Idx + 1)) in getField() 350 uint64_t Cur = mdconst::extract<ConstantInt>(Node->getOperand(TheIdx + 1)) in getField() 548 auto *OffsetNode = ConstantAsMetadata::get(ConstantInt::get(Int64, 0)); in createAccessTag() 555 ConstantAsMetadata::get(ConstantInt::get(Int64, AccessSize)); in createAccessTag() 766 ConstantInt *InnerOffset = mdconst::extract<ConstantInt>(MD->getOperand(i)); in shiftTBAAStruct() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| D | LowerMemIntrinsics.cpp | 18 Value *DstAddr, ConstantInt *CopyLen, in createMemCpyLoopKnownSize() 67 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0U), PreLoopBB); in createMemCpyLoopKnownSize() 78 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U)); in createMemCpyLoopKnownSize() 82 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount); in createMemCpyLoopKnownSize() 113 OpTy, CastedSrc, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize() 123 OpTy, CastedDst, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize() 171 ConstantInt *CILoopOpSize = ConstantInt::get(ILengthType, LoopOpSize); in createMemCpyLoopUnknownSize() 183 LoopIndex->addIncoming(ConstantInt::get(CopyLenType, 0U), PreLoopBB); in createMemCpyLoopUnknownSize() 192 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize() 213 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize() [all …]
|
| D | LowerSwitch.cpp | 74 ConstantInt *Low; 75 ConstantInt *High; 78 CaseRange(ConstantInt *low, ConstantInt *high, BasicBlock *bb) in CaseRange() 89 const ConstantInt *CI1 = cast<const ConstantInt>(C1.Low); in operator ()() 90 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() 221 BasicBlock *SwitchConvert(CaseItr Begin, CaseItr End, ConstantInt *LowerBound, in SwitchConvert() 222 ConstantInt *UpperBound, Value *Val, in SwitchConvert() 258 ConstantInt *NewLowerBound = Pivot.Low; in SwitchConvert() [all …]
|
| D | SimplifyLibCalls.cpp | 105 return ConstantInt::get(CI->getType(), Result); in convertStrToNumber() 184 if (ConstantInt *LenC = dyn_cast<ConstantInt>(Size)) { in annotateNonNullAndDereferenceable() 240 ConstantInt::get(DL.getIntPtrType(Src->getContext()), Len + 1)); in emitStrLenMemCpy() 255 ConstantInt *LengthArg = dyn_cast<ConstantInt>(Size); in optimizeStrNCat() 295 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr() 306 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len), in optimizeStrChr() 334 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrRChr() 363 return ConstantInt::get(CI->getType(), 0); in optimizeStrCmp() 371 return ConstantInt::get(CI->getType(), Str1.compare(Str2)); in optimizeStrCmp() 391 ConstantInt::get(DL.getIntPtrType(CI->getContext()), in optimizeStrCmp() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| D | StraightLineStrengthReduce.cpp | 143 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate() 154 ConstantInt *Index = nullptr; 218 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx, 225 ConstantInt *Idx, Value *S, 294 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable() 316 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(Idx); in hasOnlyOneNonZeroIndex() 348 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis() 414 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd() 421 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd() 425 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd() [all …]
|
| D | LowerExpectIntrinsic.cpp | 89 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect() 121 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef() 155 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef() 169 Result ^= cast<ConstantInt>(Op->getOperand(1))->getValue(); in handlePhiDef() 208 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef() 276 ConstantInt *CmpConstOperand = nullptr; in handleBrSelExpect() 285 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect() 307 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
|
| D | SeparateConstOffsetFromGEP.cpp | 545 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) { in CanTraceInto() 549 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto() 615 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find() 684 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain() 686 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain() 718 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset() 719 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset() 735 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset() 834 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue(); in accumulateByteOffset() 871 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToSingleIndexGEPs() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| D | InstCombineCompares.cpp | 110 ConstantInt *AndCst) { in foldCmpLoadFromIndexedGlobal() 125 !isa<ConstantInt>(GEP->getOperand(1)) || in foldCmpLoadFromIndexedGlobal() 126 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in foldCmpLoadFromIndexedGlobal() 137 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); in foldCmpLoadFromIndexedGlobal() 212 if (!isa<ConstantInt>(C)) return nullptr; in foldCmpLoadFromIndexedGlobal() 216 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero(); in foldCmpLoadFromIndexedGlobal() 293 Value *Mask = ConstantInt::get(Idx->getType(), -1); in foldCmpLoadFromIndexedGlobal() 308 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in foldCmpLoadFromIndexedGlobal() 316 Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement); in foldCmpLoadFromIndexedGlobal() 329 Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement); in foldCmpLoadFromIndexedGlobal() [all …]
|
| D | InstCombineShifts.cpp | 247 SumOfShAmts, ConstantInt::get(SumOfShAmts->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput() 280 ShAmtsDiff, ConstantInt::get(ShAmtsDiff->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput() 283 ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(), in dropRedundantMaskingOfLeftShiftInput() 418 Constant *Mask = ConstantExpr::getSub(C, ConstantInt::get(I.getType(), 1)); in commonShiftTransforms() 545 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt)); in foldShiftedShift() 574 ConstantInt::get(ShType, Mask)); in foldShiftedShift() 717 ConstantInt::get(SrcTy, APInt::getLowBitsSet(SrcSize, TypeBits)); in FoldShiftByConstant() 754 Constant *Mask = ConstantInt::get(Ty, Bits); in FoldShiftByConstant() 767 V1, ConstantExpr::getShl(ConstantInt::get(Ty, *CC), Op1), in FoldShiftByConstant() 786 Constant *Mask = ConstantInt::get(Ty, Bits); in FoldShiftByConstant() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| D | AMDGPUInstCombineIntrinsic.cpp | 251 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), Exp)); in instCombineIntrinsic() 280 const ConstantInt *CMask = dyn_cast<ConstantInt>(Src1); in instCombineIntrinsic() 288 ConstantInt::get(II.getType(), false)); in instCombineIntrinsic() 297 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), true)); in instCombineIntrinsic() 301 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), false)); in instCombineIntrinsic() 324 II, 1, ConstantInt::get(Src1->getType(), Mask & ~(S_NAN | Q_NAN))); in instCombineIntrinsic() 337 {Src0, ConstantInt::get(Src1->getType(), Mask & FullMask)}); in instCombineIntrinsic() 360 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), Result)); in instCombineIntrinsic() 413 ConstantInt *CWidth = dyn_cast<ConstantInt>(II.getArgOperand(2)); in instCombineIntrinsic() 417 return IC.replaceInstUsesWith(II, ConstantInt::getNullValue(Ty)); in instCombineIntrinsic() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| D | NVPTXImageOptimizer.cpp | 43 void replaceWith(Instruction *From, ConstantInt *To); 97 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSampler() 101 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSampler() 114 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSurface() 120 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSurface() 132 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePTexture() 139 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePTexture() 147 void NVPTXImageOptimizer::replaceWith(Instruction *From, ConstantInt *To) { in replaceWith()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| D | OpDescriptor.cpp | 18 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType() 19 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType() 20 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType() 21 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType() 22 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| D | InstrOrderFile.cpp | 135 Value *IdxFlags[] = {ConstantInt::get(Int32Ty, 0), in generateCodeSequence() 136 ConstantInt::get(Int32Ty, FuncId)}; in generateCodeSequence() 139 entryB.CreateStore(ConstantInt::get(Int8Ty, 1), MapAddr); in generateCodeSequence() 141 entryB.CreateICmpEQ(loadBitMap, ConstantInt::get(Int8Ty, 0)); in generateCodeSequence() 146 AtomicRMWInst::Add, BufferIdx, ConstantInt::get(Int32Ty, 1), in generateCodeSequence() 150 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence() 151 Value *BufferGEPIdx[] = {ConstantInt::get(Int32Ty, 0), WrappedIdx}; in generateCodeSequence() 154 updateB.CreateStore(ConstantInt::get(Type::getInt64Ty(Ctx), MD5Hash(F.getName())), in generateCodeSequence()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
| D | IntrinsicInst.h | 768 ConstantInt *getElementSizeInBytesCst() const { in getElementSizeInBytesCst() 769 return cast<ConstantInt>(getRawElementSizeInBytes()); in getElementSizeInBytesCst() 857 ConstantInt *getVolatileCst() const { in getVolatileCst() 858 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(ARG_VOLATILE))); in getVolatileCst() 941 ConstantInt *getLength() const { in getLength() 942 return cast<ConstantInt>(MemCpyInst::getLength()); in getLength() 1120 ConstantInt *getHash() const { in getHash() 1121 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(1))); in getHash() 1124 ConstantInt *getNumCounters() const { in getNumCounters() 1125 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(2))); in getNumCounters() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
| D | X86InstCombineIntrinsic.cpp | 225 Amt = ConstantInt::get(SVT, BitWidth - 1); in simplifyX86immShift() 266 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift() 286 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); in simplifyX86immShift() 382 auto *COp = dyn_cast_or_null<ConstantInt>(CElt); in simplifyX86varShift() 409 ConstantVec.push_back(ConstantInt::getNullValue(SVT)); in simplifyX86varShift() 425 ShiftVecAmts.push_back(ConstantInt::get(SVT, Idx)); in simplifyX86varShift() 563 auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2)); in simplifyX86insertps() 621 ConstantInt *CILength, ConstantInt *CIIndex, in simplifyX86extrq() 625 Constant *Args[] = {ConstantInt::get(IntTy64, Val), in simplifyX86extrq() 633 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0)) in simplifyX86extrq() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| D | GlobalSplit.cpp | 62 !isa<ConstantInt>(GEP->getOperand(1)) || in splitGlobal() 63 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in splitGlobal() 64 !isa<ConstantInt>(GEP->getOperand(2))) in splitGlobal() 93 uint64_t ByteOffset = cast<ConstantInt>( in splitGlobal() 111 ConstantInt::get(Int32Ty, ByteOffset - SplitBegin)), in splitGlobal() 121 unsigned I = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); in splitGlobal() 126 Ops.push_back(ConstantInt::get(Int32Ty, 0)); in splitGlobal()
|
| D | CrossDSOCFI.cpp | 51 ConstantInt *extractNumericTypeId(MDNode *MD); 66 ConstantInt *CrossDSOCFI::extractNumericTypeId(MDNode *MD) { in extractNumericTypeId() 71 auto C = dyn_cast_or_null<ConstantInt>(TM->getValue()); in extractNumericTypeId() 89 if (ConstantInt *TypeId = extractNumericTypeId(Type)) in buildCFICheck() 98 if (ConstantInt *TypeId = in buildCFICheck() 144 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId); in buildCFICheck()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| D | SwitchLoweringUtils.h | 22 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() 243 const ConstantInt *GE; 244 const ConstantInt *LT;
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| D | ValueLattice.h | 277 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger() 278 return cast<ConstantInt>(getConstant())->getValue(); in asConstantInteger() 311 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) 324 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) in markNotConstant() 467 ? ConstantInt::getTrue(Ty) : ConstantInt::getFalse(Ty); in getCompare() 478 return ConstantInt::getTrue(Ty); in getCompare() 480 return ConstantInt::getFalse(Ty); in getCompare()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AVR/ |
| D | AVRShiftExpand.cpp | 57 if (isa<ConstantInt>(I.getOperand(1))) in runOnFunction() 80 Value *Int8Zero = ConstantInt::get(Int8Ty, 0); in expand() 110 Builder.CreateSub(ShiftAmountPHI, ConstantInt::get(Int8Ty, 1)); in expand() 119 ValueShifted = Builder.CreateShl(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand() 122 ValueShifted = Builder.CreateLShr(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand() 125 ValueShifted = Builder.CreateAShr(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand()
|