/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/Transforms/Scalar/ |
CodeGenPrepare.cpp | 840 Type *IntPtrTy = 853 V = new PtrToIntInst(V, IntPtrTy, "sunkaddr", InsertPt); 854 if (V->getType() != IntPtrTy) 855 V = CastInst::CreateIntegerCast(V, IntPtrTy, /*isSigned=*/true, 863 if (V->getType() == IntPtrTy) { 866 V = new PtrToIntInst(V, IntPtrTy, "sunkaddr", InsertPt); 867 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < 869 V = new TruncInst(V, IntPtrTy, "sunkaddr", InsertPt); 871 V = new SExtInst(V, IntPtrTy, "sunkaddr", InsertPt); 874 V = BinaryOperator::CreateMul(V, ConstantInt::get(IntPtrTy, [all...] |
/external/llvm/lib/Analysis/ |
ConstantFolding.cpp | 543 Type *IntPtrTy = TD->getIntPtrType(ResultTy->getContext()); 552 Ops[i]->getType() != IntPtrTy) { 556 IntPtrTy, 558 Ops[i], IntPtrTy)); 581 Type *IntPtrTy = TD->getIntPtrType(Ptr->getContext()); 593 assert((CE == 0 || CE->getType() == IntPtrTy) && 608 unsigned BitWidth = TD->getTypeSizeInBits(IntPtrTy); 667 IntegerType *IntPtrTy = TD->getIntPtrType(Ty->getContext()); 672 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); 678 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)) [all...] |
ScalarEvolution.cpp | [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 | 691 Type *IntPtrTy = TD->getIntPtrType(Ty->getContext()); 706 NewIndices.push_back(ConstantInt::get(IntPtrTy, FirstIdx)); 728 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); 754 Type *IntPtrTy = TD->getIntPtrType(GEP.getContext()); 768 *I = Constant::getNullValue(IntPtrTy); 772 if ((*I)->getType() != IntPtrTy) { 776 *I = Builder->CreateIntCast(*I, IntPtrTy, true); [all...] |
InstCombineCompares.cpp | 529 // Cast to intptrty in case a truncation occurs. If an extension is needed, 533 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); 534 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); 555 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); 556 if (VariableIdx->getType() != IntPtrTy) 557 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, 559 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs); [all...] |
/external/llvm/lib/VMCore/ |
Instructions.cpp | 272 BasicBlock *InsertAtEnd, Type *IntPtrTy, 284 ArraySize = ConstantInt::get(IntPtrTy, 1); 285 else if (ArraySize->getType() != IntPtrTy) { 287 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 290 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 298 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, 313 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); 321 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, NULL); 357 Type *IntPtrTy, Type *AllocTy, 361 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/clang/lib/CodeGen/ |
CGExpr.cpp | 519 llvm::Value *F = CGM.getIntrinsic(llvm::Intrinsic::objectsize, IntPtrTy); 526 llvm::Value *NegativeOne = llvm::ConstantInt::get(IntPtrTy, -1ULL); 531 llvm::ConstantInt::get(IntPtrTy, Size)), [all...] |
CodeGenModule.h | 112 llvm::IntegerType *IntPtrTy;
|
CGCall.cpp | 412 Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi"); 417 DestIntTy = CGF.IntPtrTy; [all...] |
CodeGenFunction.cpp | 646 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSizeAndAlign.first.getQuantity()); [all...] |
CGDecl.cpp | [all...] |
CGExprAgg.cpp | [all...] |
CGStmt.cpp | [all...] |
CGExprConstant.cpp | 637 C = llvm::ConstantExpr::getIntegerCast(C, CGM.IntPtrTy, isSigned); [all...] |
CGBuiltin.cpp | 714 Value *Result = Builder.CreatePtrToInt(Ptr, IntPtrTy, "extend.cast"); 717 if (IntPtrTy->getBitWidth() == 64) [all...] |
CGExprScalar.cpp | 572 llvm::Type *MiddleTy = CGF.IntPtrTy; [all...] |
/external/llvm/lib/Target/XCore/ |
XCoreISelLowering.cpp | 468 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); 472 Entry.Ty = IntPtrTy; 477 LowerCallTo(Chain, IntPtrTy, false, false, 527 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); 531 Entry.Ty = IntPtrTy; [all...] |