/freebsd-9.3-release/contrib/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),
|
/freebsd-9.3-release/contrib/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);
|
/freebsd-9.3-release/contrib/llvm/lib/Target/ARM/ |
H A D | ARMSelectionDAGInfo.cpp | 158 Type *IntPtrTy = TLI.getDataLayout()->getIntPtrType(*DAG.getContext()); local 160 Entry.Ty = IntPtrTy; 165 Entry.Ty = IntPtrTy;
|
/freebsd-9.3-release/contrib/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 623 Type *IntPtrTy = TD->getIntPtrType(ResultTy); 632 Ops[i]->getType() != IntPtrTy) { 636 IntPtrTy, 638 Ops[i], IntPtrTy)); 681 Type *IntPtrTy = TD->getIntPtrType(Ptr->getType()); 693 assert((CE == 0 || CE->getType() == IntPtrTy) && 708 unsigned BitWidth = TD->getTypeSizeInBits(IntPtrTy); 777 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); 783 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); 1067 Type *IntPtrTy local 1079 Type *IntPtrTy = TD->getIntPtrType(CE0->getOperand(0)->getType()); local 1091 Type *IntPtrTy = TD->getIntPtrType(CE0->getType()); local 1105 Type *IntPtrTy = TD->getIntPtrType(CE0->getOperand(0)->getType()); local [all...] |
H A D | ScalarEvolutionExpander.cpp | 406 Type *IntPtrTy = SE.TD local 420 const SCEV *ElSize = SE.getSizeOfExpr(IntPtrTy, ElTy);
|
H A D | InstructionSimplify.cpp | 680 Type *IntPtrTy = TD->getIntPtrType(V->getType())->getScalarType(); 681 APInt Offset = APInt::getNullValue(IntPtrTy->getIntegerBitWidth()); 706 Constant *OffsetIntPtr = ConstantInt::get(IntPtrTy, Offset);
|
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Scalar/ |
H A D | CodeGenPrepare.cpp | 1569 Type *IntPtrTy = TLI->getDataLayout()->getIntPtrType(Addr->getType()); local 1580 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); 1581 if (V->getType() != IntPtrTy) 1582 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); 1589 if (V->getType() == IntPtrTy) { 1592 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); 1593 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < 1595 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); 1597 V = Builder.CreateSExt(V, IntPtrTy, "sunkaddr"); 1600 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMod [all...] |
H A D | LoopIdiomRecognize.cpp | 1123 Type *IntPtrTy = Builder.getIntPtrTy(TD, SI->getPointerAddressSpace()); local 1124 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); 1126 const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtrTy, 1), 1129 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize), 1133 Expander.expandCodeFor(NumBytesS, IntPtrTy, Preheader->getTerminator());
|
/freebsd-9.3-release/contrib/llvm/lib/Target/X86/ |
H A D | X86SelectionDAGInfo.cpp | 55 Type *IntPtrTy = getDataLayout()->getIntPtrType(*DAG.getContext()); local 59 Entry.Ty = IntPtrTy;
|
/freebsd-9.3-release/contrib/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, NULL, 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 2083 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument [all...] |
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/CodeGen/ |
H A D | CGExpr.cpp | 480 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; 486 llvm::ConstantInt::get(IntPtrTy, Size)); 500 Builder.CreateAnd(Builder.CreatePtrToInt(Address, IntPtrTy), 501 llvm::ConstantInt::get(IntPtrTy, AlignVal - 1)); 503 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0)); 544 llvm::Type *VPtrTy = llvm::PointerType::get(IntPtrTy, 0); 550 Hash = Builder.CreateTrunc(Hash, IntPtrTy); 554 llvm::Type *HashTable = llvm::ArrayType::get(IntPtrTy, CacheSize); 558 llvm::ConstantInt::get(IntPtrTy, 2080 llvm::Type *TargetTy = IntPtrTy; [all...] |
H A D | CGObjCGNU.cpp | 152 llvm::IntegerType *IntPtrTy; member in class:__anon3101::CGObjCGNU 950 IntPtrTy = 1623 IntPtrTy, // strong_pointers 1624 IntPtrTy, // weak_pointers 2006 return llvm::ConstantInt::get(IntPtrTy, val); 2025 llvm::Constant *ptr = llvm::ConstantExpr::getPtrToInt(GS, IntPtrTy); 2357 llvm::Constant *ZeroPtr = llvm::ConstantInt::get(IntPtrTy, 0);
|
H A D | CGCall.cpp | 663 Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi"); 668 DestIntTy = CGF.IntPtrTy; 754 llvm::ConstantInt::get(CGF.IntPtrTy, SrcSize), 842 llvm::ConstantInt::get(CGF.IntPtrTy, DstSize), 1287 llvm::ConstantInt::get(IntPtrTy,
|
H A D | CGExprConstant.cpp | 1148 LHS = llvm::ConstantExpr::getPtrToInt(LHS, IntPtrTy); 1149 RHS = llvm::ConstantExpr::getPtrToInt(RHS, IntPtrTy);
|
H A D | CGStmt.cpp | 1649 Arg = Builder.CreatePtrToInt(Arg, IntPtrTy); 1654 Arg = Builder.CreateZExt(Arg, IntPtrTy);
|
H A D | CodeGenModule.h | 122 llvm::IntegerType *IntPtrTy; member in union:clang::CodeGen::CodeGenTypeCache::__anon3116
|
H A D | CGExprAgg.cpp | 1471 llvm::ConstantInt::get(IntPtrTy,
|
H A D | CGDecl.cpp | 1111 llvm::ConstantInt::get(IntPtrTy,
|
/freebsd-9.3-release/contrib/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
|
/freebsd-9.3-release/contrib/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 157 Type *IntPtrTy = TD->getIntPtrType(AI.getType()); local 158 if (AI.getArraySize()->getType() != IntPtrTy) { 160 IntPtrTy, false);
|
H A D | InstructionCombining.cpp | 779 Type *IntPtrTy = TD->getIntPtrType(PtrTy); 794 NewIndices.push_back(ConstantInt::get(IntPtrTy, FirstIdx)); 816 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); 1088 Type *IntPtrTy = TD->getIntPtrType(GEP.getPointerOperandType()); local 1102 *I = Constant::getNullValue(IntPtrTy); 1107 if (IndexTy != IntPtrTy) { 1111 *I = Builder->CreateIntCast(*I, IntPtrTy, true);
|
H A D | InstCombineCompares.cpp | 398 Type *IntPtrTy = TD->getIntPtrType(GEP->getType()); local 399 unsigned PtrSize = IntPtrTy->getIntegerBitWidth(); 401 Idx = Builder->CreateTrunc(Idx, IntPtrTy); 574 Type *IntPtrTy = TD.getIntPtrType(GEP->getOperand(0)->getType()); local 575 unsigned IntPtrWidth = IntPtrTy->getIntegerBitWidth(); 581 VariableIdx = IC.Builder->CreateTrunc(VariableIdx, IntPtrTy); 602 if (VariableIdx->getType() != IntPtrTy) 603 VariableIdx = IC.Builder->CreateIntCast(VariableIdx, IntPtrTy, 605 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs);
|
/freebsd-9.3-release/contrib/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 455 Type *IntPtrTy = getDataLayout()->getIntPtrType(*DAG.getContext()); local 459 Entry.Ty = IntPtrTy; 463 TargetLowering::CallLoweringInfo CLI(Chain, IntPtrTy, false, false, 514 Type *IntPtrTy = getDataLayout()->getIntPtrType(*DAG.getContext()); local 518 Entry.Ty = IntPtrTy;
|
/freebsd-9.3-release/contrib/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 1312 Type *IntPtrTy = TD->getIntPtrType(CI->getType()); local 1313 Value *NMI = CallInst::CreateMalloc(CI, IntPtrTy, FieldTy, 1314 ConstantInt::get(IntPtrTy, TypeSize), 1542 Type *IntPtrTy = TD->getIntPtrType(CI->getType()); local 1544 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize); 1545 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements()); 1546 Instruction *Malloc = CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy,
|
/freebsd-9.3-release/contrib/llvm/lib/Analysis/IPA/ |
H A D | InlineCost.cpp | 951 Type *IntPtrTy = TD->getIntPtrType(V->getContext()); local 952 return cast<ConstantInt>(ConstantInt::get(IntPtrTy, Offset));
|