/external/llvm/unittests/IR/ |
InstructionsTest.cpp | 38 Constant* One = ConstantInt::get(Int1, 1, true); 73 Value *Args[] = {ConstantInt::get(Type::getInt8Ty(Ctx), 20), 74 ConstantInt::get(Type::getInt32Ty(Ctx), 9999), 75 ConstantInt::get(Type::getInt64Ty(Ctx), 42)}; 91 Value *Args[] = {ConstantInt::get(Type::getInt8Ty(Ctx), 20), 92 ConstantInt::get(Type::getInt32Ty(Ctx), 9999), 93 ConstantInt::get(Type::getInt64Ty(Ctx), 42)}; 128 Constant* One = ConstantInt::get(Int1, 1, true); 304 ConstantInt *Ci32a = ConstantInt::get(C, APInt(32, 1492)) [all...] |
/external/llvm/lib/Analysis/ |
ConstantFolding.cpp | 96 return ConstantInt::get(IT, Result); 106 if (isa<ConstantFP>(C) || isa<ConstantInt>(C)) { 178 Constant *Src =dyn_cast<ConstantInt>(C->getAggregateElement(SrcElt++)); 187 ConstantInt::get(Src->getType(), ShiftAmt)); 204 Constant *Src = dyn_cast<ConstantInt>(C->getAggregateElement(i)); 213 ConstantInt::get(Src->getType(), ShiftAmt)); 289 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { 478 return ConstantInt::get(IntType->getContext(), ResultVal); 585 Constant *Res = ConstantInt::get(CE->getContext(), StrVal) [all...] |
PHITransAddr.cpp | 35 isa<ConstantInt>(Inst->getOperand(1))) 256 isa<ConstantInt>(Inst->getOperand(1))) { 258 Constant *RHS = cast<ConstantInt>(Inst->getOperand(1)); 268 if (ConstantInt *CI = dyn_cast<ConstantInt>(BOp->getOperand(1))) { 425 isa<ConstantInt>(Inst->getOperand(1))) {
|
ValueTracking.cpp | 234 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(Op0)) { 380 ConstantInt *Lower = 381 mdconst::extract<ConstantInt>(Ranges.getOperand(2 * i + 0)); 382 ConstantInt *Upper = 383 mdconst::extract<ConstantInt>(Ranges.getOperand(2 * i + 1)); 772 ConstantInt *C; [all...] |
MemoryBuiltins.cpp | 452 if (const ConstantInt *C = dyn_cast<ConstantInt>(ArraySize)) { 484 ConstantInt *Arg= dyn_cast<ConstantInt>(CS.getArgument(FnData->FstParam)); 495 ConstantInt *Arg = dyn_cast<ConstantInt>(CS.getArgument(FnData->FstParam)); 504 Arg = dyn_cast<ConstantInt>(CS.getArgument(FnData->SndParam)); 603 Zero = ConstantInt::get(IntTy, 0); 627 return std::make_pair(ConstantInt::get(Context, Const.first), 628 ConstantInt::get(Context, Const.second)) [all...] |
/external/llvm/lib/CodeGen/ |
SjLjEHPrepare.cpp | 132 Value *Zero = ConstantInt::get(Int32Ty, 0); 133 Value *One = ConstantInt::get(Int32Ty, 1); 139 ConstantInt *CallSiteNoC = 140 ConstantInt::get(Type::getInt32Ty(I->getContext()), Number); 253 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsPt)->getArraySize())) 261 Value *TrueValue = ConstantInt::getTrue(F.getContext()); 294 if (isa<ConstantInt>(AI->getArraySize()) && BB == F.begin()) 438 ConstantInt *CallSiteNum = 439 ConstantInt::get(Type::getInt32Ty(F.getContext()), I + 1);
|
/external/llvm/lib/Transforms/Utils/ |
IntegerDivision.cpp | 37 ConstantInt *Shift; 109 ConstantInt *Shift; 161 ConstantInt *Zero; 162 ConstantInt *One; 163 ConstantInt *NegOne; 164 ConstantInt *MSB; 169 NegOne = ConstantInt::getSigned(DivTy, -1); 175 NegOne = ConstantInt::getSigned(DivTy, -1); 179 ConstantInt *True = Builder.getTrue();
|
CtorUtils.cpp | 109 ConstantInt *CI = cast<ConstantInt>(CS->getOperand(0));
|
SimplifyIndVar.cpp | 105 !isa<ConstantInt>(UseInst->getOperand(1))) 111 || !isa<ConstantInt>(IVOperand->getOperand(1))) 118 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1)); 125 D = ConstantInt::get(UseInst->getContext(), 178 ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext())); 182 ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext())); 272 ConstantInt::get(Rem->getType(), 0),
|
Local.cpp | 76 if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) { 119 ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition()); 150 ConstantInt *CI = 151 mdconst::dyn_extract<ConstantInt>(MD->getOperand(MD_i)); 221 ConstantInt *SICase = 222 mdconst::dyn_extract<ConstantInt>(MD->getOperand(2)); 223 ConstantInt *SIDef = 224 mdconst::dyn_extract<ConstantInt>(MD->getOperand(1)) [all...] |
/external/llvm/lib/IR/ |
AutoUpgrade.cpp | 398 ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(C), 1))); 489 ConstantInt::get(I32Ty, I)); 522 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); 527 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); 532 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); 537 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); 542 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); 547 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); 552 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); 557 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue() [all...] |
Verifier.cpp | [all...] |
/external/clang/lib/CodeGen/ |
CGCUDANV.cpp | 58 llvm::Constant *Zeros[] = {llvm::ConstantInt::get(SizeTy, 0), 59 llvm::ConstantInt::get(SizeTy, 0)}; 146 llvm::Constant *Zero = llvm::ConstantInt::get(IntTy, 0); 197 KernelName, KernelName, llvm::ConstantInt::get(IntTy, -1), NullPtr, 254 llvm::ConstantInt::get(IntTy, 0x466243b1), // Fatbin wrapper magic. 255 llvm::ConstantInt::get(IntTy, 1), // Fatbin version.
|
CGBuiltin.cpp | 176 llvm::ConstantInt::get(IntType, -1)); 249 Value *ShiftCst = llvm::ConstantInt::get(IntTy, Width); 356 return ConstantInt::get(ResType, (Type & 2) ? 0 : -1, /*isSigned=*/true); 365 return ConstantInt::get(ResType, ObjectSize, /*isSigned=*/true); 403 auto *CI = ConstantInt::get(Builder.getInt1Ty(), (Type & 2) >> 1); 418 return RValue::get(llvm::ConstantInt::get(getLLVMContext(), 561 llvm::ConstantInt::get(ArgType, 1)); 581 Value *Result = Builder.CreateAnd(Tmp, llvm::ConstantInt::get(ArgType, 1)); 630 ConstantInt *AlignmentCI = cast<ConstantInt>(AlignmentValue) [all...] |
CGObjCGNU.cpp | 261 Fields.push_back(llvm::ConstantInt::get(Int8Ty, attrs & 0xff)); 271 Fields.push_back(llvm::ConstantInt::get(Int8Ty, attrs & 0xff)); 273 Fields.push_back(llvm::ConstantInt::get(Int8Ty, 0)); 274 Fields.push_back(llvm::ConstantInt::get(Int8Ty, 0)); [all...] |
/external/llvm/lib/Target/AMDGPU/ |
SIAnnotateControlFlow.cpp | 54 ConstantInt *BoolTrue; 55 ConstantInt *BoolFalse; 126 BoolTrue = ConstantInt::getTrue(Context); 127 BoolFalse = ConstantInt::getFalse(Context); 129 Int64Zero = ConstantInt::get(Int64, 0); 229 if (isa<ConstantInt>(Incoming)) {
|
/external/llvm/lib/Transforms/Scalar/ |
LoopUnswitch.cpp | 547 UnswitchIfProfitable(LoopCond, ConstantInt::getTrue(Context), TI)) { 591 ConstantInt::getTrue(Context))) { 711 .createBranchWeights(cast<ConstantInt>(ValF)->getZExtValue(), 712 cast<ConstantInt>(ValT)->getZExtValue()); 735 if (!isa<ConstantInt>(Val) || 738 else if (Val != ConstantInt::getTrue(Val->getContext())) { [all...] |
LoopIdiomRecognize.cpp | 413 if (MSI->isVolatile() || !isa<ConstantInt>(MSI->getLength())) 430 uint64_t SizeInBytes = cast<ConstantInt>(MSI->getLength())->getZExtValue(); 736 ConstantInt *CmpZero = dyn_cast<ConstantInt>(Cond->getOperand(1)); 813 ConstantInt *Dec = dyn_cast<ConstantInt>(SubInst->getOperand(1)); 841 ConstantInt *Inc = dyn_cast<ConstantInt>(Inst->getOperand(1)); [all...] |
JumpThreading.cpp | 380 return dyn_cast<ConstantInt>(Val); 384 /// if we can infer that the value is a known ConstantInt/BlockAddress or undef 478 ConstantInt *InterestingVal; 480 InterestingVal = ConstantInt::getTrue(I->getContext()); 482 InterestingVal = ConstantInt::getFalse(I->getContext()); 511 isa<ConstantInt>(I->getOperand(1)) && 512 cast<ConstantInt>(I->getOperand(1))->isOne()) { 529 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) { 571 Res = ConstantInt::get(Type::getInt1Ty(LHS->getContext()), ResT) [all...] |
ScalarReplAggregates.cpp | 548 if (!isa<ConstantInt>(MSI->getValue())) 552 ConstantInt *Len = dyn_cast<ConstantInt>(MSI->getLength()); 574 ConstantInt *Len = dyn_cast<ConstantInt>(MTI->getLength()); 666 int64_t SNumBytes = cast<ConstantInt>(MSI->getLength())->getSExtValue(); 669 unsigned Val = cast<ConstantInt>(MSI->getValue())->getZExtValue(); 681 ConstantInt::get(User->getContext(), APVal), [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | 182 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { 241 AI.setOperand(0, ConstantInt::get(AI.getArraySize()->getType(), 1)); 366 ConstantExpr::getAdd(NullInt, ConstantInt::get(ITy, 1)); 551 auto *Zero = ConstantInt::get(IdxType, 0); 555 ConstantInt::get(IdxType, i), 622 ConstantInt *CS = dyn_cast<ConstantInt>(AI->getArraySize()); 676 if (const ConstantInt *CI = dyn_cast<ConstantInt>(V) [all...] |
/external/llvm/lib/Target/AArch64/ |
AArch64FastISel.cpp | 231 unsigned materializeInt(const ConstantInt *CI, MVT VT); 336 unsigned AArch64FastISel::materializeInt(const ConstantInt *CI, MVT VT) { 469 if (const auto *CI = dyn_cast<ConstantInt>(C)) 498 if (const auto *C = dyn_cast<ConstantInt>(MI->getOperand(0))) 501 if (const auto *C = dyn_cast<ConstantInt>(MI->getOperand(1))) 564 unsigned Idx = cast<ConstantInt>(Op)->getZExtValue(); 569 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) { 576 ConstantInt *CI = 577 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1)) [all...] |
/external/llvm/examples/ParallelJIT/ |
ParallelJIT.cpp | 49 Value *One = ConstantInt::get(Type::getInt32Ty(M->getContext()), 1); 79 Value *One = ConstantInt::get(Type::getInt32Ty(M->getContext()), 1); 80 Value *Two = ConstantInt::get(Type::getInt32Ty(M->getContext()), 2);
|
/external/llvm/include/llvm/Transforms/Utils/ |
LoopUtils.h | 279 ConstantInt *getStepValue() const { return StepValue; } 286 InductionDescriptor(Value *Start, InductionKind K, ConstantInt *Step); 293 ConstantInt *StepValue;
|
/external/llvm/lib/Target/PowerPC/ |
PPCLoopDataPrefetch.cpp | 224 ConstantInt::get(I32, MemI->mayReadFromMemory() ? 0 : 1), 225 ConstantInt::get(I32, 3), ConstantInt::get(I32, 1)});
|