/external/llvm/include/llvm/Transforms/Utils/ |
Local.h | 181 Type *IntPtrTy = TD.getIntPtrType(GEP->getContext()); 182 Value *Result = Constant::getNullValue(IntPtrTy); 204 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), 209 Constant *Scale = ConstantInt::get(IntPtrTy, Size); 210 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); 217 if (Op->getType() != IntPtrTy) 218 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c"); 221 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
|
/external/llvm/lib/Target/ARM/ |
ARMSelectionDAGInfo.cpp | 158 Type *IntPtrTy = TLI.getTargetData()->getIntPtrType(*DAG.getContext()); 160 Entry.Ty = IntPtrTy; 165 Entry.Ty = IntPtrTy;
|
/external/llvm/lib/Analysis/ |
ConstantFolding.cpp | 578 Type *IntPtrTy = TD->getIntPtrType(ResultTy->getContext()); 586 Ops[i]->getType() != IntPtrTy) { 590 IntPtrTy, 592 Ops[i], IntPtrTy)); 632 Type *IntPtrTy = TD->getIntPtrType(Ptr->getContext()); 644 assert((CE == 0 || CE->getType() == IntPtrTy) && 659 unsigned BitWidth = TD->getTypeSizeInBits(IntPtrTy); 720 IntegerType *IntPtrTy = TD->getIntPtrType(Ty->getContext()); 725 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); 731 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)) [all...] |
InlineCost.cpp | 768 Type *IntPtrTy = TD->getIntPtrType(V->getContext()); 769 return cast<ConstantInt>(ConstantInt::get(IntPtrTy, Offset)); [all...] |
/external/llvm/examples/BrainF/ |
BrainF.cpp | 83 Type* IntPtrTy = IntegerType::getInt32Ty(C); 86 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); 87 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem,
|
/external/llvm/lib/Transforms/Scalar/ |
CodeGenPrepare.cpp | [all...] |
/external/llvm/lib/VMCore/ |
Instructions.cpp | 360 BasicBlock *InsertAtEnd, Type *IntPtrTy, 372 ArraySize = ConstantInt::get(IntPtrTy, 1); 373 else if (ArraySize->getType() != IntPtrTy) { 375 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 378 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 386 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, 401 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); 409 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, NULL); 445 Type *IntPtrTy, Type *AllocTy, 449 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocTy, AllocSize [all...] |
/external/llvm/lib/Target/X86/ |
X86SelectionDAGInfo.cpp | 57 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); 61 Entry.Ty = IntPtrTy;
|
/external/llvm/include/llvm/ |
InstrTypes.h | 563 /// IntPtrTy argument is used to make accurate determinations for casts 574 Type *IntPtrTy ///< Integer type corresponding to Ptr types, or null 579 Type *IntPtrTy ///< Integer type corresponding to pointer 594 Type *IntPtrTy ///< Integer type corresponding to Ptr types, or null [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | 176 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); 177 if (AI.getArraySize()->getType() != IntPtrTy) { 179 IntPtrTy, false);
|
InstructionCombining.cpp | 749 Type *IntPtrTy = TD->getIntPtrType(Ty->getContext()); 764 NewIndices.push_back(ConstantInt::get(IntPtrTy, FirstIdx)); 786 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); 820 Type *IntPtrTy = TD->getIntPtrType(GEP.getContext()); 834 *I = Constant::getNullValue(IntPtrTy); 839 if (IndexTy != IntPtrTy && !IndexTy->isVectorTy()) { 843 *I = Builder->CreateIntCast(*I, IntPtrTy, true); [all...] |
InstCombineCompares.cpp | 536 // Cast to intptrty in case a truncation occurs. If an extension is needed, 540 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); 541 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); 562 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); 563 if (VariableIdx->getType() != IntPtrTy) 564 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, 566 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs); [all...] |
/external/llvm/lib/Target/XCore/ |
XCoreISelLowering.cpp | 480 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); 484 Entry.Ty = IntPtrTy; 488 TargetLowering::CallLoweringInfo CLI(Chain, IntPtrTy, false, false, 539 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); 543 Entry.Ty = IntPtrTy; [all...] |
/external/clang/lib/CodeGen/ |
CGExpr.cpp | 588 llvm::Value *F = CGM.getIntrinsic(llvm::Intrinsic::objectsize, IntPtrTy); 592 llvm::ConstantInt::get(IntPtrTy, Size)); 597 Builder.CreateAnd(Builder.CreatePtrToInt(Address, IntPtrTy), 598 llvm::ConstantInt::get(IntPtrTy, AlignVal - 1)); 600 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0))); [all...] |
CGObjCGNU.cpp | 154 llvm::IntegerType *IntPtrTy; [all...] |
CodeGenModule.h | 116 llvm::IntegerType *IntPtrTy; [all...] |
CGCall.cpp | 623 Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi"); 628 DestIntTy = CGF.IntPtrTy; [all...] |
CGExprConstant.cpp | [all...] |
CGStmt.cpp | [all...] |
CGExprAgg.cpp | [all...] |
CodeGenFunction.cpp | 772 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSizeAndAlign.first.getQuantity()); [all...] |
CGDecl.cpp | [all...] |
CGBuiltin.cpp | 765 Value *Result = Builder.CreatePtrToInt(Ptr, IntPtrTy, "extend.cast"); 768 if (IntPtrTy->getBitWidth() == 64) [all...] |
CGExprScalar.cpp | 579 llvm::Type *MiddleTy = CGF.IntPtrTy; [all...] |
/external/llvm/lib/Transforms/IPO/ |
GlobalOpt.cpp | [all...] |