Searched refs:ConstantInt (Results 1 - 25 of 258) sorted by relevance

1234567891011

/external/proguard/src/proguard/gui/splash/
H A DConstantInt.java28 public class ConstantInt implements VariableInt class in inherits:VariableInt
34 * Creates a new ConstantInt.
37 public ConstantInt(int value) method in class:ConstantInt
H A DRectangleSprite.java58 this(filled, color, x, y, width, height, new ConstantInt(0), new ConstantInt(0));
/external/llvm/lib/IR/
H A DDIBuilder.cpp29 return ConstantInt::get(Type::getInt32Ty(VMContext), Tag | LLVMDebugVersion);
127 ConstantInt::get(Type::getInt32Ty(VMContext), Lang),
129 ConstantInt::get(Type::getInt1Ty(VMContext), isOptimized),
131 ConstantInt::get(Type::getInt32Ty(VMContext), RunTimeVer),
138 ConstantInt::get(Type::getInt32Ty(VMContext), Kind)
166 ConstantInt::get(Type::getInt32Ty(C), Line),
174 ConstantInt::get(Type::getInt32Ty(C), Line),
230 ConstantInt::get(Type::getInt64Ty(VMContext), Val)
245 ConstantInt::get(Type::getInt32Ty(VMContext), 0), // Line
246 ConstantInt
[all...]
H A DConstantFold.cpp62 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i));
154 if (isa<ConstantInt>(V) || isa<ConstantFP>(V))
164 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
181 return ConstantInt::get(FP->getContext(),
208 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) {
213 return ConstantInt::get(CI->getContext(), V);
229 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RH
[all...]
H A DMDBuilder.cpp46 Vals[i + 1] = ConstantInt::get(Int32Ty, Weights[i]);
59 Value *Range[2] = {ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi)};
87 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1);
102 Vals[i * 3 + 0] = ConstantInt::get(Int64, Fields[i].Offset);
103 Vals[i * 3 + 1] = ConstantInt::get(Int64, Fields[i].Size);
118 Ops[i * 2 + 2] = ConstantInt::get(Int64, Fields[i].second);
127 ConstantInt *Off = ConstantInt::get(Type::getInt64Ty(Context), Offset);
137 Value *Ops[3] = {BaseType, AccessType, ConstantInt
[all...]
H A DMetadata.cpp428 static bool tryMergeRange(SmallVectorImpl<Value *> &EndPoints, ConstantInt *Low,
429 ConstantInt *High) {
432 APInt LB = cast<ConstantInt>(EndPoints[Size - 2])->getValue();
433 APInt LE = cast<ConstantInt>(EndPoints[Size - 1])->getValue();
438 EndPoints[Size - 2] = ConstantInt::get(Ty, Union.getLower());
439 EndPoints[Size - 1] = ConstantInt::get(Ty, Union.getUpper());
445 static void addRange(SmallVectorImpl<Value *> &EndPoints, ConstantInt *Low,
446 ConstantInt *High) {
474 ConstantInt *ALow = cast<ConstantInt>(
[all...]
/external/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp69 ConstantInt *LowerBound, ConstantInt *UpperBound,
83 const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low);
84 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High);
140 ConstantInt *LowerBound,
141 ConstantInt *UpperBound, Value *Val,
165 << cast<ConstantInt>(Pivot.Low)->getValue()
166 << " -" << cast<ConstantInt>(Pivo
[all...]
H A DCmpInstAnalysis.cpp77 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0);
85 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1);
/external/llvm/lib/Target/R600/
H A DR600TextureIntrinsicsReplacer.cpp126 ConstantInt::get(Int32Type, SrcSelect[0]),
127 ConstantInt::get(Int32Type, SrcSelect[1]),
128 ConstantInt::get(Int32Type, SrcSelect[2]),
129 ConstantInt::get(Int32Type, SrcSelect[3])
142 ConstantInt::get(Int32Type, CT[0]),
143 ConstantInt::get(Int32Type, CT[1]),
144 ConstantInt::get(Int32Type, CT[2]),
145 ConstantInt::get(Int32Type, CT[3])
165 dyn_cast<ConstantInt>(I.getArgOperand(3))->getZExtValue();
170 ConstantInt
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp49 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1),
83 ConstantInt *CI = nullptr;
119 CI = dyn_cast<ConstantInt>(I->getOperand(1));
143 CI = dyn_cast<ConstantInt>(I->getOperand(1));
218 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1));
227 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt));
238 ConstantInt::get(BO->getContext(), Mask));
249 BO->setOperand(1, ConstantInt::get(BO->getType(),
259 ConstantInt *C
[all...]
H A DInstCombineCompares.cpp29 static ConstantInt *getOne(Constant *C) {
30 return ConstantInt::get(cast<IntegerType>(C->getType()), 1);
33 static ConstantInt *ExtractElement(Constant *V, Constant *Idx) {
34 return cast<ConstantInt>(ConstantExpr::getExtractElement(V, Idx));
37 static bool HasAddOverflow(ConstantInt *Result,
38 ConstantInt *In1, ConstantInt *In2,
56 Constant *Idx = ConstantInt::get(Type::getInt32Ty(In1->getContext()), i);
66 return HasAddOverflow(cast<ConstantInt>(Result),
67 cast<ConstantInt>(In
[all...]
H A DInstCombineCalls.cpp67 MI->setAlignment(ConstantInt::get(MI->getAlignmentType(),
74 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2));
122 isa<ConstantInt>(M->getOperand(0)) &&
123 cast<ConstantInt>(M->getOperand(0))->isNullValue() &&
125 isa<ConstantInt>(M->getOperand(1)) &&
126 cast<ConstantInt>(M->getOperand(1))->getValue() == Size &&
159 MI->setAlignment(ConstantInt::get(MI->getAlignmentType(),
165 ConstantInt *LenC = dyn_cast<ConstantInt>(M
[all...]
H A DInstCombineSimplifyDemanded.cpp35 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo));
45 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded));
118 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
355 isa<ConstantInt>(I->getOperand(1)) &&
356 isa<ConstantInt>(LHSInst->getOperand(1)) &&
358 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1));
359 ConstantInt *XorRH
[all...]
H A DInstCombineSelect.cpp73 if (ConstantInt *C1 = dyn_cast<ConstantInt>(CmpRHS)) {
142 return ConstantInt::get(I->getType(), 1);
221 ConstantInt *C1I = dyn_cast<ConstantInt>(C1);
224 ConstantInt *C2I = dyn_cast<ConstantInt>(C2);
482 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) {
504 AdjustedRHS = ConstantInt
[all...]
/external/llvm/examples/ModuleMaker/
H A DModuleMaker.cpp45 Value *Two = ConstantInt::get(Type::getInt32Ty(Context), 2);
46 Value *Three = ConstantInt::get(Type::getInt32Ty(Context), 3);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXImageOptimizer.cpp43 void replaceWith(Instruction *From, ConstantInt *To);
94 replaceWith(&I, ConstantInt::getTrue(I.getContext()));
100 replaceWith(&I, ConstantInt::getFalse(I.getContext()));
113 replaceWith(&I, ConstantInt::getTrue(I.getContext()));
119 replaceWith(&I, ConstantInt::getFalse(I.getContext()));
131 replaceWith(&I, ConstantInt::getTrue(I.getContext()));
138 replaceWith(&I, ConstantInt::getFalse(I.getContext()));
146 void NVPTXImageOptimizer::replaceWith(Instruction *From, ConstantInt *To) {
H A DNVPTXAllocaHoisting.cpp29 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) {
H A DNVPTXLowerAggrCopies.cpp59 ind->addIncoming(ConstantInt::get(indType, 0), origBB);
67 Value *newind = loop.CreateAdd(ind, ConstantInt::get(indType, 1));
92 ind->addIncoming(ConstantInt::get(len->getType(), 0), origBB);
96 Value *newind = loop.CreateAdd(ind, ConstantInt::get(len->getType(), 1));
136 if (ConstantInt *len_int = dyn_cast<ConstantInt>(len)) {
146 if (ConstantInt *len_int = dyn_cast<ConstantInt>(len)) {
170 Value *len = ConstantInt::get(Type::getInt32Ty(Context), numLoads);
/external/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp176 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
178 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
184 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
186 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
188 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
190 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24),
193 ConstantInt::get(Type::getInt32Ty(Context), 0xFF0000),
196 ConstantInt::get(Type::getInt32Ty(Context), 0xFF00),
204 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56),
206 Value *Tmp7 = Builder.CreateShl(V, ConstantInt
[all...]
/external/llvm/unittests/IR/
H A DMDBuilderTest.cpp53 EXPECT_TRUE(isa<ConstantInt>(R1->getOperand(0)));
54 EXPECT_TRUE(isa<ConstantInt>(R1->getOperand(1)));
55 ConstantInt *C0 = cast<ConstantInt>(R1->getOperand(0));
56 ConstantInt *C1 = cast<ConstantInt>(R1->getOperand(1));
104 EXPECT_TRUE(isa<ConstantInt>(N2->getOperand(2)));
105 EXPECT_EQ(cast<ConstantInt>(N2->getOperand(2))->getZExtValue(), 1U);
H A DVerifierTest.cpp36 Constant *False = ConstantInt::getFalse(C);
41 Constant *Zero32 = ConstantInt::get(IntegerType::get(C, 32), 0);
H A DMetadataTest.cpp83 ConstantInt *CI = ConstantInt::get(getGlobalContext(), APInt(8, 0));
118 Constant *C = ConstantInt::get(Type::getInt32Ty(getGlobalContext()), 1);
132 Constant *C = ConstantInt::get(Type::getInt32Ty(Context), 1);
133 Constant *C2 = ConstantInt::get(Type::getInt32Ty(Context), 2);
H A DConstantsTest.cpp23 Constant* One = ConstantInt::get(Int1, 1, true);
24 Constant* Zero = ConstantInt::get(Int1, 0);
25 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true);
26 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1));
104 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue());
105 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue());
106 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue());
107 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue());
108 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue());
109 EXPECT_EQ(206U, ConstantInt
[all...]
/external/llvm/examples/BrainF/
H A DBrainF.cpp81 ConstantInt *val_mem = ConstantInt::get(C, APInt(32, memtotal));
95 ConstantInt::get(C, APInt(8, 0)),
97 ConstantInt::get(C, APInt(32, 1)),
98 ConstantInt::get(C, APInt(1, 0))
109 CreateGEP(ptr_arr, ConstantInt::get(C, APInt(32, memtotal)), "arrmax");
114 ConstantInt::get(C, APInt(32, memtotal/2)),
241 CreateGEP(curhead, ConstantInt::get(C, APInt(32, curvalue)),
276 CreateAdd(tape_0, ConstantInt::get(C, APInt(8, curvalue)), tapereg);
440 ConstantInt
[all...]
/external/clang/lib/CodeGen/
H A DCGLoopInfo.cpp35 ConstantInt::get(Type::getInt32Ty(Ctx),
43 ConstantInt::get(Type::getInt32Ty(Ctx),
51 ConstantInt::get(Type::getInt1Ty(Ctx),

Completed in 282 milliseconds

1234567891011