Home
last modified time | relevance | path

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

12345678910>>...13

/external/llvm/lib/IR/
DConstantFold.cpp64 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); in BitCastConstantVector()
157 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast()
167 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast()
194 return ConstantInt::get(FP->getContext(), in FoldBitCast()
222 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes()
227 return ConstantInt::get(CI->getContext(), V); in ExtractConstantBytes()
243 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes()
267 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
289 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
335 ConstantInt::get(Res->getType(), ByteStart*8)); in ExtractConstantBytes()
[all …]
DMDBuilder.cpp50 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights()
63 createConstant(ConstantInt::get(Int64Ty, Count))}); in createFunctionEntryCount()
70 return createRange(ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi)); in createRange()
113 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1); in createTBAANode()
134 Vals[i * 3 + 0] = createConstant(ConstantInt::get(Int64, Fields[i].Offset)); in createTBAAStructNode()
135 Vals[i * 3 + 1] = createConstant(ConstantInt::get(Int64, Fields[i].Size)); in createTBAAStructNode()
150 Ops[i * 2 + 2] = createConstant(ConstantInt::get(Int64, Fields[i].second)); in createTBAAStructTypeNode()
159 ConstantInt *Off = ConstantInt::get(Type::getInt64Ty(Context), Offset); in createTBAAScalarTypeNode()
169 ConstantInt *Off = ConstantInt::get(Int64, Offset); in createTBAAStructTagNode()
172 createConstant(ConstantInt::get(Int64, 1))}); in createTBAAStructTagNode()
/external/llvm/lib/Transforms/InstCombine/
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()
223 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
232 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
243 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
254 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
264 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
273 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
[all …]
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 …]
DInstCombineAndOrXor.cpp35 if (ConstantInt *C = dyn_cast<ConstantInt>(V)) in dyn_castNotVal()
36 return ConstantInt::get(C->getType(), ~C->getValue()); in dyn_castNotVal()
97 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1); in getFCmpValue()
121 ConstantInt *ConstLHS = dyn_cast<ConstantInt>(OldLHS); in SimplifyBSwap()
122 ConstantInt *ConstRHS = dyn_cast<ConstantInt>(OldRHS); in SimplifyBSwap()
161 ConstantInt *OpRHS, in OptAndOp()
162 ConstantInt *AndRHS, in OptAndOp()
187 ConstantInt *TogetherCI = dyn_cast<ConstantInt>(Together); in OptAndOp()
241 ConstantInt *CI = Builder->getInt(AndRHS->getValue() & ShlMask); in OptAndOp()
261 ConstantInt *CI = Builder->getInt(AndRHS->getValue() & ShrMask); in OptAndOp()
[all …]
DInstCombineVectorOps.cpp47 isa<ConstantInt>(I->getOperand(2))) in cheapToScalarize()
144 if (ConstantInt *IdxC = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst()
189 cheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) { in visitExtractElementInst()
212 if (ConstantInt *Elt = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst()
228 ConstantInt::get(Int32Ty, in visitExtractElementInst()
294 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), i)); in collectSingleShuffleElements()
300 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), in collectSingleShuffleElements()
311 if (!isa<ConstantInt>(IdxOp)) in collectSingleShuffleElements()
313 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue(); in collectSingleShuffleElements()
324 if (isa<ConstantInt>(EI->getOperand(1))) { in collectSingleShuffleElements()
[all …]
DInstCombineSimplifyDemanded.cpp35 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); in ShrinkDemandedConstant()
45 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
118 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in SimplifyDemandedUseBits()
385 isa<ConstantInt>(I->getOperand(1)) && in SimplifyDemandedUseBits()
386 isa<ConstantInt>(LHSInst->getOperand(1)) && in SimplifyDemandedUseBits()
388 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1)); in SimplifyDemandedUseBits()
389 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); in SimplifyDemandedUseBits()
393 ConstantInt::get(I->getType(), NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits()
398 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits()
555 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in SimplifyDemandedUseBits()
[all …]
DInstCombineSelect.cpp115 return ConstantInt::get(I->getType(), 1); in GetSelectFoldableConstant()
194 ConstantInt *C1I = dyn_cast<ConstantInt>(C1); in isSelect01()
197 ConstantInt *C2I = dyn_cast<ConstantInt>(C2); in isSelect01()
417 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
431 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() + 1); in visitSelectInstWithICmp()
433 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() - 1); in visitSelectInstWithICmp()
507 if (ConstantInt *Cmp = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
508 ConstantInt *C1 = nullptr, *C2 = nullptr; in visitSelectInstWithICmp()
510 C1 = dyn_cast<ConstantInt>(TrueVal); in visitSelectInstWithICmp()
511 C2 = dyn_cast<ConstantInt>(FalseVal); in visitSelectInstWithICmp()
[all …]
DInstCombineCalls.cpp70 MI->setAlignment(ConstantInt::get(MI->getAlignmentType(), MinAlign, false)); 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 …]
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()
129 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation()
135 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation()
382 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) { in canEvaluateTruncated()
392 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) { in canEvaluateTruncated()
447 ConstantInt *ShiftVal = nullptr; in foldVecTruncToExtElt()
516 Constant *One = ConstantInt::get(SrcTy, 1); in visitTrunc()
523 Value *A = nullptr; ConstantInt *Cst = nullptr; in visitTrunc()
[all …]
/external/llvm/lib/CodeGen/
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 …]
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp94 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate()
103 ConstantInt *Index;
176 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
182 ConstantInt *Idx, Value *S,
255 if (ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I)) { in isGEPFoldable()
267 uint64_t Field = cast<ConstantInt>(*I)->getZExtValue(); in isGEPFoldable()
278 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable()
298 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I); in hasOnlyOneNonZeroIndex()
330 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis()
396 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd()
[all …]
DSeparateConstOffsetFromGEP.cpp485 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) { in CanTraceInto()
489 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto()
542 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find()
607 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain()
609 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
640 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
641 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
657 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset()
756 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue(); in accumulateByteOffset()
793 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToSingleIndexGEPs()
[all …]
DMemCpyOptimizer.cpp55 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i)); in GetOffsetFromIndex()
231 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in addMemSet()
412 !isa<ConstantInt>(MSI->getLength())) in INITIALIZE_PASS_DEPENDENCY()
568 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile()) in processMemSet()
608 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize()); in performCallSlotOptzn()
624 ConstantInt *destArraySize = dyn_cast<ConstantInt>(A->getArraySize()); in performCallSlotOptzn()
783 ConstantInt *MDepLen = dyn_cast<ConstantInt>(MDep->getLength()); in processMemCpyMemCpyDependence()
784 ConstantInt *MLen = dyn_cast<ConstantInt>(M->getLength()); in processMemCpyMemCpyDependence()
879 if (ConstantInt *SrcSizeC = dyn_cast<ConstantInt>(SrcSize)) in processMemSetMemCpyDependence()
895 ConstantInt::getNullValue(DestSize->getType()), in processMemSetMemCpyDependence()
[all …]
/external/llvm/include/llvm/IR/
DIntrinsicInst.h115 return cast<ConstantInt>( in getOffset()
153 ConstantInt *getAlignmentCst() const { in getAlignmentCst()
154 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(3))); in getAlignmentCst()
161 ConstantInt *getVolatileCst() const { in getVolatileCst()
162 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(4))); in getVolatileCst()
363 ConstantInt *getHash() const { in getHash()
364 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(1))); in getHash()
367 ConstantInt *getNumCounters() const { in getNumCounters()
368 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(2))); in getNumCounters()
371 ConstantInt *getIndex() const { in getIndex()
[all …]
/external/llvm/lib/Target/AMDGPU/
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 cast<ConstantInt>(I.getArgOperand(3))->getZExtValue(); in ReplaceTexIntrinsic()
170 ConstantInt::get(Int32Type, 0), in ReplaceTexIntrinsic()
[all …]
/external/llvm/lib/Analysis/
DMemoryLocation.cpp69 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getForSource()
82 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getForDest()
129 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument()
138 Arg, cast<ConstantInt>(II->getArgOperand(0))->getZExtValue(), AATags); in getForArgument()
143 Arg, cast<ConstantInt>(II->getArgOperand(1))->getZExtValue(), AATags); in getForArgument()
168 if (const ConstantInt *LenCI = dyn_cast<ConstantInt>(CS.getArgument(2))) in getForArgument()
/external/llvm/unittests/IR/
DConstantsTest.cpp26 Constant* One = ConstantInt::get(Int1, 1, true); in TEST()
27 Constant* Zero = ConstantInt::get(Int1, 0); in TEST()
28 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST()
29 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); in TEST()
107 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue()); in TEST()
108 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue()); in TEST()
109 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue()); in TEST()
110 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue()); in TEST()
111 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue()); in TEST()
112 EXPECT_EQ(206U, ConstantInt::getSigned(Int8Ty, -50)->getZExtValue()); in TEST()
[all …]
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()
/external/llvm/lib/Target/NVPTX/
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()
DNVPTXLowerAggrCopies.cpp85 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), OrigBB); in convertMemCpyToLoop()
102 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1)); in convertMemCpyToLoop()
166 ConstantInt::get(TypeOfCopyLen, 0), "compare_n_to_0"); in convertMemMoveToLoop()
174 LoopPhi, ConstantInt::get(TypeOfCopyLen, 1), "index_ptr"); in convertMemMoveToLoop()
180 LoopBuilder.CreateICmpEQ(IndexPtr, ConstantInt::get(TypeOfCopyLen, 0)), in convertMemMoveToLoop()
197 FwdCopyPhi, ConstantInt::get(TypeOfCopyLen, 1), "index_increment"); in convertMemMoveToLoop()
201 FwdCopyPhi->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), CopyForwardBB); in convertMemMoveToLoop()
226 LoopIndex->addIncoming(ConstantInt::get(CopyLen->getType(), 0), OrigBB); in convertMemSetToLoop()
234 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLen->getType(), 1)); in convertMemSetToLoop()
267 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(IntrCall->getLength())) { in runOnFunction()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILPeepholeOptimizer.cpp245 Value *Val = (CV != NULL) ? ConstantInt::get(aType, 1) in doIsConstCallConversionIfNeeded()
246 : ConstantInt::get(aType, 0); in doIsConstCallConversionIfNeeded()
339 Value *Val = (CV != NULL) ? ConstantInt::get(aType, 1) in optimizeCallInst()
340 : ConstantInt::get(aType, 0); in optimizeCallInst()
349 ConstantInt *CV = dyn_cast<ConstantInt>(CI->getOperand(0)); in optimizeCallInst()
353 Val = ConstantInt::get(aType, in optimizeCallInst()
356 Val = ConstantInt::get(aType, 0); in optimizeCallInst()
542 ? dyn_cast<ConstantInt>(LHSMask)->getZExtValue() : 0); in optimizeBitInsert()
544 ? dyn_cast<ConstantInt>(RHSMask)->getZExtValue() : 0); in optimizeBitInsert()
546 ? dyn_cast<ConstantInt>(LHSShift)->getZExtValue() : 0); in optimizeBitInsert()
[all …]
/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp69 ConstantInt* Low;
70 ConstantInt* High;
73 CaseRange(ConstantInt *low, ConstantInt *high, BasicBlock *bb) in CaseRange()
83 ConstantInt *LowerBound, ConstantInt *UpperBound,
98 const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low); in operator ()()
99 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator ()()
206 LowerSwitch::switchConvert(CaseItr Begin, CaseItr End, ConstantInt *LowerBound, in switchConvert()
207 ConstantInt *UpperBound, Value *Val, in switchConvert()
244 ConstantInt *NewLowerBound = Pivot.Low; in switchConvert()
248 ConstantInt *NewUpperBound = ConstantInt::get(NewLowerBound->getContext(), in switchConvert()
[all …]
/external/llvm/lib/Transforms/IPO/
DLowerBitSets.cpp317 cast<ConstantInt>(cast<ConstantAsMetadata>(Op->getOperand(2)) in buildBitSet()
338 B.CreateAnd(BitOffset, ConstantInt::get(BitsType, BitWidth - 1)); in createMaskedBitTest()
339 Value *BitMask = B.CreateShl(ConstantInt::get(BitsType, 1), BitIndex); in createMaskedBitTest()
341 return B.CreateICmpNE(MaskedBits, ConstantInt::get(BitsType, 0)); in createMaskedBitTest()
378 BAI->Mask->replaceAllUsesWith(ConstantInt::get(Int8Ty, Mask)); in allocateByteArrays()
390 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays()
391 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])}; in allocateByteArrays()
430 Constant *BitsConst = ConstantInt::get(BitsTy, Bits); in createBitSetTest()
453 return B.CreateICmpNE(ByteAndMask, ConstantInt::get(Int8Ty, 0)); in createBitSetTest()
467 return ConstantInt::getTrue(M->getContext()); in lowerBitSetCall()
[all …]
/external/llvm/examples/BrainF/
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()
238 CreateGEP(curhead, ConstantInt::get(C, APInt(32, curvalue)), in readloop()
273 CreateAdd(tape_0, ConstantInt::get(C, APInt(8, curvalue)), tapereg); in readloop()
437 ConstantInt::get(C, APInt(8, 0)), testreg); in readloop()

12345678910>>...13