Home
last modified time | relevance | path

Searched refs:IntPtrTy (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm/lib/Analysis/
DConstantFolding.cpp543 Type *IntPtrTy = TD->getIntPtrType(ResultTy->getContext()); in CastGEPIndices() local
552 Ops[i]->getType() != IntPtrTy) { in CastGEPIndices()
556 IntPtrTy, in CastGEPIndices()
558 Ops[i], IntPtrTy)); in CastGEPIndices()
581 Type *IntPtrTy = TD->getIntPtrType(Ptr->getContext()); in SymbolicallyEvaluateGEP() local
593 assert((CE == 0 || CE->getType() == IntPtrTy) && in SymbolicallyEvaluateGEP()
608 unsigned BitWidth = TD->getTypeSizeInBits(IntPtrTy); in SymbolicallyEvaluateGEP()
667 IntegerType *IntPtrTy = TD->getIntPtrType(Ty->getContext()); in SymbolicallyEvaluateGEP() local
672 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); in SymbolicallyEvaluateGEP()
678 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); in SymbolicallyEvaluateGEP()
[all …]
DScalarEvolution.cpp3035 Type *IntPtrTy = getEffectiveSCEVType(GEP->getType()); in createNodeForGEP() local
3040 const SCEV *TotalOffset = getConstant(IntPtrTy, 0); in createNodeForGEP()
3059 IndexS = getTruncateOrSignExtend(IndexS, IntPtrTy); in createNodeForGEP()
/external/llvm/lib/Transforms/Scalar/
DCodeGenPrepare.cpp840 Type *IntPtrTy = in OptimizeMemoryInst() local
853 V = new PtrToIntInst(V, IntPtrTy, "sunkaddr", InsertPt); in OptimizeMemoryInst()
854 if (V->getType() != IntPtrTy) in OptimizeMemoryInst()
855 V = CastInst::CreateIntegerCast(V, IntPtrTy, /*isSigned=*/true, in OptimizeMemoryInst()
863 if (V->getType() == IntPtrTy) { in OptimizeMemoryInst()
866 V = new PtrToIntInst(V, IntPtrTy, "sunkaddr", InsertPt); in OptimizeMemoryInst()
867 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < in OptimizeMemoryInst()
869 V = new TruncInst(V, IntPtrTy, "sunkaddr", InsertPt); in OptimizeMemoryInst()
871 V = new SExtInst(V, IntPtrTy, "sunkaddr", InsertPt); in OptimizeMemoryInst()
874 V = BinaryOperator::CreateMul(V, ConstantInt::get(IntPtrTy, in OptimizeMemoryInst()
[all …]
/external/llvm/lib/Target/ARM/
DARMSelectionDAGInfo.cpp158 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/Transforms/InstCombine/
DInstCombineAddSub.cpp404 Type *IntPtrTy = TD.getIntPtrType(GEP->getContext()); in EmitGEPOffset() local
405 Value *Result = Constant::getNullValue(IntPtrTy); in EmitGEPOffset()
427 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), in EmitGEPOffset()
432 Constant *Scale = ConstantInt::get(IntPtrTy, Size); in EmitGEPOffset()
434 ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); in EmitGEPOffset()
441 if (Op->getType() != IntPtrTy) in EmitGEPOffset()
442 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c"); in EmitGEPOffset()
445 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size), in EmitGEPOffset()
DInstCombineLoadStoreAlloca.cpp29 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); in visitAllocaInst() local
30 if (AI.getArraySize()->getType() != IntPtrTy) { in visitAllocaInst()
32 IntPtrTy, false); in visitAllocaInst()
DInstructionCombining.cpp691 Type *IntPtrTy = TD->getIntPtrType(Ty->getContext()); in FindElementAtOffset() local
706 NewIndices.push_back(ConstantInt::get(IntPtrTy, FirstIdx)); in FindElementAtOffset()
728 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); in FindElementAtOffset()
754 Type *IntPtrTy = TD->getIntPtrType(GEP.getContext()); in visitGetElementPtrInst() local
768 *I = Constant::getNullValue(IntPtrTy); in visitGetElementPtrInst()
772 if ((*I)->getType() != IntPtrTy) { in visitGetElementPtrInst()
776 *I = Builder->CreateIntCast(*I, IntPtrTy, true); in visitGetElementPtrInst()
DInstCombineCompares.cpp533 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); in EvaluateGEPOffsetExpression() local
534 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); in EvaluateGEPOffsetExpression()
555 Type *IntPtrTy = TD.getIntPtrType(VariableIdx->getContext()); in EvaluateGEPOffsetExpression() local
556 if (VariableIdx->getType() != IntPtrTy) in EvaluateGEPOffsetExpression()
557 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, in EvaluateGEPOffsetExpression()
559 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs); in EvaluateGEPOffsetExpression()
/external/llvm/lib/VMCore/
DInstructions.cpp272 BasicBlock *InsertAtEnd, Type *IntPtrTy, in createMalloc() argument
284 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
285 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
287 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
290 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
298 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc()
313 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
321 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, NULL); in createMalloc()
357 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
361 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
[all …]
/external/llvm/examples/BrainF/
DBrainF.cpp83 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/
DX86SelectionDAGInfo.cpp57 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemset() local
61 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
/external/llvm/include/llvm/
DInstrTypes.h573 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
DInstructions.h896 Type *IntPtrTy, Type *AllocTy,
901 Type *IntPtrTy, Type *AllocTy,
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1330 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()
1556 Type *IntPtrTy = TD->getIntPtrType(CI->getContext()); in TryToOptimizeStoreOfMallocToGlobal() local
1558 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize); in TryToOptimizeStoreOfMallocToGlobal()
1559 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements()); in TryToOptimizeStoreOfMallocToGlobal()
1560 Instruction *Malloc = CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, in TryToOptimizeStoreOfMallocToGlobal()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp468 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); in LowerLOAD() local
472 Entry.Ty = IntPtrTy; in LowerLOAD()
477 LowerCallTo(Chain, IntPtrTy, false, false, in LowerLOAD()
527 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); in LowerSTORE() local
531 Entry.Ty = IntPtrTy; in LowerSTORE()
/external/clang/lib/CodeGen/
DCGExpr.cpp519 llvm::Value *F = CGM.getIntrinsic(llvm::Intrinsic::objectsize, IntPtrTy); in EmitCheck()
526 llvm::Value *NegativeOne = llvm::ConstantInt::get(IntPtrTy, -1ULL); in EmitCheck()
531 llvm::ConstantInt::get(IntPtrTy, Size)), in EmitCheck()
1573 if (Idx->getType() != IntPtrTy) in EmitArraySubscriptExpr()
1574 Idx = Builder.CreateIntCast(Idx, IntPtrTy, IdxSigned, "idxprom"); in EmitArraySubscriptExpr()
DCodeGenModule.h112 llvm::IntegerType *IntPtrTy; member
DCGCall.cpp412 Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi"); in CoerceIntOrPtrToIntOrPtr()
417 DestIntTy = CGF.IntPtrTy; in CoerceIntOrPtrToIntOrPtr()
927 llvm::ConstantInt::get(IntPtrTy, in EmitFunctionProlog()
DCodeGenFunction.cpp646 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSizeAndAlign.first.getQuantity()); in emitNonZeroVLAInit()
DCGExprAgg.cpp1130 llvm::ConstantInt::get(IntPtrTy, in EmitAggregateCopy()
DCGStmt.cpp1532 Arg = Builder.CreatePtrToInt(Arg, IntPtrTy); in EmitAsmStmt()
DCGExprConstant.cpp637 C = llvm::ConstantExpr::getIntegerCast(C, CGM.IntPtrTy, isSigned); in VisitCastExpr()
DCGDecl.cpp953 llvm::ConstantInt::get(IntPtrTy, in EmitAutoVarInit()
DCGExprScalar.cpp572 llvm::Type *MiddleTy = CGF.IntPtrTy; in EmitScalarConversion()
1152 llvm::Type *MiddleTy = CGF.IntPtrTy; in VisitCastExpr()
DCGBuiltin.cpp714 Value *Result = Builder.CreatePtrToInt(Ptr, IntPtrTy, "extend.cast"); in EmitBuiltinExpr()
717 if (IntPtrTy->getBitWidth() == 64) in EmitBuiltinExpr()

12