/external/llvm/include/llvm/Transforms/Utils/ |
H A D | Local.h | 181 Type *IntPtrTy = TD.getIntPtrType(GEP->getContext()); local 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/ |
H A D | ARMSelectionDAGInfo.cpp | 158 Type *IntPtrTy = TLI.getTargetData()->getIntPtrType(*DAG.getContext()); local 160 Entry.Ty = IntPtrTy; 165 Entry.Ty = IntPtrTy;
|
/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/Target/X86/ |
H A D | X86SelectionDAGInfo.cpp | 57 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); local 61 Entry.Ty = IntPtrTy;
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 176 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); local 177 if (AI.getArraySize()->getType() != IntPtrTy) { 179 IntPtrTy, false);
|
H A D | InstCombineCompares.cpp | 540 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); local 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);
|
H A D | 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()); local 834 *I = Constant::getNullValue(IntPtrTy); 839 if (IndexTy != IntPtrTy && !IndexTy->isVectorTy()) { 843 *I = Builder->CreateIntCast(*I, IntPtrTy, true);
|
/external/llvm/lib/Analysis/ |
H A D | InlineCost.cpp | 768 Type *IntPtrTy = TD->getIntPtrType(V->getContext()); local 769 return cast<ConstantInt>(ConstantInt::get(IntPtrTy, Offset));
|
H A D | 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()); local 725 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); 731 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewId 990 Type *IntPtrTy = TD->getIntPtrType(CE0->getContext()); local 1012 Type *IntPtrTy = TD->getIntPtrType(CE0->getContext()); local [all...] |
H A D | InstructionSimplify.cpp | 728 Type *IntPtrTy = TD.getIntPtrType(V->getContext()); local 729 return ConstantInt::get(IntPtrTy, Offset);
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | CodeGenPrepare.cpp | 929 Type *IntPtrTy = local 942 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); 943 if (V->getType() != IntPtrTy) 944 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); 951 if (V->getType() == IntPtrTy) { 954 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); 955 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < 957 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); 959 V = Builder.CreateSExt(V, IntPtrTy, "sunkaddr"); 962 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMod [all...] |
/external/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 480 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); local 484 Entry.Ty = IntPtrTy; 488 TargetLowering::CallLoweringInfo CLI(Chain, IntPtrTy, false, false, 539 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); local 543 Entry.Ty = IntPtrTy;
|
/external/clang/lib/CodeGen/ |
H A D | CodeGenModule.h | 116 llvm::IntegerType *IntPtrTy; member in union:clang::CodeGen::CodeGenTypeCache::__anon72
|
H A D | CGObjCGNU.cpp | 154 llvm::IntegerType *IntPtrTy; member in class:__anon55::CGObjCGNU 789 IntPtrTy = 1462 IntPtrTy, // strong_pointers 1463 IntPtrTy, // weak_pointers 1846 return llvm::ConstantInt::get(IntPtrTy, val); 1865 llvm::Constant *ptr = llvm::ConstantExpr::getPtrToInt(GS, IntPtrTy); 2199 llvm::Constant *ZeroPtr = llvm::ConstantInt::get(IntPtrTy, 0);
|
/external/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 1501 Type *IntPtrTy = TD->getIntPtrType(CI->getContext()); local 1502 Value *NMI = CallInst::CreateMalloc(CI, IntPtrTy, FieldTy, 1503 ConstantInt::get(IntPtrTy, TypeSize), 1731 Type *IntPtrTy = TD->getIntPtrType(CI->getContext()); local 1733 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize); 1734 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements()); 1735 Instruction *Malloc = CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy,
|
/external/llvm/lib/VMCore/ |
H A D | 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, AllocT 359 createMalloc(Instruction *InsertBefore, BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument 444 CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function * MallocF, const Twine &Name) argument 461 CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument 480 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); local 2073 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument 2113 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) argument [all...] |
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCISelLowering.cpp | 1495 Type *IntPtrTy = local 1502 Entry.Ty = IntPtrTy;
|