Home
last modified time | relevance | path

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

1234567891011

/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp49 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1), in commonShiftTransforms()
83 ConstantInt *CI = nullptr; in CanEvaluateShifted()
119 CI = dyn_cast<ConstantInt>(I->getOperand(1)); in CanEvaluateShifted()
144 CI = dyn_cast<ConstantInt>(I->getOperand(1)); in CanEvaluateShifted()
222 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
231 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
242 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
253 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
263 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
272 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
[all …]
H A DInstCombineCompares.cpp39 static ConstantInt *getOne(Constant *C) { in getOne()
40 return ConstantInt::get(cast<IntegerType>(C->getType()), 1); in getOne()
43 static ConstantInt *ExtractElement(Constant *V, Constant *Idx) { in ExtractElement()
44 return cast<ConstantInt>(ConstantExpr::getExtractElement(V, Idx)); in ExtractElement()
47 static bool HasAddOverflow(ConstantInt *Result, in HasAddOverflow()
48 ConstantInt *In1, ConstantInt *In2, in HasAddOverflow()
66 Constant *Idx = ConstantInt::get(Type::getInt32Ty(In1->getContext()), i); in AddWithOverflow()
76 return HasAddOverflow(cast<ConstantInt>(Result), in AddWithOverflow()
77 cast<ConstantInt>(In1), cast<ConstantInt>(In2), in AddWithOverflow()
81 static bool HasSubOverflow(ConstantInt *Result, in HasSubOverflow()
[all …]
H A DInstCombineAndOrXor.cpp33 if (isa<ConstantInt>(V)) in isFreeToInvert()
53 if (ConstantInt *C = dyn_cast<ConstantInt>(V)) in dyn_castNotVal()
54 return ConstantInt::get(C->getType(), ~C->getValue()); in dyn_castNotVal()
114 if (!isordered) return ConstantInt::getTrue(LHS->getContext()); in getFCmpValue()
138 ConstantInt *ConstLHS = dyn_cast<ConstantInt>(OldLHS); in SimplifyBSwap()
139 ConstantInt *ConstRHS = dyn_cast<ConstantInt>(OldRHS); in SimplifyBSwap()
179 ConstantInt *OpRHS, in OptAndOp()
180 ConstantInt *AndRHS, in OptAndOp()
205 ConstantInt *TogetherCI = dyn_cast<ConstantInt>(Together); in OptAndOp()
259 ConstantInt *CI = Builder->getInt(AndRHS->getValue() & ShlMask); in OptAndOp()
[all …]
H A DInstCombineVectorOps.cpp44 isa<ConstantInt>(I->getOperand(2))) in CheapToScalarize()
77 if (!isa<ConstantInt>(III->getOperand(2))) in FindScalarElement()
79 unsigned IIElt = cast<ConstantInt>(III->getOperand(2))->getZExtValue(); in FindScalarElement()
188 if (ConstantInt *IdxC = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst()
238 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) { in visitExtractElementInst()
261 if (ConstantInt *Elt = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst()
277 ConstantInt::get(Int32Ty, in visitExtractElementInst()
342 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), i)); in CollectSingleShuffleElements()
348 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), in CollectSingleShuffleElements()
359 if (!isa<ConstantInt>(IdxOp)) in CollectSingleShuffleElements()
[all …]
H A DInstCombineSimplifyDemanded.cpp35 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); in ShrinkDemandedConstant()
45 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
134 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in SimplifyDemandedUseBits()
401 isa<ConstantInt>(I->getOperand(1)) && in SimplifyDemandedUseBits()
402 isa<ConstantInt>(LHSInst->getOperand(1)) && in SimplifyDemandedUseBits()
404 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1)); in SimplifyDemandedUseBits()
405 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); in SimplifyDemandedUseBits()
409 ConstantInt::get(I->getType(), NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits()
414 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits()
543 if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) { in SimplifyDemandedUseBits()
[all …]
H A DInstCombineSelect.cpp73 if (ConstantInt *C1 = dyn_cast<ConstantInt>(CmpRHS)) { in MatchSelectPattern()
142 return ConstantInt::get(I->getType(), 1); in GetSelectFoldableConstant()
221 ConstantInt *C1I = dyn_cast<ConstantInt>(C1); in isSelect01()
224 ConstantInt *C2I = dyn_cast<ConstantInt>(C2); in isSelect01()
456 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
478 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() + 1); in visitSelectInstWithICmp()
480 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() - 1); in visitSelectInstWithICmp()
554 if (ConstantInt *Cmp = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
555 ConstantInt *C1 = nullptr, *C2 = nullptr; in visitSelectInstWithICmp()
557 C1 = dyn_cast<ConstantInt>(TrueVal); in visitSelectInstWithICmp()
[all …]
H A DInstCombineCalls.cpp69 MI->setAlignment(ConstantInt::get(MI->getAlignmentType(), in SimplifyMemTransfer()
76 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2)); in SimplifyMemTransfer()
123 mdconst::hasa<ConstantInt>(M->getOperand(0)) && in SimplifyMemTransfer()
124 mdconst::extract<ConstantInt>(M->getOperand(0))->isNullValue() && in SimplifyMemTransfer()
126 mdconst::hasa<ConstantInt>(M->getOperand(1)) && in SimplifyMemTransfer()
127 mdconst::extract<ConstantInt>(M->getOperand(1))->getValue() == in SimplifyMemTransfer()
160 MI->setAlignment(ConstantInt::get(MI->getAlignmentType(), in SimplifyMemSet()
166 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyMemSet()
167 ConstantInt *FillC = dyn_cast<ConstantInt>(MI->getValue()); in SimplifyMemSet()
188 StoreInst *S = Builder->CreateStore(ConstantInt::get(ITy, Fill), Dest, in SimplifyMemSet()
[all …]
H A DInstCombineCasts.cpp30 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) { in DecomposeSimpleLinearExpr()
33 return ConstantInt::get(Val->getType(), 0); in DecomposeSimpleLinearExpr()
45 if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) { in DecomposeSimpleLinearExpr()
132 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation()
138 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation()
389 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) { in CanEvaluateTruncated()
399 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) { in CanEvaluateTruncated()
470 Constant *One = ConstantInt::get(Src->getType(), 1); in visitTrunc()
477 Value *A = nullptr; ConstantInt *Cst = nullptr; in visitTrunc()
519 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(ICI->getOperand(1))) { in transformZExtICmp()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DConstantFold.cpp64 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); in BitCastConstantVector()
156 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast()
166 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast()
183 return ConstantInt::get(FP->getContext(), in FoldBitCast()
210 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes()
215 return ConstantInt::get(CI->getContext(), V); in ExtractConstantBytes()
231 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes()
255 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
277 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
323 ConstantInt::get(Res->getType(), ByteStart*8)); in ExtractConstantBytes()
[all …]
H A DMDBuilder.cpp51 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights()
64 Metadata *Range[2] = {createConstant(ConstantInt::get(Ty, Lo)), in createRange()
65 createConstant(ConstantInt::get(Ty, Hi))}; in createRange()
100 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1); in createTBAANode()
124 Vals[i * 3 + 0] = createConstant(ConstantInt::get(Int64, Fields[i].Offset)); in createTBAAStructNode()
125 Vals[i * 3 + 1] = createConstant(ConstantInt::get(Int64, Fields[i].Size)); in createTBAAStructNode()
140 Ops[i * 2 + 2] = createConstant(ConstantInt::get(Int64, Fields[i].second)); in createTBAAStructTypeNode()
149 ConstantInt *Off = ConstantInt::get(Type::getInt64Ty(Context), Offset); in createTBAAScalarTypeNode()
160 createConstant(ConstantInt::get(Int64, Offset))}; in createTBAAStructTagNode()
H A DConstants.cpp77 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNullValue()
90 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isAllOnesValue()
112 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isOneValue()
134 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isMinSignedValue()
156 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNotMinSignedValue()
181 return ConstantInt::get(Ty, 0); in getNullValue()
217 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue()
232 return ConstantInt::get(Ty->getContext(), in getAllOnesValue()
274 if (ConstantInt *CI = dyn_cast<ConstantInt>(Elt)) in getAggregateElement()
335 if (!isa<ConstantInt>(CE->getOperand(1)) ||CE->getOperand(1)->isNullValue()) in canTrapImpl()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp68 ConstantInt *LowerBound, ConstantInt *UpperBound,
82 const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low); in operator ()()
83 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator ()()
175 ConstantInt *LowerBound, in switchConvert()
176 ConstantInt *UpperBound, Value *Val, in switchConvert()
206 << cast<ConstantInt>(Pivot.Low)->getValue() in switchConvert()
207 << " -" << cast<ConstantInt>(Pivot.High)->getValue() << "\n"); in switchConvert()
213 ConstantInt *NewLowerBound = cast<ConstantInt>(Pivot.Low); in switchConvert()
214 ConstantInt *NewUpperBound; in switchConvert()
222 NewUpperBound = ConstantInt::get(NewLowerBound->getContext(), in switchConvert()
[all …]
H A DSimplifyLibCalls.cpp235 ConstantInt::get(DL->getIntPtrType(Src->getContext()), Len + 1), 1); in emitStrLenMemCpy()
255 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in optimizeStrNCat()
298 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrChr()
310 ConstantInt::get(DL->getIntPtrType(CI->getContext()), Len), B, DL, TLI); in optimizeStrChr()
344 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in optimizeStrRChr()
380 return ConstantInt::get(CI->getType(), 0); in optimizeStrCmp()
388 return ConstantInt::get(CI->getType(), Str1.compare(Str2)); in optimizeStrCmp()
406 ConstantInt::get(DL->getIntPtrType(CI->getContext()), in optimizeStrCmp()
426 return ConstantInt::get(CI->getType(), 0); in optimizeStrNCmp()
430 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in optimizeStrNCmp()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp176 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
178 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
184 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP()
186 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
188 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
190 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), in LowerBSWAP()
193 ConstantInt::get(Type::getInt32Ty(Context), 0xFF0000), in LowerBSWAP()
196 ConstantInt::get(Type::getInt32Ty(Context), 0xFF00), in LowerBSWAP()
204 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56), in LowerBSWAP()
206 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40), in LowerBSWAP()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Target/R600/
H A DR600TextureIntrinsicsReplacer.cpp126 ConstantInt::get(Int32Type, SrcSelect[0]), in ReplaceCallInst()
127 ConstantInt::get(Int32Type, SrcSelect[1]), in ReplaceCallInst()
128 ConstantInt::get(Int32Type, SrcSelect[2]), in ReplaceCallInst()
129 ConstantInt::get(Int32Type, SrcSelect[3]) in ReplaceCallInst()
142 ConstantInt::get(Int32Type, CT[0]), in ReplaceCallInst()
143 ConstantInt::get(Int32Type, CT[1]), in ReplaceCallInst()
144 ConstantInt::get(Int32Type, CT[2]), in ReplaceCallInst()
145 ConstantInt::get(Int32Type, CT[3]) in ReplaceCallInst()
165 dyn_cast<ConstantInt>(I.getArgOperand(3))->getZExtValue(); in ReplaceTexIntrinsic()
170 ConstantInt::get(Int32Type, 0), in ReplaceTexIntrinsic()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXImageOptimizer.cpp43 void replaceWith(Instruction *From, ConstantInt *To);
94 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()
H A DNVPTXLowerAggrCopies.cpp59 ind->addIncoming(ConstantInt::get(indType, 0), origBB); in convertTransferToLoop()
67 Value *newind = loop.CreateAdd(ind, ConstantInt::get(indType, 1)); in convertTransferToLoop()
92 ind->addIncoming(ConstantInt::get(len->getType(), 0), origBB); in convertMemSetToLoop()
96 Value *newind = loop.CreateAdd(ind, ConstantInt::get(len->getType(), 1)); in convertMemSetToLoop()
136 if (ConstantInt *len_int = dyn_cast<ConstantInt>(len)) { in runOnFunction()
146 if (ConstantInt *len_int = dyn_cast<ConstantInt>(len)) { in runOnFunction()
170 Value *len = ConstantInt::get(Type::getInt32Ty(Context), numLoads); in runOnFunction()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp439 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) { in CanTraceInto()
443 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto()
496 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find()
562 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain()
564 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
595 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
596 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
607 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset()
727 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue(); in accumulateByteOffset()
757 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToSingleIndexGEPs()
[all …]
/minix3/external/bsd/llvm/dist/llvm/unittests/IR/
H A DMDBuilderTest.cpp53 EXPECT_TRUE(mdconst::hasa<ConstantInt>(R1->getOperand(0))); in TEST_F()
54 EXPECT_TRUE(mdconst::hasa<ConstantInt>(R1->getOperand(1))); in TEST_F()
55 ConstantInt *C0 = mdconst::extract<ConstantInt>(R1->getOperand(0)); in TEST_F()
56 ConstantInt *C1 = mdconst::extract<ConstantInt>(R1->getOperand(1)); in TEST_F()
104 EXPECT_TRUE(mdconst::hasa<ConstantInt>(N2->getOperand(2))); in TEST_F()
105 EXPECT_EQ(mdconst::extract<ConstantInt>(N2->getOperand(2))->getZExtValue(), in TEST_F()
H A DConstantsTest.cpp23 Constant* One = ConstantInt::get(Int1, 1, true); in TEST()
24 Constant* Zero = ConstantInt::get(Int1, 0); in TEST()
25 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST()
26 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); in TEST()
104 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue()); in TEST()
105 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue()); in TEST()
106 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue()); in TEST()
107 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue()); in TEST()
108 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue()); in TEST()
109 EXPECT_EQ(206U, ConstantInt::getSigned(Int8Ty, -50)->getZExtValue()); in TEST()
[all …]
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DIntrinsicInst.h110 return cast<ConstantInt>( in getOffset()
143 ConstantInt *getAlignmentCst() const { in getAlignmentCst()
144 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(3))); in getAlignmentCst()
151 ConstantInt *getVolatileCst() const { in getVolatileCst()
152 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(4))); in getVolatileCst()
353 ConstantInt *getHash() const { in getHash()
354 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(1))); in getHash()
357 ConstantInt *getNumCounters() const { in getNumCounters()
358 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(2))); in getNumCounters()
361 ConstantInt *getIndex() const { in getIndex()
[all …]
H A DIRBuilder.h251 ConstantInt *getInt1(bool V) { in getInt1()
252 return ConstantInt::get(getInt1Ty(), V); in getInt1()
256 ConstantInt *getTrue() { in getTrue()
257 return ConstantInt::getTrue(Context); in getTrue()
261 ConstantInt *getFalse() { in getFalse()
262 return ConstantInt::getFalse(Context); in getFalse()
266 ConstantInt *getInt8(uint8_t C) { in getInt8()
267 return ConstantInt::get(getInt8Ty(), C); in getInt8()
271 ConstantInt *getInt16(uint16_t C) { in getInt16()
272 return ConstantInt::get(getInt16Ty(), C); in getInt16()
[all …]
/minix3/minix/llvm/passes/asr/
H A DASRPass.cpp229 ConstantInt* const_int32_0 = ConstantInt::get(M.getContext(), APInt(32, StringRef("0"), 10)); in create_padding_func()
230 ConstantInt* const_int32_1 = ConstantInt::get(M.getContext(), APInt(32, StringRef("1"), 10)); in create_padding_func()
509 …new AllocaInst(IntegerType::get(M.getContext(), 8), ConstantInt::get(M.getContext(), APInt(64, (ra… in runOnModule()
524ConstantInt* max_offset_const = ConstantInt::get(M.getContext(), APInt(32, max_offset, 10)); in runOnModule()
532ConstantInt* One = ConstantInt::get(M.getContext(), APInt(32, StringRef("1"), 10)); in runOnModule()
582 …new AllocaInst(IntegerType::get(M.getContext(), 8), ConstantInt::get(M.getContext(), APInt(64, (ra… in runOnModule()
604 args.push_back(ConstantInt::get(M.getContext(), APInt(32, 0))); in runOnModule()
605 args.push_back(ConstantInt::get(M.getContext(), APInt(32, 0))); in runOnModule()
607 args.push_back(ConstantInt::get(M.getContext(), APInt(32, 0))); in runOnModule()
620 frameAddrArgs.push_back(ConstantInt::get(M.getContext(), APInt(32, 0))); in runOnModule()
[all …]
/minix3/external/bsd/llvm/dist/llvm/examples/BrainF/
H A DBrainF.cpp81 ConstantInt *val_mem = ConstantInt::get(C, APInt(32, memtotal)); in header()
95 ConstantInt::get(C, APInt(8, 0)), in header()
97 ConstantInt::get(C, APInt(32, 1)), in header()
98 ConstantInt::get(C, APInt(1, 0)) in header()
109 CreateGEP(ptr_arr, ConstantInt::get(C, APInt(32, memtotal)), "arrmax"); in header()
114 ConstantInt::get(C, APInt(32, memtotal/2)), in header()
241 CreateGEP(curhead, ConstantInt::get(C, APInt(32, curvalue)), in readloop()
276 CreateAdd(tape_0, ConstantInt::get(C, APInt(8, curvalue)), tapereg); in readloop()
440 ConstantInt::get(C, APInt(8, 0)), testreg); in readloop()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp230 mdconst::extract<ConstantInt>(MDN->getOperand(1))->getLimitedValue(); in parse()
232 mdconst::extract<ConstantInt>(MDN->getOperand(2))->getLimitedValue(); in parse()
271 ConstantInt *IsDynInit = in init()
272 mdconst::extract<ConstantInt>(MDN->getOperand(3)); in init()
274 ConstantInt *IsBlacklisted = in init()
275 mdconst::extract<ConstantInt>(MDN->getOperand(4)); in init()
556 ConstantInt::get(IntptrTy, 4)); in unpoisonDynamicAlloca()
616 ConstantInt *Size = dyn_cast<ConstantInt>(II.getArgOperand(0)); in visitIntrinsicInst()
623 !ConstantInt::isValueValidForType(IntptrTy, SizeValue)) in visitIntrinsicInst()
727 ConstantInt::get(Type::getInt32Ty(M.getContext()), MD.LineNo), in createPrivateGlobalForSourceLoc()
[all …]

1234567891011