/external/llvm/include/llvm/Transforms/Utils/ |
H A D | Local.h | 190 Type *IntPtrTy = TD.getIntPtrType(GEP->getType()); local 191 Value *Result = Constant::getNullValue(IntPtrTy); 198 unsigned IntPtrWidth = IntPtrTy->getScalarType()->getIntegerBitWidth(); 219 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), 224 Constant *Scale = ConstantInt::get(IntPtrTy, Size); 225 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); 232 if (Op->getType() != IntPtrTy) 233 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c"); 236 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64SelectionDAGInfo.cpp | 43 Type *IntPtrTy = getDataLayout()->getIntPtrType(*DAG.getContext()); local 47 Entry.Ty = IntPtrTy;
|
/external/llvm/include/llvm/Analysis/ |
H A D | PtrUseVisitor.h | 208 IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType())); local 210 Offset = APInt(IntPtrTy->getBitWidth(), 0);
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMSelectionDAGInfo.cpp | 165 Type *IntPtrTy = TLI.getDataLayout()->getIntPtrType(*DAG.getContext()); local 167 Entry.Ty = IntPtrTy; 172 Entry.Ty = IntPtrTy;
|
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 678 Type *IntPtrTy = TD->getIntPtrType(ResultTy); 687 Ops[i]->getType() != IntPtrTy) { 691 IntPtrTy, 693 Ops[i], IntPtrTy)); 736 Type *IntPtrTy = TD->getIntPtrType(Ptr->getType()); 748 assert((!CE || CE->getType() == IntPtrTy) && 763 unsigned BitWidth = TD->getTypeSizeInBits(IntPtrTy); 832 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); 838 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); 1122 Type *IntPtrTy local 1134 Type *IntPtrTy = TD->getIntPtrType(CE0->getOperand(0)->getType()); local 1146 Type *IntPtrTy = TD->getIntPtrType(CE0->getType()); local 1160 Type *IntPtrTy = TD->getIntPtrType(CE0->getOperand(0)->getType()); local [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | SeparateConstOffsetFromGEP.cpp | 601 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local 607 if ((*I)->getType() != IntPtrTy) { 608 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP); 776 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local 785 NewGEP, ConstantInt::get(IntPtrTy, Index, true), GEP->getName(), GEP); 805 NewGEP, ConstantInt::get(IntPtrTy, AccumulativeByteOffset, true),
|
H A D | LoopIdiomRecognize.cpp | 1122 Type *IntPtrTy = Builder.getIntPtrTy(DL, SI->getPointerAddressSpace()); local 1123 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); 1125 const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtrTy, 1), 1128 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize), 1132 Expander.expandCodeFor(NumBytesS, IntPtrTy, Preheader->getTerminator());
|
/external/llvm/examples/BrainF/ |
H A D | BrainF.cpp | 83 Type* IntPtrTy = IntegerType::getInt32Ty(C); local 86 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); 87 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem,
|
/external/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 2605 Type *IntPtrTy = TLI->getDataLayout()->getIntPtrType(Addr->getType()); local 2660 if (V->getType() != IntPtrTy) 2661 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); 2669 if (V->getType() == IntPtrTy) { 2671 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < 2673 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); 2687 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale), 2697 Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs); 2723 Type *IntPtrTy = TLI->getDataLayout()->getIntPtrType(Addr->getType()); local 2734 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkadd [all...] |
/external/llvm/lib/IR/ |
H A D | Instructions.cpp | 372 BasicBlock *InsertAtEnd, Type *IntPtrTy, 384 ArraySize = ConstantInt::get(IntPtrTy, 1); 385 else if (ArraySize->getType() != IntPtrTy) { 387 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 390 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 398 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, 413 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); 421 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, NULL); 457 Type *IntPtrTy, Type *AllocTy, 461 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocT 371 createMalloc(Instruction *InsertBefore, BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument 456 CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function * MallocF, const Twine &Name) argument 473 CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument 492 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); local 2095 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument 2141 Type *IntPtrTy = PtrOpTy local [all...] |
/external/llvm/lib/Target/X86/ |
H A D | X86SelectionDAGInfo.cpp | 57 Type *IntPtrTy = getDataLayout()->getIntPtrType(*DAG.getContext()); local 61 Entry.Ty = IntPtrTy;
|
/external/llvm/unittests/IR/ |
H A D | IRBuilderTest.cpp | 124 IntegerType *IntPtrTy = Builder.getIntPtrTy(DL); local 126 EXPECT_EQ(IntPtrTy, IntegerType::get(Ctx, IntPtrBitSize));
|
/external/clang/lib/CodeGen/ |
H A D | CGExpr.cpp | 487 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; 493 llvm::ConstantInt::get(IntPtrTy, Size)); 507 Builder.CreateAnd(Builder.CreatePtrToInt(Address, IntPtrTy), 508 llvm::ConstantInt::get(IntPtrTy, AlignVal - 1)); 510 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0)); 551 llvm::Type *VPtrTy = llvm::PointerType::get(IntPtrTy, 0); 557 Hash = Builder.CreateTrunc(Hash, IntPtrTy); 561 llvm::Type *HashTable = llvm::ArrayType::get(IntPtrTy, CacheSize); 565 llvm::ConstantInt::get(IntPtrTy, 2130 llvm::Type *TargetTy = IntPtrTy; [all...] |
H A D | CGObjCGNU.cpp | 153 llvm::IntegerType *IntPtrTy; member in class:__anon17845::CGObjCGNU 929 IntPtrTy = 1604 IntPtrTy, // strong_pointers 1605 IntPtrTy, // weak_pointers 1979 return llvm::ConstantInt::get(IntPtrTy, val); 1998 llvm::Constant *ptr = llvm::ConstantExpr::getPtrToInt(GS, IntPtrTy); 2315 llvm::Constant *ZeroPtr = llvm::ConstantInt::get(IntPtrTy, 0);
|
H A D | CGCall.cpp | 708 Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi"); 713 DestIntTy = CGF.IntPtrTy; 800 llvm::ConstantInt::get(CGF.IntPtrTy, SrcSize), 888 llvm::ConstantInt::get(CGF.IntPtrTy, DstSize), 1441 llvm::ConstantInt::get(IntPtrTy,
|
H A D | CGExprConstant.cpp | 1156 LHS = llvm::ConstantExpr::getPtrToInt(LHS, IntPtrTy); 1157 RHS = llvm::ConstantExpr::getPtrToInt(RHS, IntPtrTy);
|
H A D | CodeGenModule.h | 120 llvm::IntegerType *IntPtrTy; member in union:clang::CodeGen::CodeGenTypeCache::__anon17856
|
H A D | CGStmt.cpp | 1921 Arg = Builder.CreatePtrToInt(Arg, IntPtrTy); 1926 Arg = Builder.CreateZExt(Arg, IntPtrTy);
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 169 Type *IntPtrTy = DL->getIntPtrType(AI.getType()); local 170 if (AI.getArraySize()->getType() != IntPtrTy) { 172 IntPtrTy, false);
|
H A D | InstructionCombining.cpp | 879 Type *IntPtrTy = DL->getIntPtrType(PtrTy); 894 NewIndices.push_back(ConstantInt::get(IntPtrTy, FirstIdx)); 916 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); 1296 Type *IntPtrTy = DL->getIntPtrType(GEP.getPointerOperandType()); local 1310 *I = Constant::getNullValue(IntPtrTy); 1315 if (IndexTy != IntPtrTy) { 1319 *I = Builder->CreateIntCast(*I, IntPtrTy, true);
|
H A D | InstCombineCompares.cpp | 391 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local 392 unsigned PtrSize = IntPtrTy->getIntegerBitWidth(); 394 Idx = Builder->CreateTrunc(Idx, IntPtrTy); 567 Type *IntPtrTy = DL.getIntPtrType(GEP->getOperand(0)->getType()); local 568 unsigned IntPtrWidth = IntPtrTy->getIntegerBitWidth(); 574 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); 595 if (VariableIdx->getType() != IntPtrTy) 596 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, 598 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs);
|
/external/llvm/include/llvm/IR/ |
H A D | InstrTypes.h | 566 /// IntPtrTy argument is used to make accurate determinations for casts 577 Type *IntPtrTy ///< Integer type corresponding to Ptr types 582 Type *IntPtrTy ///< Integer type corresponding to pointer
|
/external/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 482 Type *IntPtrTy = getDataLayout()->getIntPtrType(*DAG.getContext()); local 486 Entry.Ty = IntPtrTy; 492 .setCallee(CallingConv::C, IntPtrTy, 539 Type *IntPtrTy = getDataLayout()->getIntPtrType(*DAG.getContext()); local 543 Entry.Ty = IntPtrTy;
|
/external/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 1308 Type *IntPtrTy = DL->getIntPtrType(CI->getType()); local 1309 Value *NMI = CallInst::CreateMalloc(CI, IntPtrTy, FieldTy, 1310 ConstantInt::get(IntPtrTy, TypeSize), 1538 Type *IntPtrTy = DL->getIntPtrType(CI->getType()); local 1540 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize); 1541 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements()); 1542 Instruction *Malloc = CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy,
|
/external/llvm/lib/Analysis/IPA/ |
H A D | InlineCost.cpp | 972 Type *IntPtrTy = DL->getIntPtrType(V->getContext()); local 973 return cast<ConstantInt>(ConstantInt::get(IntPtrTy, Offset));
|