/external/llvm/include/llvm/Transforms/Utils/ |
H A D | Local.h | 191 Type *IntPtrTy = DL.getIntPtrType(GEP->getType()); local 192 Value *Result = Constant::getNullValue(IntPtrTy); 199 unsigned IntPtrWidth = IntPtrTy->getScalarType()->getIntegerBitWidth(); 220 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), 225 Constant *Scale = ConstantInt::get(IntPtrTy, Size); 226 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); 233 if (Op->getType() != IntPtrTy) 234 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c"); 237 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
|
/external/llvm/lib/Transforms/Utils/ |
H A D | SanitizerStats.cpp | 47 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); local 54 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() - 66 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2), 67 ConstantInt::get(IntPtrTy, Inits.size() - 1),
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64SelectionDAGInfo.cpp | 36 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); local 40 Entry.Ty = IntPtrTy;
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | SeparateConstOffsetFromGEP.cpp | 720 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local 726 if ((*I)->getType() != IntPtrTy) { 727 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP); 771 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); local 797 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), 803 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); 805 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); 818 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset); 843 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); local 845 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); 1022 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local [all...] |
H A D | NaryReassociate.cpp | 426 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); 427 if (RHS->getType() != IntPtrTy) 428 RHS = Builder.CreateSExtOrTrunc(RHS, IntPtrTy); 431 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize));
|
H A D | StraightLineStrengthReduce.cpp | 441 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); local 443 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); 633 Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType()); local 649 Bump = Builder.CreateSExtOrTrunc(Bump, IntPtrTy);
|
H A D | LoopIdiomRecognize.cpp | 874 Type *IntPtrTy = Builder.getIntPtrTy(*DL, StrAS); local 878 StrStart = getStartForNegStride(StrStart, BECount, IntPtrTy, StoreSize, SE); 904 LdStart = getStartForNegStride(LdStart, BECount, IntPtrTy, StoreSize, SE); 924 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); 927 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW); 929 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize), 933 Expander.expandCodeFor(NumBytesS, IntPtrTy, Preheader->getTerminator());
|
/external/clang/lib/CodeGen/ |
H A D | CodeGenTypeCache.h | 46 llvm::IntegerType *IntPtrTy; member in union:clang::CodeGen::CodeGenTypeCache::__anon1260
|
H A D | CGExpr.cpp | 575 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; 581 llvm::ConstantInt::get(IntPtrTy, Size)); 595 Builder.CreateAnd(Builder.CreatePtrToInt(Ptr, IntPtrTy), 596 llvm::ConstantInt::get(IntPtrTy, AlignVal - 1)); 598 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0)); 644 llvm::Type *VPtrTy = llvm::PointerType::get(IntPtrTy, 0); 650 Hash = Builder.CreateTrunc(Hash, IntPtrTy); 654 llvm::Type *HashTable = llvm::ArrayType::get(IntPtrTy, CacheSize); 658 llvm::ConstantInt::get(IntPtrTy, 1659 llvm::Type *ResultType = IntPtrTy; [all...] |
/external/llvm/lib/Transforms/IPO/ |
H A D | LowerTypeTests.cpp | 223 IntegerType *IntPtrTy; member in struct:__anon13290::LowerTypeTests 354 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), 355 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])}; 434 CombinedGlobalIntAddr, ConstantInt::get(IntPtrTy, BSI.ByteOffset)); 440 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); 460 B.CreateLShr(PtrOffset, ConstantInt::get(IntPtrTy, BSI.AlignLog2)); 463 ConstantInt::get(IntPtrTy, DL.getPointerSizeInBits(0) - BSI.AlignLog2)); 467 Constant *BitSizeConst = ConstantInt::get(IntPtrTy, BSI.BitSize); 562 ConstantExpr::getPtrToInt(CombinedGlobalAddr, IntPtrTy); 638 Constant *DestInt = ConstantExpr::getPtrToInt(Dest, IntPtrTy); [all...] |
/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/swiftshader/third_party/LLVM/lib/Target/ARM/ |
H A D | ARMSelectionDAGInfo.cpp | 157 Type *IntPtrTy = TLI.getTargetData()->getIntPtrType(*DAG.getContext()); local 159 Entry.Ty = IntPtrTy; 164 Entry.Ty = IntPtrTy;
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
H A D | CodeGenPrepare.cpp | 827 Type *IntPtrTy = local 840 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); 841 if (V->getType() != IntPtrTy) 842 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); 849 if (V->getType() == IntPtrTy) { 852 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); 853 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < 855 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); 857 V = Builder.CreateSExt(V, IntPtrTy, "sunkaddr"); 860 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMod [all...] |
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
H A D | ConstantFolding.cpp | 548 Type *IntPtrTy = TD->getIntPtrType(ResultTy->getContext()); 556 Ops[i]->getType() != IntPtrTy) { 560 IntPtrTy, 562 Ops[i], IntPtrTy)); 585 Type *IntPtrTy = TD->getIntPtrType(Ptr->getContext()); 597 assert((CE == 0 || CE->getType() == IntPtrTy) && 612 unsigned BitWidth = TD->getTypeSizeInBits(IntPtrTy); 671 IntegerType *IntPtrTy = TD->getIntPtrType(Ty->getContext()); local 676 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); 682 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewId 916 Type *IntPtrTy = TD->getIntPtrType(CE0->getContext()); local 938 Type *IntPtrTy = TD->getIntPtrType(CE0->getContext()); local [all...] |
/external/llvm/examples/BrainF/ |
H A D | BrainF.cpp | 95 Type* IntPtrTy = IntegerType::getInt32Ty(C); local 98 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); 99 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem,
|
/external/swiftshader/third_party/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 | SafeStack.cpp | 113 Type *IntPtrTy; member in class:__anon12617::SafeStack 203 IntPtrTy = DL->getIntPtrType(M.getContext()); 571 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy), 572 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))), 681 if (ArraySize->getType() != IntPtrTy) 682 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); 686 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); 688 Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(UnsafeStackPtr), IntPtrTy); 698 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))),
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
H A D | InstCombineAddSub.cpp | 404 Type *IntPtrTy = TD.getIntPtrType(GEP->getContext()); local 405 Value *Result = Constant::getNullValue(IntPtrTy); 427 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), 432 Constant *Scale = ConstantInt::get(IntPtrTy, Size); 434 ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); 441 if (Op->getType() != IntPtrTy) 442 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c"); 445 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
|
H A D | InstCombineLoadStoreAlloca.cpp | 29 Type *IntPtrTy = TD->getIntPtrType(AI.getContext()); local 30 if (AI.getArraySize()->getType() != IntPtrTy) { 32 IntPtrTy, false);
|
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 694 Type *IntPtrTy = DL.getIntPtrType(ResultTy); local 702 Ops[i]->getType() != IntPtrTy) { 706 IntPtrTy, 708 Ops[i], IntPtrTy)); 760 Type *IntPtrTy = DL.getIntPtrType(Ptr->getType()); 771 assert((!CE || CE->getType() == IntPtrTy) && 786 unsigned BitWidth = DL.getTypeSizeInBits(IntPtrTy); 862 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); 871 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); 1105 Type *IntPtrTy local 1117 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); local 1129 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); local 1143 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); local [all...] |
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
H A D | Instructions.cpp | 354 BasicBlock *InsertAtEnd, Type *IntPtrTy, 366 ArraySize = ConstantInt::get(IntPtrTy, 1); 367 else if (ArraySize->getType() != IntPtrTy) { 369 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 372 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 380 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, 395 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); 403 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, NULL); 439 Type *IntPtrTy, Type *AllocTy, 443 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocT 353 createMalloc(Instruction *InsertBefore, BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument 438 CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function * MallocF, const Twine &Name) argument 455 CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument 474 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); local 2040 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument 2081 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) argument [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
H A D | X86SelectionDAGInfo.cpp | 57 Type *IntPtrTy = getTargetData()->getIntPtrType(*DAG.getContext()); local 61 Entry.Ty = IntPtrTy;
|
/external/llvm/lib/IR/ |
H A D | Instructions.cpp | 442 BasicBlock *InsertAtEnd, Type *IntPtrTy, 455 ArraySize = ConstantInt::get(IntPtrTy, 1); 456 else if (ArraySize->getType() != IntPtrTy) { 458 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 461 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, 469 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, 484 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); 492 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, nullptr); 529 Type *IntPtrTy, Type *AllocTy, 533 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocT [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/ |
H A D | InstrTypes.h | 562 /// IntPtrTy argument is used to make accurate determinations for casts 573 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
|
/external/llvm/lib/Target/X86/ |
H A D | X86SelectionDAGInfo.cpp | 78 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); local 82 Entry.Ty = IntPtrTy;
|