Home
last modified time | relevance | path

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

12345678910

/external/llvm/lib/IR/
DDIBuilder.cpp29 return ConstantInt::get(Type::getInt32Ty(VMContext), Tag | LLVMDebugVersion); in GetTagConstant()
113 ConstantInt::get(Type::getInt32Ty(VMContext), Lang), in createCompileUnit()
115 ConstantInt::get(Type::getInt1Ty(VMContext), isOptimized), in createCompileUnit()
117 ConstantInt::get(Type::getInt32Ty(VMContext), RunTimeVer), in createCompileUnit()
145 ConstantInt::get(Type::getInt32Ty(C), Line), in createImportedModule()
153 ConstantInt::get(Type::getInt32Ty(C), Line), in createImportedModule()
186 ConstantInt::get(Type::getInt32Ty(VMContext), Line), in createImportedDeclaration()
210 ConstantInt::get(Type::getInt64Ty(VMContext), Val) in createEnumerator()
225 ConstantInt::get(Type::getInt32Ty(VMContext), 0), // Line in createUnspecifiedType()
226 ConstantInt::get(Type::getInt64Ty(VMContext), 0), // Size in createUnspecifiedType()
[all …]
DConstantFold.cpp62 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); in BitCastConstantVector()
154 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast()
164 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast()
181 return ConstantInt::get(FP->getContext(), in FoldBitCast()
208 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes()
213 return ConstantInt::get(CI->getContext(), V); in ExtractConstantBytes()
229 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes()
253 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
275 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
321 ConstantInt::get(Res->getType(), ByteStart*8)); in ExtractConstantBytes()
[all …]
DMetadata.cpp425 static bool tryMergeRange(SmallVectorImpl<Value *> &EndPoints, ConstantInt *Low, in tryMergeRange()
426 ConstantInt *High) { in tryMergeRange()
429 APInt LB = cast<ConstantInt>(EndPoints[Size - 2])->getValue(); in tryMergeRange()
430 APInt LE = cast<ConstantInt>(EndPoints[Size - 1])->getValue(); in tryMergeRange()
435 EndPoints[Size - 2] = ConstantInt::get(Ty, Union.getLower()); in tryMergeRange()
436 EndPoints[Size - 1] = ConstantInt::get(Ty, Union.getUpper()); in tryMergeRange()
442 static void addRange(SmallVectorImpl<Value *> &EndPoints, ConstantInt *Low, in addRange()
443 ConstantInt *High) { in addRange()
471 ConstantInt *ALow = cast<ConstantInt>(A->getOperand(2 * AI)); in getMostGenericRange()
472 ConstantInt *BLow = cast<ConstantInt>(B->getOperand(2 * BI)); in getMostGenericRange()
[all …]
DConstants.cpp77 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNullValue()
90 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isAllOnesValue()
114 return ConstantInt::get(Ty, 0); in getNullValue()
150 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue()
165 return ConstantInt::get(Ty->getContext(), in getAllOnesValue()
206 if (ConstantInt *CI = dyn_cast<ConstantInt>(Elt)) in getAggregateElement()
267 if (!isa<ConstantInt>(CE->getOperand(1)) ||CE->getOperand(1)->isNullValue()) in canTrapImpl()
431 void ConstantInt::anchor() { } in anchor()
433 ConstantInt::ConstantInt(IntegerType *Ty, const APInt& V) in ConstantInt() function in ConstantInt
438 ConstantInt *ConstantInt::getTrue(LLVMContext &Context) { in getTrue()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp36 if (ConstantInt *CUI = dyn_cast<ConstantInt>(Op1)) in commonShiftTransforms()
47 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1), in commonShiftTransforms()
81 ConstantInt *CI = 0; in CanEvaluateShifted()
117 CI = dyn_cast<ConstantInt>(I->getOperand(1)); in CanEvaluateShifted()
141 CI = dyn_cast<ConstantInt>(I->getOperand(1)); in CanEvaluateShifted()
216 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
225 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
236 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
247 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
257 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
[all …]
DInstCombineCompares.cpp27 static ConstantInt *getOne(Constant *C) { in getOne()
28 return ConstantInt::get(cast<IntegerType>(C->getType()), 1); in getOne()
33 return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1)); in AddOne()
37 return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1)); in SubOne()
40 static ConstantInt *ExtractElement(Constant *V, Constant *Idx) { in ExtractElement()
41 return cast<ConstantInt>(ConstantExpr::getExtractElement(V, Idx)); in ExtractElement()
44 static bool HasAddOverflow(ConstantInt *Result, in HasAddOverflow()
45 ConstantInt *In1, ConstantInt *In2, in HasAddOverflow()
63 Constant *Idx = ConstantInt::get(Type::getInt32Ty(In1->getContext()), i); in AddWithOverflow()
73 return HasAddOverflow(cast<ConstantInt>(Result), in AddWithOverflow()
[all …]
DInstCombineAndOrXor.cpp25 static Constant *AddOne(ConstantInt *C) { in AddOne()
26 return ConstantInt::get(C->getContext(), C->getValue() + 1); in AddOne()
29 static Constant *SubOne(ConstantInt *C) { in SubOne()
30 return ConstantInt::get(C->getContext(), C->getValue()-1); in SubOne()
41 if (isa<ConstantInt>(V)) in isFreeToInvert()
61 if (ConstantInt *C = dyn_cast<ConstantInt>(V)) in dyn_castNotVal()
62 return ConstantInt::get(C->getType(), ~C->getValue()); in dyn_castNotVal()
122 if (!isordered) return ConstantInt::getTrue(LHS->getContext()); in getFCmpValue()
132 ConstantInt *OpRHS, in OptAndOp()
133 ConstantInt *AndRHS, in OptAndOp()
[all …]
DInstCombineSimplifyDemanded.cpp34 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); in ShrinkDemandedConstant()
44 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
117 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in SimplifyDemandedUseBits()
354 isa<ConstantInt>(I->getOperand(1)) && in SimplifyDemandedUseBits()
355 isa<ConstantInt>(LHSInst->getOperand(1)) && in SimplifyDemandedUseBits()
357 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1)); in SimplifyDemandedUseBits()
358 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); in SimplifyDemandedUseBits()
362 ConstantInt::get(I->getType(), NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits()
367 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits()
496 if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) { in SimplifyDemandedUseBits()
[all …]
DInstCombineVectorOps.cpp40 isa<ConstantInt>(I->getOperand(2))) in CheapToScalarize()
73 if (!isa<ConstantInt>(III->getOperand(2))) in FindScalarElement()
75 unsigned IIElt = cast<ConstantInt>(III->getOperand(2))->getZExtValue(); in FindScalarElement()
184 if (ConstantInt *IdxC = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst()
234 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) { in visitExtractElementInst()
257 if (ConstantInt *Elt = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst()
273 ConstantInt::get(Int32Ty, in visitExtractElementInst()
306 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), i)); in CollectSingleShuffleElements()
312 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), in CollectSingleShuffleElements()
323 if (!isa<ConstantInt>(IdxOp)) in CollectSingleShuffleElements()
[all …]
DInstCombineCasts.cpp28 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) { in DecomposeSimpleLinearExpr()
31 return ConstantInt::get(Val->getType(), 0); in DecomposeSimpleLinearExpr()
43 if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) { in DecomposeSimpleLinearExpr()
130 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation()
136 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation()
385 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) { in CanEvaluateTruncated()
395 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) { in CanEvaluateTruncated()
466 Constant *One = ConstantInt::get(Src->getType(), 1); in visitTrunc()
473 Value *A = 0; ConstantInt *Cst = 0; in visitTrunc()
515 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(ICI->getOperand(1))) { in transformZExtICmp()
[all …]
DInstCombineCalls.cpp65 MI->setAlignment(ConstantInt::get(MI->getAlignmentType(), in SimplifyMemTransfer()
72 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2)); in SimplifyMemTransfer()
120 isa<ConstantInt>(M->getOperand(0)) && in SimplifyMemTransfer()
121 cast<ConstantInt>(M->getOperand(0))->isNullValue() && in SimplifyMemTransfer()
123 isa<ConstantInt>(M->getOperand(1)) && in SimplifyMemTransfer()
124 cast<ConstantInt>(M->getOperand(1))->getValue() == Size && in SimplifyMemTransfer()
157 MI->setAlignment(ConstantInt::get(MI->getAlignmentType(), in SimplifyMemSet()
163 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength()); in SimplifyMemSet()
164 ConstantInt *FillC = dyn_cast<ConstantInt>(MI->getValue()); in SimplifyMemSet()
185 StoreInst *S = Builder->CreateStore(ConstantInt::get(ITy, Fill), Dest, in SimplifyMemSet()
[all …]
DInstCombineSelect.cpp118 return ConstantInt::get(I->getType(), 1); in GetSelectFoldableConstant()
197 ConstantInt *C1I = dyn_cast<ConstantInt>(C1); in isSelect01()
200 ConstantInt *C2I = dyn_cast<ConstantInt>(C2); in isSelect01()
431 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
453 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() + 1); in visitSelectInstWithICmp()
455 AdjustedRHS = ConstantInt::get(CI->getContext(), CI->getValue() - 1); in visitSelectInstWithICmp()
529 if (ConstantInt *Cmp = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
530 ConstantInt *C1 = NULL, *C2 = NULL; in visitSelectInstWithICmp()
532 C1 = dyn_cast<ConstantInt>(TrueVal); in visitSelectInstWithICmp()
533 C2 = dyn_cast<ConstantInt>(FalseVal); in visitSelectInstWithICmp()
[all …]
DInstCombineMulDivRem.cpp77 static bool MultiplyOverflows(ConstantInt *C1, ConstantInt *C2, bool sign) { in MultiplyOverflows()
111 Elts.push_back(ConstantInt::get(Elt->getType(), IVal->logBase2())); in getLogBase2Vector()
145 NewCst = ConstantInt::get(NewOp->getType(), IVal->logBase2()); in visitMul()
160 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) { in visitMul()
162 { Value *X; ConstantInt *C1; in visitMul()
179 ConstantInt *C1; in visitMul()
188 ConstantInt::get(Y->getType(), PosVal)); in visitMul()
686 if (ConstantInt *RHS = dyn_cast<ConstantInt>(Op1)) { in commonIDivTransforms()
690 if (ConstantInt *LHSRHS = dyn_cast<ConstantInt>(LHS->getOperand(1))) { in commonIDivTransforms()
730 } else if (ConstantInt *C = dyn_cast<ConstantInt>(V)) { in dyn_castZExtVal()
[all …]
/external/llvm/include/llvm/Support/
DIntegersSubset.h48 Constant *NewVal = ConstantInt::get(ConstantIntVal->getContext(), res); \
49 return IntItem(cast<ConstantInt>(NewVal)); \
55 Constant *NewVal = ConstantInt::get(ConstantIntVal->getContext(), res); \
56 return IntItem(cast<ConstantInt>(NewVal)); \
63 Constant *NewVal = ConstantInt::get(ConstantIntVal->getContext(), res); \
64 ConstantIntVal = cast<ConstantInt>(NewVal); \
72 Constant *NewVal = ConstantInt::get(ConstantIntVal->getContext(), res); \
73 ConstantIntVal = cast<ConstantInt>(NewVal); \
81 Constant *NewVal = ConstantInt::get(ConstantIntVal->getContext(), res); \
83 ConstantIntVal = cast<ConstantInt>(NewVal); \
[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/Target/R600/
DR600TextureIntrinsicsReplacer.cpp127 ConstantInt::get(Int32Type, SrcSelect[0]), in ReplaceCallInst()
128 ConstantInt::get(Int32Type, SrcSelect[1]), in ReplaceCallInst()
129 ConstantInt::get(Int32Type, SrcSelect[2]), in ReplaceCallInst()
130 ConstantInt::get(Int32Type, SrcSelect[3]) in ReplaceCallInst()
143 ConstantInt::get(Int32Type, CT[0]), in ReplaceCallInst()
144 ConstantInt::get(Int32Type, CT[1]), in ReplaceCallInst()
145 ConstantInt::get(Int32Type, CT[2]), in ReplaceCallInst()
146 ConstantInt::get(Int32Type, CT[3]) in ReplaceCallInst()
166 dyn_cast<ConstantInt>(I.getArgOperand(3))->getZExtValue(); in ReplaceTexIntrinsic()
171 ConstantInt::get(Int32Type, 0), in ReplaceTexIntrinsic()
[all …]
/external/llvm/include/llvm/IR/
DMDBuilder.h72 Vals[i+1] = ConstantInt::get(Int32Ty, Weights[i]); in createBranchWeights()
90 Value *Range[2] = { ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi) }; in createRange()
129 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1);
152 Vals[i * 3 + 0] = ConstantInt::get(Int64, Fields[i].Offset); in createTBAAStructNode()
153 Vals[i * 3 + 1] = ConstantInt::get(Int64, Fields[i].Size); in createTBAAStructNode()
168 Ops[i * 2 + 2] = ConstantInt::get(Int64, Fields[i].second); in createTBAAStructTypeNode()
181 Ops[2] = ConstantInt::get(Int64, Offset);
190 Value *Ops[3] = { BaseType, AccessType, ConstantInt::get(Int64, Offset) }; in createTBAAStructTagNode()
/external/llvm/unittests/IR/
DMDBuilderTest.cpp52 EXPECT_TRUE(isa<ConstantInt>(R1->getOperand(0))); in TEST_F()
53 EXPECT_TRUE(isa<ConstantInt>(R1->getOperand(1))); in TEST_F()
54 ConstantInt *C0 = cast<ConstantInt>(R1->getOperand(0)); in TEST_F()
55 ConstantInt *C1 = cast<ConstantInt>(R1->getOperand(1)); in TEST_F()
103 EXPECT_TRUE(isa<ConstantInt>(N2->getOperand(2))); in TEST_F()
104 EXPECT_EQ(cast<ConstantInt>(N2->getOperand(2))->getZExtValue(), 1U); in TEST_F()
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 …]
/external/chromium_org/third_party/mesa/src/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/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/Target/NVPTX/
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()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp137 if (ConstantInt *SizeCI = in isFoldable()
138 dyn_cast<ConstantInt>(CI->getArgOperand(SizeCIOp))) { in isFoldable()
148 if (ConstantInt *Arg = dyn_cast<ConstantInt>( in isFoldable()
263 ConstantInt::get(TD->getIntPtrType(Context), Len), in callOptimizer()
309 Value *LenV = ConstantInt::get(TD->getIntPtrType(PT), Len); in callOptimizer()
311 ConstantInt::get(TD->getIntPtrType(PT), in callOptimizer()
395 ConstantInt::get(TD->getIntPtrType(*Context), Len + 1), 1); in emitStrLenMemCpy()
417 if (ConstantInt *LengthArg = dyn_cast<ConstantInt>(CI->getArgOperand(2))) in callOptimizer()
458 ConstantInt *CharC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in callOptimizer()
468 ConstantInt::get(TD->getIntPtrType(*Context), Len), in callOptimizer()
[all …]
/external/llvm/lib/Analysis/
DValueTracking.cpp51 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(Op0)) { in ComputeMaskedBitsAddSub()
202 ConstantInt *Lower = cast<ConstantInt>(Ranges.getOperand(2*i + 0)); in computeMaskedBitsLoad()
203 ConstantInt *Upper = cast<ConstantInt>(Ranges.getOperand(2*i + 1)); in computeMaskedBitsLoad()
245 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ComputeMaskedBits()
486 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in ComputeMaskedBits()
498 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in ComputeMaskedBits()
514 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in ComputeMaskedBits()
547 if (ConstantInt *Rem = dyn_cast<ConstantInt>(I->getOperand(1))) { in ComputeMaskedBits()
584 if (ConstantInt *Rem = dyn_cast<ConstantInt>(I->getOperand(1))) { in ComputeMaskedBits()
634 unsigned Idx = cast<ConstantInt>(Index)->getZExtValue(); in ComputeMaskedBits()
[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()
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()

12345678910