Home
last modified time | relevance | path

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

12345678910>>...36

/external/swiftshader/third_party/LLVM/lib/Analysis/
DDIBuilder.cpp28 return ConstantInt::get(Type::getInt32Ty(VMContext), Tag | LLVMDebugVersion); in GetTagConstant()
103 ConstantInt::get(Type::getInt32Ty(VMContext), Lang), in createCompileUnit()
108 ConstantInt::get(Type::getInt1Ty(VMContext), true), // isMain in createCompileUnit()
109 ConstantInt::get(Type::getInt1Ty(VMContext), isOptimized), in createCompileUnit()
111 ConstantInt::get(Type::getInt32Ty(VMContext), RunTimeVer), in createCompileUnit()
144 ConstantInt::get(Type::getInt64Ty(VMContext), Val) in createEnumerator()
159 ConstantInt::get(Type::getInt32Ty(VMContext), 0), // Line in createNullPtrType()
160 ConstantInt::get(Type::getInt64Ty(VMContext), 0), // Size in createNullPtrType()
161 ConstantInt::get(Type::getInt64Ty(VMContext), 0), // Align in createNullPtrType()
162 ConstantInt::get(Type::getInt64Ty(VMContext), 0), // Offset in createNullPtrType()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp26 static ConstantInt *getOne(Constant *C) { in getOne()
27 return ConstantInt::get(cast<IntegerType>(C->getType()), 1); in getOne()
32 return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1)); in AddOne()
36 return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1)); in SubOne()
39 static ConstantInt *ExtractElement(Constant *V, Constant *Idx) { in ExtractElement()
40 return cast<ConstantInt>(ConstantExpr::getExtractElement(V, Idx)); in ExtractElement()
43 static bool HasAddOverflow(ConstantInt *Result, in HasAddOverflow()
44 ConstantInt *In1, ConstantInt *In2, in HasAddOverflow()
62 Constant *Idx = ConstantInt::get(Type::getInt32Ty(In1->getContext()), i); in AddWithOverflow()
72 return HasAddOverflow(cast<ConstantInt>(Result), in AddWithOverflow()
[all …]
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()
215 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
224 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
235 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
246 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
256 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
[all …]
DInstCombineAndOrXor.cpp25 return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1)); in AddOne()
28 static Constant *SubOne(ConstantInt *C) { in SubOne()
29 return ConstantInt::get(C->getContext(), C->getValue()-1); in SubOne()
40 if (isa<ConstantInt>(V)) in isFreeToInvert()
60 if (ConstantInt *C = dyn_cast<ConstantInt>(V)) in dyn_castNotVal()
61 return ConstantInt::get(C->getType(), ~C->getValue()); in dyn_castNotVal()
147 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0); in getICmpValue()
155 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1); in getICmpValue()
177 if (!isordered) return ConstantInt::getTrue(LHS->getContext()); in getFCmpValue()
195 ConstantInt *OpRHS, in OptAndOp()
[all …]
DInstCombineVectorOps.cpp38 isa<ConstantInt>(I->getOperand(2))) in CheapToScalarize()
71 Result.push_back(cast<ConstantInt>(*i)->getZExtValue()); in getShuffleMask()
94 if (!isa<ConstantInt>(III->getOperand(2))) in FindScalarElement()
96 unsigned IIElt = cast<ConstantInt>(III->getOperand(2))->getZExtValue(); in FindScalarElement()
148 if (ConstantInt *IdxC = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst()
191 CheapToScalarize(BO, isa<ConstantInt>(EI.getOperand(1)))) { in visitExtractElementInst()
214 if (ConstantInt *Elt = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst()
230 ConstantInt::get(Int32Ty, in visitExtractElementInst()
263 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), i)); in CollectSingleShuffleElements()
269 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), in CollectSingleShuffleElements()
[all …]
DInstCombineMulDivRem.cpp78 static bool MultiplyOverflows(ConstantInt *C1, ConstantInt *C2, bool sign) { in MultiplyOverflows()
112 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) { in visitMul()
123 Constant *NewCst = ConstantInt::get(Op0->getType(), Val.logBase2()); in visitMul()
131 { Value *X; ConstantInt *C1; in visitMul()
148 ConstantInt *C1; in visitMul()
157 ConstantInt::get(Y->getType(), PosVal)); in visitMul()
345 *I = NonNullOperand == 1 ? ConstantInt::getTrue(BBI->getContext()) : in SimplifyDivRemOfSelect()
346 ConstantInt::getFalse(BBI->getContext()); in SimplifyDivRemOfSelect()
384 if (ConstantInt *RHS = dyn_cast<ConstantInt>(Op1)) { in commonIDivTransforms()
388 if (ConstantInt *LHSRHS = dyn_cast<ConstantInt>(LHS->getOperand(1))) { in commonIDivTransforms()
[all …]
DInstCombineAddSub.cpp24 return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1)); in AddOne()
27 static Constant *SubOne(ConstantInt *C) { in SubOne()
28 return ConstantInt::get(C->getContext(), C->getValue()-1); in SubOne()
37 static inline Value *dyn_castFoldableMul(Value *V, ConstantInt *&CST) { in dyn_castFoldableMul()
45 if ((CST = dyn_cast<ConstantInt>(I->getOperand(1)))) in dyn_castFoldableMul()
48 if ((CST = dyn_cast<ConstantInt>(I->getOperand(1)))) { in dyn_castFoldableMul()
52 CST = ConstantInt::get(V->getType()->getContext(), in dyn_castFoldableMul()
98 if (ConstantInt *CI = dyn_cast<ConstantInt>(RHS)) { in visitAdd()
114 Value *XorLHS = 0; ConstantInt *XorRHS = 0; in visitAdd()
135 Constant *ShAmt = ConstantInt::get(I.getType(), ExtendAmt); in visitAdd()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
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()
290 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
336 ConstantInt::get(Res->getType(), ByteStart*8)); in ExtractConstantBytes()
[all …]
DMDBuilder.cpp51 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights()
69 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count))); in createFunctionEntryCount()
76 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID))); in createFunctionEntryCount()
91 return createRange(ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi)); in createRange()
141 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1); in createTBAANode()
162 Vals[i * 3 + 0] = createConstant(ConstantInt::get(Int64, Fields[i].Offset)); in createTBAAStructNode()
163 Vals[i * 3 + 1] = createConstant(ConstantInt::get(Int64, Fields[i].Size)); in createTBAAStructNode()
178 Ops[i * 2 + 2] = createConstant(ConstantInt::get(Int64, Fields[i].second)); in createTBAAStructTypeNode()
187 ConstantInt *Off = ConstantInt::get(Type::getInt64Ty(Context), Offset); in createTBAAScalarTypeNode()
197 ConstantInt *Off = ConstantInt::get(Int64, Offset); in createTBAAStructTagNode()
[all …]
/external/llvm/lib/IR/
DConstantFold.cpp62 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()
290 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
336 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()
67 auto *SecondShiftConst = dyn_cast<ConstantInt>(SecondShift->getOperand(1)); in canEvaluateShiftedShift()
128 ConstantInt *CI = nullptr; 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()
265 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
274 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
284 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
[all …]
DInstCombineCompares.cpp40 static ConstantInt *getOne(Constant *C) { in getOne()
41 return ConstantInt::get(cast<IntegerType>(C->getType()), 1); in getOne()
44 static ConstantInt *ExtractElement(Constant *V, Constant *Idx) { in ExtractElement()
45 return cast<ConstantInt>(ConstantExpr::getExtractElement(V, Idx)); in ExtractElement()
48 static bool HasAddOverflow(ConstantInt *Result, in HasAddOverflow()
49 ConstantInt *In1, ConstantInt *In2, in HasAddOverflow()
67 Constant *Idx = ConstantInt::get(Type::getInt32Ty(In1->getContext()), i); in AddWithOverflow()
77 return HasAddOverflow(cast<ConstantInt>(Result), in AddWithOverflow()
78 cast<ConstantInt>(In1), cast<ConstantInt>(In2), in AddWithOverflow()
82 static bool HasSubOverflow(ConstantInt *Result, in HasSubOverflow()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp59 if (!isa<ConstantInt>(CV->getOperand(i)) && in BitCastConstantVector()
151 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast()
161 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast()
178 return ConstantInt::get(FP->getContext(), in FoldBitCast()
205 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes()
210 return ConstantInt::get(CI->getContext(), V); in ExtractConstantBytes()
226 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes()
250 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
272 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
318 ConstantInt::get(Res->getType(), ByteStart*8)); in ExtractConstantBytes()
[all …]
/external/swiftshader/third_party/LLVM/unittests/VMCore/
DConstantsTest.cpp20 Constant* One = ConstantInt::get(Int1, 1, true); in TEST()
21 Constant* Zero = ConstantInt::get(Int1, 0); in TEST()
22 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST()
23 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); in TEST()
101 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue()); in TEST()
102 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue()); in TEST()
103 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue()); in TEST()
104 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue()); in TEST()
105 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue()); in TEST()
106 EXPECT_EQ(206U, ConstantInt::getSigned(Int8Ty, -50)->getZExtValue()); in TEST()
[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/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DIntrinsicLowering.cpp175 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
177 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
183 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP()
185 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
187 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
189 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), in LowerBSWAP()
192 ConstantInt::get(V->getType(), 0xFF0000), in LowerBSWAP()
195 ConstantInt::get(V->getType(), 0xFF00), in LowerBSWAP()
203 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56), in LowerBSWAP()
205 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40), in LowerBSWAP()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/FuzzMutate/
DOperationsTest.cpp83 Constant *i1 = ConstantInt::getFalse(Ctx); in TEST()
84 Constant *i8 = ConstantInt::get(Type::getInt8Ty(Ctx), 3); in TEST()
85 Constant *i16 = ConstantInt::get(Type::getInt16Ty(Ctx), 1 << 15); in TEST()
86 Constant *i32 = ConstantInt::get(Type::getInt32Ty(Ctx), 0); in TEST()
87 Constant *i64 = ConstantInt::get(Type::getInt64Ty(Ctx), in TEST()
198 Value *Cond = ConstantInt::getFalse(Ctx); in TEST()
239 Descr.BuilderFunc({ConstantInt::getTrue(Ctx)},&*BB.getFirstInsertionPt()); in TEST()
258 BranchInst::Create(BB2, BB3, ConstantInt::getFalse(Ctx), BB1); in TEST()
263 PHI1->addIncoming(ConstantInt::get(Int8Ty, 0), BB1); in TEST()
264 PHI1->addIncoming(ConstantInt::get(Int8Ty, 1), BB2); in TEST()
[all …]
/external/swiftshader/third_party/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/swiftshader/third_party/llvm-7.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 …]
/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,
247 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable()
269 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I); in hasOnlyOneNonZeroIndex()
301 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis()
367 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd()
374 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd()
378 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
[all …]
/external/llvm/include/llvm/IR/
DIntrinsicInst.h114 return cast<ConstantInt>( in getOffset()
151 ConstantInt *getAlignmentCst() const { in getAlignmentCst()
152 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(3))); in getAlignmentCst()
159 ConstantInt *getVolatileCst() const { in getVolatileCst()
160 return cast<ConstantInt>(const_cast<Value*>(getArgOperand(4))); in getVolatileCst()
351 ConstantInt *getHash() const { in getHash()
352 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(1))); in getHash()
355 ConstantInt *getNumCounters() const { in getNumCounters()
356 return cast<ConstantInt>(const_cast<Value *>(getArgOperand(2))); in getNumCounters()
359 ConstantInt *getIndex() const { in getIndex()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLowerMemIntrinsics.cpp27 Value *DstAddr, ConstantInt *CopyLen, in createMemCpyLoopKnownSize()
72 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0U), PreLoopBB); in createMemCpyLoopKnownSize()
82 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U)); in createMemCpyLoopKnownSize()
86 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount); in createMemCpyLoopKnownSize()
117 OpTy, CastedSrc, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize()
126 OpTy, CastedDst, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize()
173 ConstantInt *CILoopOpSize = ConstantInt::get(ILengthType, LoopOpSize); in createMemCpyLoopUnknownSize()
182 LoopIndex->addIncoming(ConstantInt::get(CopyLenType, 0U), PreLoopBB); in createMemCpyLoopUnknownSize()
190 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize()
211 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize()
[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()
112 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument()
121 Arg, cast<ConstantInt>(II->getArgOperand(0))->getZExtValue(), AATags); in getForArgument()
126 Arg, cast<ConstantInt>(II->getArgOperand(1))->getZExtValue(), AATags); in getForArgument()
152 if (const ConstantInt *LenCI = dyn_cast<ConstantInt>(CS.getArgument(2))) in getForArgument()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp177 ConstantInt *AndCst) { in foldCmpLoadFromIndexedGlobal()
192 !isa<ConstantInt>(GEP->getOperand(1)) || in foldCmpLoadFromIndexedGlobal()
193 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in foldCmpLoadFromIndexedGlobal()
204 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); in foldCmpLoadFromIndexedGlobal()
279 if (!isa<ConstantInt>(C)) return nullptr; in foldCmpLoadFromIndexedGlobal()
283 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero(); in foldCmpLoadFromIndexedGlobal()
356 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in foldCmpLoadFromIndexedGlobal()
364 Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement); in foldCmpLoadFromIndexedGlobal()
376 Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement); in foldCmpLoadFromIndexedGlobal()
384 Value *SecondFalseIdx = ConstantInt::get(Idx->getType(),SecondFalseElement); in foldCmpLoadFromIndexedGlobal()
[all …]

12345678910>>...36