HomeSort by relevance Sort by last modified time
    Searched refs:ConstantInt (Results 76 - 100 of 269) sorted by null

1 2 34 5 6 7 8 91011

  /external/llvm/unittests/ExecutionEngine/JIT/
JITTest.cpp 66 Value *Add = builder.CreateAdd(Load, ConstantInt::get(GTy, 1LL));
303 ConstantInt::get(TypeBuilder<int, false>::get(Context), 7));
339 Builder.CreateCall(Func2, ConstantInt::getTrue(Context));
340 Builder.CreateCall(Func3, ConstantInt::getTrue(Context));
347 Builder.CreateCall(Func3, ConstantInt::getFalse(Context));
356 Builder.CreateCall(Func2, ConstantInt::getFalse(Context));
390 Builder.CreateRet(ConstantInt::get(TypeBuilder<int, false>::get(Context),42));
524 Value *Val = ConstantInt::get(TypeBuilder<int, false>::get(Context), 1);
537 Val = ConstantInt::get(TypeBuilder<int, false>::get(Context), 2);
  /external/llvm/lib/Analysis/
PHITransAddr.cpp 35 isa<ConstantInt>(Inst->getOperand(1)))
261 isa<ConstantInt>(Inst->getOperand(1))) {
263 Constant *RHS = cast<ConstantInt>(Inst->getOperand(1));
273 if (ConstantInt *CI = dyn_cast<ConstantInt>(BOp->getOperand(1))) {
423 isa<ConstantInt>(Inst->getOperand(1))) {
MemoryBuiltins.cpp 244 if (ConstantInt *ConstSize = dyn_cast_or_null<ConstantInt>(ArraySize))
453 if (const ConstantInt *C = dyn_cast<ConstantInt>(ArraySize)) {
485 ConstantInt *Arg= dyn_cast<ConstantInt>(CS.getArgument(FnData->FstParam));
496 ConstantInt *Arg = dyn_cast<ConstantInt>(CS.getArgument(FnData->FstParam));
505 Arg = dyn_cast<ConstantInt>(CS.getArgument(FnData->SndParam));
605 Zero = ConstantInt::get(IntTy, 0)
    [all...]
  /external/llvm/lib/Transforms/Scalar/
LoopIdiomRecognize.cpp 354 ConstantInt *CmpZero = dyn_cast<ConstantInt>(Cond->getOperand(1));
424 ConstantInt *Dec = dyn_cast<ConstantInt>(SubInst->getOperand(1));
450 ConstantInt *Inc = dyn_cast<ConstantInt>(Inst->getOperand(1));
522 ConstantInt *InitConst = dyn_cast<ConstantInt>(CntInitVal);
537 Value *Opnd1 = ConstantInt::get(PopCntZext->getType(), 0);
578 Value *Opnd2 = cast<Value>(ConstantInt::get(Ty, 1))
    [all...]
LoopUnswitch.cpp 442 ConstantInt::getTrue(Context))) {
486 ConstantInt::getTrue(Context))) {
576 if (Val) *Val = ConstantInt::getTrue(Context);
579 if (Val) *Val = ConstantInt::getFalse(Context);
597 ConstantInt *CaseVal = i.getCaseValue();
685 if (!isa<ConstantInt>(Val) ||
688 else if (Val != ConstantInt::getTrue(Val->getContext()))
    [all...]
ScalarReplAggregates.cpp 542 if (!isa<ConstantInt>(MSI->getValue()))
546 ConstantInt *Len = dyn_cast<ConstantInt>(MSI->getLength());
568 ConstantInt *Len = dyn_cast<ConstantInt>(MTI->getLength());
660 int64_t SNumBytes = cast<ConstantInt>(MSI->getLength())->getSExtValue();
663 unsigned Val = cast<ConstantInt>(MSI->getValue())->getZExtValue();
675 ConstantInt::get(User->getContext(), APVal),
    [all...]
Reassociate.cpp 201 assert(!isa<ConstantInt>(V) && "No ConstantInt");
210 if (isa<ConstantInt>(V0))
213 if (ConstantInt *C = dyn_cast<ConstantInt>(V1)) {
    [all...]
JumpThreading.cpp 330 return dyn_cast<ConstantInt>(Val);
334 /// if we can infer that the value is a known ConstantInt/BlockAddress or undef
426 ConstantInt *InterestingVal;
428 InterestingVal = ConstantInt::getTrue(I->getContext());
430 InterestingVal = ConstantInt::getFalse(I->getContext());
459 isa<ConstantInt>(I->getOperand(1)) &&
460 cast<ConstantInt>(I->getOperand(1))->isOne()) {
477 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) {
517 Res = ConstantInt::get(Type::getInt1Ty(LHS->getContext()), ResT)
    [all...]
  /external/llvm/lib/CodeGen/SelectionDAG/
FastISel.cpp 190 if (const ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
222 getRegForValue(ConstantInt::get(V->getContext(), IntVal));
384 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(0)))
409 if (ConstantInt *CI = dyn_cast<ConstantInt>(I->getOperand(1))) {
488 unsigned Field = cast<ConstantInt>(Idx)->getZExtValue();
506 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Idx))
    [all...]
FunctionLoweringInfo.cpp 84 if (const ConstantInt *CUI = dyn_cast<ConstantInt>(AI->getArraySize())) {
337 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
372 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
459 if (const ConstantInt *CI = dyn_cast<ConstantInt>(I.getArgOperand(i))) {
SelectionDAGBuilder.h 144 const APInt &rHigh = cast<ConstantInt>(High)->getValue();
145 const APInt &rLow = cast<ConstantInt>(Low)->getValue();
190 assert(isa<ConstantInt>(C1.Low) && isa<ConstantInt>(C2.High));
191 const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low);
192 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High);
  /external/llvm/lib/CodeGen/
SjLjEHPrepare.cpp 127 Value *Zero = ConstantInt::get(Int32Ty, 0);
128 Value *One = ConstantInt::get(Int32Ty, 1);
133 ConstantInt *CallSiteNoC =
134 ConstantInt::get(Type::getInt32Ty(I->getContext()), Number);
245 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsPt)->getArraySize()))
305 if (isa<ConstantInt>(AI->getArraySize()) && BB == F.begin())
449 ConstantInt *CallSiteNum =
450 ConstantInt::get(Type::getInt32Ty(F.getContext()), I + 1);
CodeGenPrepare.cpp 629 !isa<ConstantInt>(User->getOperand(1)))
632 const APInt &Cimm = cast<ConstantInt>(User->getOperand(1))->getValue();
643 SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI,
725 static bool OptimizeExtractBits(BinaryOperator *ShiftI, ConstantInt *CI,
810 if (ConstantInt *SizeCI =
811 dyn_cast<ConstantInt>(CI->getArgOperand(SizeCIOp)))
841 bool Min = (cast<ConstantInt>(II->getArgOperand(1))->getZExtValue() == 1);
843 Constant *RetVal = ConstantInt::get(ReturnTy, Min ? 0 : -1ULL);
    [all...]
  /external/llvm/lib/IR/
DiagnosticInfo.cpp 101 if (const ConstantInt *CI = dyn_cast<ConstantInt>(SrcLoc->getOperand(0)))
LLVMContextImpl.h 38 class ConstantInt;
251 typedef DenseMap<DenseMapAPIntKeyInfo::KeyTy, ConstantInt *,
298 ConstantInt *TheTrueVal;
299 ConstantInt *TheFalseVal;
  /external/llvm/lib/Transforms/Utils/
CloneFunction.cpp 58 if (isa<ConstantInt>(AI->getArraySize()))
347 if (isa<ConstantInt>(AI->getArraySize()))
360 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
364 Cond = dyn_cast_or_null<ConstantInt>(V);
377 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition());
380 Cond = dyn_cast_or_null<ConstantInt>(V);
Local.cpp 72 if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) {
115 ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition());
140 ConstantInt* CI = dyn_cast<ConstantInt>(MD->getOperand(MD_i));
211 ConstantInt *SICase = dyn_cast<ConstantInt>(MD->getOperand(2));
212 ConstantInt *SIDef = dyn_cast<ConstantInt>(MD->getOperand(1))
    [all...]
  /external/llvm/examples/ParallelJIT/
