/external/llvm/lib/Target/ARM/ |
ARMSelectionDAGInfo.cpp | 157 Type *IntPtrTy = TLI.getTargetData()->getIntPtrType(*DAG.getContext()); 159 Entry.Ty = IntPtrTy; 164 Entry.Ty = IntPtrTy;
|
/external/llvm/lib/Transforms/Scalar/ |
CodeGenPrepare.cpp | 827 Type *IntPtrTy = 840 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); 841 if (V->getType() != IntPtrTy) 842 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); 849 if (V->getType() == IntPtrTy) { 852 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); 853 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < 855 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); 857 V = Builder.CreateSExt(V, IntPtrTy, "sunkaddr"); 860 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale) [all...] |
/external/llvm/lib/Analysis/ |
ConstantFolding.cpp | 548 Type *IntPtrTy = TD->getIntPtrType(ResultTy->getContext()); 556 Ops[i]->getType() != IntPtrTy) { 560 IntPtrTy, 562 Ops[i], IntPtrTy)); 585 Type *IntPtrTy = TD->getIntPtrType(Ptr->getContext()); 597 assert((CE == 0 || CE->getType() == IntPtrTy) && 612 unsigned BitWidth = TD->getTypeSizeInBits(IntPtrTy); 671 IntegerType *IntPtrTy = TD->getIntPtrType(Ty->getContext()); 676 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); 682 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)) [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/InstCombine/ |
InstCombineAddSub.cpp | 404 Type *IntPtrTy = TD.getIntPtrType(GEP->getContext()); 405 Value *Result = Constant::getNullValue(IntPtrTy); 427 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), 432 Constant *Scale = ConstantInt::get(IntPtrTy, Size); 434 ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); 441 if (Op->getType() != IntPtrTy) 442 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c"); 445 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
|
InstCombineLoadStoreAlloca.cpp | 29 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); 30 if (AI.getArraySize()->getType() != IntPtrTy) { 32 IntPtrTy, false);
|
InstructionCombining.cpp | 740 Type *IntPtrTy = TD->getIntPtrType(Ty->getContext()); 755 NewIndices.push_back(ConstantInt::get(IntPtrTy, FirstIdx)); 777 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); 811 Type *IntPtrTy = TD->getIntPtrType(GEP.getContext()); 825 *I = Constant::getNullValue(IntPtrTy); 829 if ((*I)->getType() != IntPtrTy) { 833 *I = Builder->CreateIntCast(*I, IntPtrTy, true); [all...] |
InstCombineCompares.cpp | 530 // Cast to intptrty in case a truncation occurs. If an extension is needed, 534 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); 535 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); 556 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); 557 if (VariableIdx->getType() != IntPtrTy) 558 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, 560 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs); [all...] |
/external/llvm/lib/VMCore/ |
Instructions.cpp | 354 BasicBlock *InsertAtEnd, Type *IntPtrTy, 366 ArraySize = ConstantInt::get(IntPtrTy, 1); 367 else if (ArraySize->getType() != IntPtrTy) { 369 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 372 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 380 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, 395 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); 403 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, NULL); 439 Type *IntPtrTy, Type *AllocTy, 443 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 | 562 /// IntPtrTy argument is used to make accurate determinations for casts 573 Type *IntPtrTy ///< Integer type corresponding to Ptr types, or null 578 Type *IntPtrTy ///< Integer type corresponding to pointer 593 Type *IntPtrTy ///< Integer type corresponding to Ptr types, or null [all...] |
Instructions.h | [all...] |
/external/llvm/lib/Transforms/IPO/ |
GlobalOpt.cpp | [all...] |
/external/llvm/lib/Target/XCore/ |
XCoreISelLowering.cpp | 471 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); 475 Entry.Ty = IntPtrTy; 480 LowerCallTo(Chain, IntPtrTy, false, false, 530 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); 534 Entry.Ty = IntPtrTy; [all...] |
/external/clang/lib/CodeGen/ |
CodeGenModule.h | 114 llvm::IntegerType *IntPtrTy; [all...] |
CGExpr.cpp | 528 llvm::Value *F = CGM.getIntrinsic(llvm::Intrinsic::objectsize, IntPtrTy); 535 llvm::Value *NegativeOne = llvm::ConstantInt::get(IntPtrTy, -1ULL); 540 llvm::ConstantInt::get(IntPtrTy, Size)), [all...] |
CGCall.cpp | 427 Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi"); 432 DestIntTy = CGF.IntPtrTy; [all...] |
CGStmt.cpp | [all...] |
CGObjCGNU.cpp | 157 llvm::IntegerType *IntPtrTy; [all...] |
CodeGenFunction.cpp | 662 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSizeAndAlign.first.getQuantity()); [all...] |
CGExprAgg.cpp | [all...] |
CGDecl.cpp | [all...] |
CGExprConstant.cpp | 638 C = llvm::ConstantExpr::getIntegerCast(C, CGM.IntPtrTy, isSigned); [all...] |
CGBuiltin.cpp | 709 Value *Result = Builder.CreatePtrToInt(Ptr, IntPtrTy, "extend.cast"); 712 if (IntPtrTy->getBitWidth() == 64) [all...] |
CGExprScalar.cpp | 586 llvm::Type *MiddleTy = CGF.IntPtrTy; [all...] |