Home
last modified time | relevance | path

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

12345678910>>...15

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DMDBuilder.cpp50 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()
184 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1); in createTBAANode()
[all …]
DConstantFold.cpp63 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); in BitCastConstantVector()
155 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast()
165 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast()
196 return ConstantInt::get(FP->getContext(), in FoldBitCast()
223 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes()
228 return ConstantInt::get(CI->getContext(), V); in ExtractConstantBytes()
244 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes()
268 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
291 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
338 ConstantInt::get(Res->getType(), ByteStart*8)); in ExtractConstantBytes()
[all …]
DMetadata.cpp950 static bool tryMergeRange(SmallVectorImpl<ConstantInt *> &EndPoints, in tryMergeRange()
951 ConstantInt *Low, ConstantInt *High) { in tryMergeRange()
961 cast<ConstantInt>(ConstantInt::get(Ty, Union.getLower())); in tryMergeRange()
963 cast<ConstantInt>(ConstantInt::get(Ty, Union.getUpper())); in tryMergeRange()
969 static void addRange(SmallVectorImpl<ConstantInt *> &EndPoints, in addRange()
970 ConstantInt *Low, ConstantInt *High) { in addRange()
992 SmallVector<ConstantInt *, 4> EndPoints; in getMostGenericRange()
998 ConstantInt *ALow = mdconst::extract<ConstantInt>(A->getOperand(2 * AI)); in getMostGenericRange()
999 ConstantInt *BLow = mdconst::extract<ConstantInt>(B->getOperand(2 * BI)); in getMostGenericRange()
1003 mdconst::extract<ConstantInt>(A->getOperand(2 * AI + 1))); in getMostGenericRange()
[all …]
DProfileSummary.cpp30 ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Val))}; in getKeyValMD()
53 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.Cutoff)), in getDetailedSummaryMD()
54 ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Entry.MinCount)), in getDetailedSummaryMD()
55 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.NumCounts))}; in getDetailedSummaryMD()
95 Val = cast<ConstantInt>(ValMD->getValue())->getZExtValue(); in getVal()
135 Summary.emplace_back(cast<ConstantInt>(Op0->getValue())->getZExtValue(), in getSummaryFromMD()
136 cast<ConstantInt>(Op1->getValue())->getZExtValue(), in getSummaryFromMD()
137 cast<ConstantInt>(Op2->getValue())->getZExtValue()); in getSummaryFromMD()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DIntrinsicLowering.cpp64 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
66 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
72 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP()
74 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
76 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
78 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), in LowerBSWAP()
81 ConstantInt::get(V->getType(), 0xFF0000), in LowerBSWAP()
84 ConstantInt::get(V->getType(), 0xFF00), in LowerBSWAP()
92 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56), in LowerBSWAP()
94 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40), in LowerBSWAP()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp111 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate()
122 ConstantInt *Index = nullptr;
205 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
212 ConstantInt *Idx, Value *S,
283 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable()
305 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I); in hasOnlyOneNonZeroIndex()
337 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis()
403 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd()
410 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd()
414 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
[all …]
DLowerExpectIntrinsic.cpp68 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
102 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef()
136 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef()
150 Result ^= cast<ConstantInt>(Op->getOperand(1))->getValue(); in handlePhiDef()
189 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef()
254 ConstantInt *CmpConstOperand = nullptr; in handleBrSelExpect()
263 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect()
284 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
DSeparateConstOffsetFromGEP.cpp526 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) { in CanTraceInto()
530 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto()
583 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find()
652 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain()
654 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
686 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
687 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
703 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset()
802 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue(); in accumulateByteOffset()
839 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToSingleIndexGEPs()
[all …]
DGuardWidening.cpp196 const ConstantInt *Offset;
201 explicit RangeCheck(const Value *Base, const ConstantInt *Offset, in RangeCheck()
206 void setOffset(const ConstantInt *NewOffset) { Offset = NewOffset; } in setOffset()
209 const ConstantInt *getOffset() const { return Offset; } in getOffset()
314 assert(isa<ConstantInt>(getCondition(I)) && "Should be!"); in run()
334 if (isa<ConstantInt>(getCondition(Instr))) in eliminateInstrViaWidening()
395 ? ConstantInt::getFalse(Instr->getContext()) in eliminateInstrViaWidening()
396 : ConstantInt::getTrue(Instr->getContext()); in eliminateInstrViaWidening()
505 ConstantInt *RHS0, *RHS1; in widenCondCommon()
535 ConstantInt *NewRHS = ConstantInt::get(Cond0->getContext(), NewRHSAP); in widenCondCommon()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLowerMemIntrinsics.cpp26 Value *DstAddr, ConstantInt *CopyLen, in createMemCpyLoopKnownSize()
71 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0U), PreLoopBB); in createMemCpyLoopKnownSize()
81 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U)); in createMemCpyLoopKnownSize()
85 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount); in createMemCpyLoopKnownSize()
116 OpTy, CastedSrc, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize()
125 OpTy, CastedDst, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize()
172 ConstantInt *CILoopOpSize = ConstantInt::get(ILengthType, LoopOpSize); in createMemCpyLoopUnknownSize()
181 LoopIndex->addIncoming(ConstantInt::get(CopyLenType, 0U), PreLoopBB); in createMemCpyLoopUnknownSize()
189 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize()
210 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize()
[all …]
DLowerSwitch.cpp90 ConstantInt* Low;
91 ConstantInt* High;
94 CaseRange(ConstantInt *low, ConstantInt *high, BasicBlock *bb) in CaseRange()
107 ConstantInt *LowerBound, ConstantInt *UpperBound,
112 ConstantInt *LowerBound, ConstantInt *UpperBound,
122 const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low); in operator ()()
123 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator ()()
249 LowerSwitch::switchConvert(CaseItr Begin, CaseItr End, ConstantInt *LowerBound, in switchConvert()
250 ConstantInt *UpperBound, Value *Val, in switchConvert()
286 ConstantInt *NewLowerBound = Pivot.Low; in switchConvert()
[all …]
DSimplifyLibCalls.cpp138 return ConstantInt::get(CI->getType(), Result); in convertStrToNumber()
237 if (ConstantInt *LenC = dyn_cast<ConstantInt>(Size)) { in annotateNonNullAndDereferenceable()
293 ConstantInt::get(DL.getIntPtrType(Src->getContext()), Len + 1)); in emitStrLenMemCpy()
308 ConstantInt *LengthArg = dyn_cast<ConstantInt>(Size); in optimizeStrNCat()
348 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr()
359 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len), in optimizeStrChr()
387 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrRChr()
416 return ConstantInt::get(CI->getType(), 0); in optimizeStrCmp()
424 return ConstantInt::get(CI->getType(), Str1.compare(Str2)); in optimizeStrCmp()
444 ConstantInt::get(DL.getIntPtrType(CI->getContext()), in optimizeStrCmp()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DValueLattice.h165 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger()
166 return cast<ConstantInt>(getConstant())->getValue(); in asConstantInteger()
186 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in markConstant()
202 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in markNotConstant()
284 ConstantInt *getConstantInt() const { in getConstantInt()
285 assert(isConstant() && isa<ConstantInt>(getConstant()) && in getConstantInt()
287 return cast<ConstantInt>(getConstant()); in getConstantInt()
309 return ConstantInt::getTrue(Ty); in getCompare()
313 return ConstantInt::getFalse(Ty); in getCompare()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp148 ConstantInt *AndCst) { in foldCmpLoadFromIndexedGlobal()
163 !isa<ConstantInt>(GEP->getOperand(1)) || in foldCmpLoadFromIndexedGlobal()
164 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in foldCmpLoadFromIndexedGlobal()
175 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); in foldCmpLoadFromIndexedGlobal()
250 if (!isa<ConstantInt>(C)) return nullptr; in foldCmpLoadFromIndexedGlobal()
254 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero(); in foldCmpLoadFromIndexedGlobal()
327 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in foldCmpLoadFromIndexedGlobal()
335 Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement); in foldCmpLoadFromIndexedGlobal()
347 Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement); in foldCmpLoadFromIndexedGlobal()
355 Value *SecondFalseIdx = ConstantInt::get(Idx->getType(),SecondFalseElement); in foldCmpLoadFromIndexedGlobal()
[all …]
DInstCombineCalls.cpp106 assert((isa<ConstantInt>(Elt) || isa<ConstantFP>(Elt)) && in getNegativeIsTrueBoolVec()
109 ? cast<ConstantInt>(Elt)->isNegative() in getNegativeIsTrueBoolVec()
111 BoolVec.push_back(ConstantInt::get(BoolTy, Sign)); in getNegativeIsTrueBoolVec()
142 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyAnyMemTransfer()
180 mdconst::hasa<ConstantInt>(M->getOperand(0)) && in SimplifyAnyMemTransfer()
181 mdconst::extract<ConstantInt>(M->getOperand(0))->isZero() && in SimplifyAnyMemTransfer()
183 mdconst::hasa<ConstantInt>(M->getOperand(1)) && in SimplifyAnyMemTransfer()
184 mdconst::extract<ConstantInt>(M->getOperand(1))->getValue() == in SimplifyAnyMemTransfer()
251 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyAnyMemSet()
252 ConstantInt *FillC = dyn_cast<ConstantInt>(MI->getValue()); in SimplifyAnyMemSet()
[all …]
DInstCombineAndOrXor.cpp71 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0); in getFCmpValue()
73 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1); in getFCmpValue()
105 NewRHS = ConstantInt::get(I.getType(), C->byteSwap()); in SimplifyBSwap()
118 ConstantInt *OpRHS, in OptAndOp()
119 ConstantInt *AndRHS, in OptAndOp()
177 return Builder.CreateICmp(Pred, V, ConstantInt::get(Ty, Hi)); in insertRangeTest()
183 Builder.CreateSub(V, ConstantInt::get(Ty, Lo), V->getName() + ".off"); in insertRangeTest()
184 Constant *HiMinusLo = ConstantInt::get(Ty, Hi - Lo); in insertRangeTest()
232 ConstantInt *ACst = dyn_cast<ConstantInt>(A); in getMaskedICmpType()
233 ConstantInt *BCst = dyn_cast<ConstantInt>(B); in getMaskedICmpType()
[all …]
DInstCombineShifts.cpp240 SumOfShAmts, ConstantInt::get(SumOfShAmts->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput()
273 ShAmtsDiff, ConstantInt::get(ShAmtsDiff->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput()
276 ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(), in dropRedundantMaskingOfLeftShiftInput()
357 Constant *ShiftSumC = ConstantInt::get(Ty, *C0 + *C1); in foldShiftOfShiftedLogic()
409 Value *Rem = Builder.CreateAnd(A, ConstantInt::get(I.getType(), *B - 1), in commonShiftTransforms()
488 ConstantInt *CI = nullptr; in canEvaluateShifted()
562 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt)); in foldShiftedShift()
591 ConstantInt::get(ShType, Mask)); in foldShiftedShift()
722 isa<ConstantInt>(TrOp->getOperand(1))) { in FoldShiftByConstant()
750 ConstantInt::get(I.getContext(), MaskV), in FoldShiftByConstant()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemoryLocation.cpp96 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getForSource()
117 if (ConstantInt *C = dyn_cast<ConstantInt>(MI->getLength())) in getForDest()
147 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument()
159 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument()
171 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument()
203 if (const ConstantInt *LenCI = in getForArgument()
204 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXImageOptimizer.cpp43 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/
DOpDescriptor.cpp18 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()
/third_party/skia/third_party/externals/spirv-cross/shaders-no-opt/asm/comp/
Dspec-constant-op-convert-sign.asm.comp19 OpName %ConstantInt "ConstantInt"
30 OpDecorate %ConstantInt SpecId 0
43 %ConstantInt = OpSpecConstant %int 1
45 %ConstantInt64_1 = OpSpecConstantOp %long SConvert %ConstantInt
47 %ConstantUint64_1 = OpSpecConstantOp %ulong SConvert %ConstantInt
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DInstrOrderFile.cpp136 Value *IdxFlags[] = {ConstantInt::get(Int32Ty, 0), in generateCodeSequence()
137 ConstantInt::get(Int32Ty, FuncId)}; in generateCodeSequence()
140 entryB.CreateStore(ConstantInt::get(Int8Ty, 1), MapAddr); in generateCodeSequence()
142 entryB.CreateICmpEQ(loadBitMap, ConstantInt::get(Int8Ty, 0)); in generateCodeSequence()
147 AtomicRMWInst::Add, BufferIdx, ConstantInt::get(Int32Ty, 1), in generateCodeSequence()
151 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence()
152 Value *BufferGEPIdx[] = {ConstantInt::get(Int32Ty, 0), WrappedIdx}; in generateCodeSequence()
155 updateB.CreateStore(ConstantInt::get(Type::getInt64Ty(Ctx), MD5Hash(F.getName())), in generateCodeSequence()
DPoisonChecking.cpp87 if (auto *CI = dyn_cast<ConstantInt>(V)) in isConstantFalse()
159 ConstantInt::get(LHS->getType(), 0)); in generatePoisonChecksForBinOp()
168 ConstantInt::get(LHS->getType(), 0)); in generatePoisonChecksForBinOp()
178 ConstantInt::get(RHS->getType(), in generatePoisonChecksForBinOp()
204 ConstantInt::get(Idx->getType(), NumElts)); in generatePoisonChecks()
216 ConstantInt::get(Idx->getType(), NumElts)); in generatePoisonChecks()
229 return ConstantInt::getFalse(V->getContext()); in getPoisonFor()
235 return ConstantInt::getFalse(V->getContext()); in getPoisonFor()
240 if (auto *CI = dyn_cast<ConstantInt>(Cond)) in CreateAssert()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DGlobalSplit.cpp62 !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()
118 unsigned I = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); in splitGlobal()
123 Ops.push_back(ConstantInt::get(Int32Ty, 0)); in splitGlobal()
DCrossDSOCFI.cpp51 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()

12345678910>>...15