ParallelJIT.cpp 48 Value *One = ConstantInt::get(Type::getInt32Ty(M->getContext()), 1);
78 Value *One = ConstantInt::get(Type::getInt32Ty(M->getContext()), 1);
79 Value *Two = ConstantInt::get(Type::getInt32Ty(M->getContext()), 2);
  /external/llvm/unittests/Linker/
LinkModulesTest.cpp 49 ConstantInt *One = ConstantInt::get(Type::getInt32Ty(Ctx), 1);
73 GEPIndices.push_back(ConstantInt::get(Type::getInt32Ty(Ctx), 0));
  /external/clang/lib/CodeGen/
CGObjCGNU.cpp 258 Fields.push_back(llvm::ConstantInt::get(Int8Ty, attrs & 0xff));
268 Fields.push_back(llvm::ConstantInt::get(Int8Ty, attrs & 0xff));
270 Fields.push_back(llvm::ConstantInt::get(Int8Ty, 0));
271 Fields.push_back(llvm::ConstantInt::get(Int8Ty, 0));
    [all...]
CGExprCXX.cpp 474 = llvm::ConstantInt::get(CGF.SizeTy, typeSize.getQuantity());
520 if (llvm::ConstantInt *numElementsC =
521 dyn_cast<llvm::ConstantInt>(numElements)) {
548 numElements = llvm::ConstantInt::get(CGF.SizeTy,
561 sizeWithoutCookie = llvm::ConstantInt::get(CGF.SizeTy, allocationSize);
571 size = llvm::ConstantInt::get(CGF.SizeTy, allocationSize);
599 = llvm::ConstantInt::get(numElementsType, threshold);
616 llvm::ConstantInt::get(CGF.SizeTy, minElements));
629 llvm::ConstantInt::get(CGF.SizeTy, minElements));
636 llvm::ConstantInt::get(CGF.SizeTy, minElements)))
    [all...]
