/external/llvm/lib/Transforms/Scalar/ |
D | CodeGenPrepare.cpp | 862 Type *IntPtrTy = in OptimizeMemoryInst() local 875 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst() 876 if (V->getType() != IntPtrTy) in OptimizeMemoryInst() 877 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); in OptimizeMemoryInst() 884 if (V->getType() == IntPtrTy) { in OptimizeMemoryInst() 887 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst() 888 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < in OptimizeMemoryInst() 890 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst() 892 V = Builder.CreateSExt(V, IntPtrTy, "sunkaddr"); in OptimizeMemoryInst() 895 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale), in OptimizeMemoryInst() [all …]
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 575 Type *IntPtrTy = TD->getIntPtrType(ResultTy->getContext()); in CastGEPIndices() local 583 Ops[i]->getType() != IntPtrTy) { in CastGEPIndices() 587 IntPtrTy, in CastGEPIndices() 589 Ops[i], IntPtrTy)); in CastGEPIndices() 613 Type *IntPtrTy = TD->getIntPtrType(Ptr->getContext()); in SymbolicallyEvaluateGEP() local 625 assert((CE == 0 || CE->getType() == IntPtrTy) && in SymbolicallyEvaluateGEP() 640 unsigned BitWidth = TD->getTypeSizeInBits(IntPtrTy); in SymbolicallyEvaluateGEP() 699 IntegerType *IntPtrTy = TD->getIntPtrType(Ty->getContext()); in SymbolicallyEvaluateGEP() local 704 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); in SymbolicallyEvaluateGEP() 710 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); in SymbolicallyEvaluateGEP() [all …]
|
D | InlineCost.cpp | 796 Type *IntPtrTy = TD->getIntPtrType(V->getContext()); in stripAndComputeInBoundsConstantOffsets() local 797 return cast<ConstantInt>(ConstantInt::get(IntPtrTy, Offset)); in stripAndComputeInBoundsConstantOffsets()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 415 Type *IntPtrTy = TD.getIntPtrType(GEP->getContext()); in EmitGEPOffset() local 416 Value *Result = Constant::getNullValue(IntPtrTy); in EmitGEPOffset() 438 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), in EmitGEPOffset() 443 Constant *Scale = ConstantInt::get(IntPtrTy, Size); in EmitGEPOffset() 445 ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); in EmitGEPOffset() 452 if (Op->getType() != IntPtrTy) in EmitGEPOffset() 453 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c"); in EmitGEPOffset() 456 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size), in EmitGEPOffset()
|
D | InstCombineLoadStoreAlloca.cpp | 95 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); in visitAllocaInst() local 96 if (AI.getArraySize()->getType() != IntPtrTy) { in visitAllocaInst() 98 IntPtrTy, false); in visitAllocaInst()
|
D | InstructionCombining.cpp | 745 Type *IntPtrTy = TD->getIntPtrType(Ty->getContext()); in FindElementAtOffset() local 760 NewIndices.push_back(ConstantInt::get(IntPtrTy, FirstIdx)); in FindElementAtOffset() 782 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); in FindElementAtOffset() 816 Type *IntPtrTy = TD->getIntPtrType(GEP.getContext()); in visitGetElementPtrInst() local 830 *I = Constant::getNullValue(IntPtrTy); in visitGetElementPtrInst() 835 if (IndexTy != IntPtrTy && !IndexTy->isVectorTy()) { in visitGetElementPtrInst() 839 *I = Builder->CreateIntCast(*I, IntPtrTy, true); in visitGetElementPtrInst()
|
D | InstCombineCompares.cpp | 539 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); in EvaluateGEPOffsetExpression() local 540 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); in EvaluateGEPOffsetExpression() 561 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); in EvaluateGEPOffsetExpression() local 562 if (VariableIdx->getType() != IntPtrTy) in EvaluateGEPOffsetExpression() 563 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, in EvaluateGEPOffsetExpression() 565 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs); in EvaluateGEPOffsetExpression()
|
/external/llvm/lib/Target/ARM/ |
D | ARMSelectionDAGInfo.cpp | 158 Type *IntPtrTy = TLI.getTargetData()->getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemset() local 160 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset() 165 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
|
/external/llvm/lib/VMCore/ |
D | Instructions.cpp | 354 BasicBlock *InsertAtEnd, Type *IntPtrTy, in createMalloc() argument 366 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc() 367 else if (ArraySize->getType() != IntPtrTy) { in createMalloc() 369 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 372 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 380 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc() 395 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc() 403 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, NULL); in createMalloc() 439 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 443 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocTy, AllocSize, in CreateMalloc() [all …]
|
/external/llvm/examples/BrainF/ |
D | BrainF.cpp | 83 Type* IntPtrTy = IntegerType::getInt32Ty(C); in header() local 86 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); in header() 87 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem, in header()
|
/external/llvm/lib/Target/X86/ |
D | X86SelectionDAGInfo.cpp | 57 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemset() local 61 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
|
/external/llvm/include/llvm/ |
D | InstrTypes.h | 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
|
D | Instructions.h | 1211 Type *IntPtrTy, Type *AllocTy, 1216 Type *IntPtrTy, Type *AllocTy,
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1330 Type *IntPtrTy = TD->getIntPtrType(CI->getContext()); in PerformHeapAllocSRoA() local 1331 Value *NMI = CallInst::CreateMalloc(CI, IntPtrTy, FieldTy, in PerformHeapAllocSRoA() 1332 ConstantInt::get(IntPtrTy, TypeSize), in PerformHeapAllocSRoA() 1560 Type *IntPtrTy = TD->getIntPtrType(CI->getContext()); in TryToOptimizeStoreOfMallocToGlobal() local 1562 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize); in TryToOptimizeStoreOfMallocToGlobal() 1563 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements()); in TryToOptimizeStoreOfMallocToGlobal() 1564 Instruction *Malloc = CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, in TryToOptimizeStoreOfMallocToGlobal()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 480 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); in LowerLOAD() local 484 Entry.Ty = IntPtrTy; in LowerLOAD() 489 LowerCallTo(Chain, IntPtrTy, false, false, in LowerLOAD() 539 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); in LowerSTORE() local 543 Entry.Ty = IntPtrTy; in LowerSTORE()
|
/external/clang/lib/CodeGen/ |
D | CGObjCGNU.cpp | 154 llvm::IntegerType *IntPtrTy; member in __anon5d69dbf60111::CGObjCGNU 727 IntPtrTy = in CGObjCGNU() 1400 IntPtrTy, // strong_pointers in GenerateClassStructure() 1401 IntPtrTy, // weak_pointers in GenerateClassStructure() 1784 return llvm::ConstantInt::get(IntPtrTy, val); in MakeBitField() 1803 llvm::Constant *ptr = llvm::ConstantExpr::getPtrToInt(GS, IntPtrTy); in MakeBitField() 2137 llvm::Constant *ZeroPtr = llvm::ConstantInt::get(IntPtrTy, 0); in GenerateClass()
|
D | CGExpr.cpp | 526 llvm::Value *F = CGM.getIntrinsic(llvm::Intrinsic::objectsize, IntPtrTy); in EmitCheck() 533 llvm::Value *NegativeOne = llvm::ConstantInt::get(IntPtrTy, -1ULL); in EmitCheck() 538 llvm::ConstantInt::get(IntPtrTy, Size)), in EmitCheck() 1795 if (Idx->getType() != IntPtrTy) in EmitArraySubscriptExpr() 1796 Idx = Builder.CreateIntCast(Idx, IntPtrTy, IdxSigned, "idxprom"); in EmitArraySubscriptExpr()
|
D | CGStmt.cpp | 1568 Arg = Builder.CreatePtrToInt(Arg, IntPtrTy); in EmitAsmStmt() 1573 Arg = Builder.CreateZExt(Arg, IntPtrTy); in EmitAsmStmt()
|
D | CodeGenModule.h | 116 llvm::IntegerType *IntPtrTy; member
|
D | CGCall.cpp | 573 Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi"); in CoerceIntOrPtrToIntOrPtr() 578 DestIntTy = CGF.IntPtrTy; in CoerceIntOrPtrToIntOrPtr() 1112 llvm::ConstantInt::get(IntPtrTy, in EmitFunctionProlog()
|
D | CGExprConstant.cpp | 1167 LHS = llvm::ConstantExpr::getPtrToInt(LHS, IntPtrTy); in EmitConstantValue() 1168 RHS = llvm::ConstantExpr::getPtrToInt(RHS, IntPtrTy); in EmitConstantValue()
|
D | CodeGenFunction.cpp | 703 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSizeAndAlign.first.getQuantity()); in emitNonZeroVLAInit()
|
D | CGExprAgg.cpp | 1285 llvm::ConstantInt::get(IntPtrTy, in EmitAggregateCopy()
|
D | CGDecl.cpp | 1033 llvm::ConstantInt::get(IntPtrTy, in EmitAutoVarInit()
|
D | CGExprScalar.cpp | 581 llvm::Type *MiddleTy = CGF.IntPtrTy; in EmitScalarConversion() 1168 llvm::Type *MiddleTy = CGF.IntPtrTy; in VisitCastExpr()
|