CGBuiltin.cpp 204 return RValue::get(llvm::ConstantInt::get(getLLVMContext(),
339 llvm::ConstantInt::get(ArgType, 1));
359 Value *Result = Builder.CreateAnd(Tmp, llvm::ConstantInt::get(ArgType, 1));
411 ConstantInt *CI = dyn_cast<ConstantInt>(Ty);
414 CI = ConstantInt::get(Builder.getInt1Ty(), (val & 0x2) >> 1);
424 llvm::ConstantInt::get(Int32Ty, 0);
426 llvm::ConstantInt::get(Int32Ty, 3);
427 Value *Data = llvm::ConstantInt::get(Int32Ty, 1);
654 Value *SizeVal = llvm::ConstantInt::get(Builder.getContext(), Size)
    [all...]
  /external/llvm/lib/Transforms/IPO/
ArgumentPromotion.cpp 365 if (ConstantInt *CI = dyn_cast<ConstantInt>(*II))
410 if (ConstantInt *C = dyn_cast<ConstantInt>(*i))
573 Indices.push_back(cast<ConstantInt>(*II)->getSExtValue());
677 ConstantInt::get(Type::getInt32Ty(F->getContext()), 0), nullptr };
679 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i);
706 Ops.push_back(ConstantInt::get(IdxTy, *II));
    [all...]
  /external/llvm/include/llvm/IR/
Constants.h 51 class ConstantInt : public Constant {
54 ConstantInt(const ConstantInt &) LLVM_DELETED_FUNCTION;
55 ConstantInt(IntegerType *Ty, const APInt& V);
63 static ConstantInt *getTrue(LLVMContext &Context);
64 static ConstantInt *getFalse(LLVMContext &Context);
69 /// value. Otherwise return a ConstantInt for the given value.
72 /// Return a ConstantInt with the specified integer value for the specified
77 /// @brief Get a ConstantInt for a specific value.
78 static ConstantInt *get(IntegerType *Ty, uint64_t V
    [all...]
  /external/llvm/tools/llvm-stress/
llvm-stress.cpp 153 return ConstantInt::getAllOnesValue(Tp);
154 return ConstantInt::getNullValue(Tp);
175 return ConstantInt::getAllOnesValue(Tp);
176 return ConstantInt::getNullValue(Tp);
394 return PT->push_back(ConstantInt::get(Ty,
397 return PT->push_back(ConstantInt::get(Ty,
401 PT->push_back(ConstantInt::get(Ty, Ran->Rand()));
424 ConstantInt::get(Type::getInt32Ty(BB->getContext()),
443 Constant *CI = ConstantInt::get(I32, Ran->Rand() % (Width*2));
467 ConstantInt::get(Type::getInt32Ty(BB->getContext())
    [all...]

Completed in 1471 milliseconds

1 2 34 5 6 7 8 91011