/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/Utils/ |
D | Local.h | 32 Type *IntPtrTy = DL.getIntPtrType(GEP->getType()); variable 33 Value *Result = Constant::getNullValue(IntPtrTy); 40 unsigned IntPtrWidth = IntPtrTy->getScalarType()->getIntegerBitWidth(); 62 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), 67 Constant *Scale = ConstantInt::get(IntPtrTy, Size); 68 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); 75 if (Op->getType() != IntPtrTy) 76 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c"); 79 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Local.h | 191 Type *IntPtrTy = DL.getIntPtrType(GEP->getType()); variable 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SanitizerStats.cpp | 47 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create() local 54 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() - in create() 66 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2), in create() 67 ConstantInt::get(IntPtrTy, Inits.size() - 1), in create()
|
/external/llvm/lib/Transforms/Utils/ |
D | SanitizerStats.cpp | 47 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create() local 54 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() - in create() 66 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2), in create() 67 ConstantInt::get(IntPtrTy, Inits.size() - 1), in create()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 720 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in canonicalizeArrayIndicesToPointerSize() local 726 if ((*I)->getType() != IntPtrTy) { in canonicalizeArrayIndicesToPointerSize() 727 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP); in canonicalizeArrayIndicesToPointerSize() 771 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToSingleIndexGEPs() local 797 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() 803 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs() 805 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToSingleIndexGEPs() 818 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset); in lowerToSingleIndexGEPs() 843 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics() local 845 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); in lowerToArithmetics() [all …]
|
D | NaryReassociate.cpp | 426 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in tryReassociateGEPAtIndex() local 427 if (RHS->getType() != IntPtrTy) in tryReassociateGEPAtIndex() 428 RHS = Builder.CreateSExtOrTrunc(RHS, IntPtrTy); in tryReassociateGEPAtIndex() 431 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
|
D | LoopIdiomRecognize.cpp | 874 Type *IntPtrTy = Builder.getIntPtrTy(*DL, StrAS); in processLoopStoreOfLoopLoad() local 878 StrStart = getStartForNegStride(StrStart, BECount, IntPtrTy, StoreSize, SE); in processLoopStoreOfLoopLoad() 904 LdStart = getStartForNegStride(LdStart, BECount, IntPtrTy, StoreSize, SE); in processLoopStoreOfLoopLoad() 924 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); in processLoopStoreOfLoopLoad() 927 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW); in processLoopStoreOfLoopLoad() 929 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize), in processLoopStoreOfLoopLoad() 933 Expander.expandCodeFor(NumBytesS, IntPtrTy, Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
|
D | StraightLineStrengthReduce.cpp | 441 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); in allocateCandidatesAndFindBasisForGEP() local 443 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP() 633 Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType()); in rewriteCandidateWithBasis() local 649 Bump = Builder.CreateSExtOrTrunc(Bump, IntPtrTy); in rewriteCandidateWithBasis()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 766 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in canonicalizeArrayIndicesToPointerSize() local 772 if ((*I)->getType() != IntPtrTy) { in canonicalizeArrayIndicesToPointerSize() 773 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP); in canonicalizeArrayIndicesToPointerSize() 817 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToSingleIndexGEPs() local 843 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() 849 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs() 851 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToSingleIndexGEPs() 864 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset); in lowerToSingleIndexGEPs() 889 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics() local 891 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); in lowerToArithmetics() [all …]
|
D | NaryReassociate.cpp | 423 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in tryReassociateGEPAtIndex() local 424 if (RHS->getType() != IntPtrTy) in tryReassociateGEPAtIndex() 425 RHS = Builder.CreateSExtOrTrunc(RHS, IntPtrTy); in tryReassociateGEPAtIndex() 428 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
|
/external/llvm/lib/Transforms/IPO/ |
D | LowerTypeTests.cpp | 223 IntegerType *IntPtrTy; member 354 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays() 355 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])}; in allocateByteArrays() 434 CombinedGlobalIntAddr, ConstantInt::get(IntPtrTy, BSI.ByteOffset)); in lowerBitSetCall() 440 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerBitSetCall() 460 B.CreateLShr(PtrOffset, ConstantInt::get(IntPtrTy, BSI.AlignLog2)); in lowerBitSetCall() 463 ConstantInt::get(IntPtrTy, DL.getPointerSizeInBits(0) - BSI.AlignLog2)); in lowerBitSetCall() 467 Constant *BitSizeConst = ConstantInt::get(IntPtrTy, BSI.BitSize); in lowerBitSetCall() 562 ConstantExpr::getPtrToInt(CombinedGlobalAddr, IntPtrTy); in lowerTypeTestCalls() 638 Constant *DestInt = ConstantExpr::getPtrToInt(Dest, IntPtrTy); in createJumpTableEntry() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64SelectionDAGInfo.cpp | 36 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemset() local 40 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64SelectionDAGInfo.cpp | 36 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemset() local 40 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
|
/external/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 113 Type *IntPtrTy; member in __anon1a32b3f60111::SafeStack 203 IntPtrTy = DL->getIntPtrType(M.getContext()); in doInitialization() 571 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy), in moveStaticAllocasToUnsafeStack() 572 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))), in moveStaticAllocasToUnsafeStack() 681 if (ArraySize->getType() != IntPtrTy) in moveDynamicAllocasToUnsafeStack() 682 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack() 686 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack() 688 Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(UnsafeStackPtr), IntPtrTy); in moveDynamicAllocasToUnsafeStack() 698 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))), in moveDynamicAllocasToUnsafeStack()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | SafeStack.cpp | 132 Type *IntPtrTy; member in __anon6291728e0111::SafeStack 211 IntPtrTy(DL.getIntPtrType(F.getContext())), in SafeStack() 541 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy), in moveStaticAllocasToUnsafeStack() 542 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))), in moveStaticAllocasToUnsafeStack() 653 if (ArraySize->getType() != IntPtrTy) in moveDynamicAllocasToUnsafeStack() 654 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack() 658 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack() 660 Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(UnsafeStackPtr), IntPtrTy); in moveDynamicAllocasToUnsafeStack() 670 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))), in moveDynamicAllocasToUnsafeStack()
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 694 Type *IntPtrTy = DL.getIntPtrType(ResultTy); in CastGEPIndices() local 702 Ops[i]->getType() != IntPtrTy) { in CastGEPIndices() 706 IntPtrTy, in CastGEPIndices() 708 Ops[i], IntPtrTy)); in CastGEPIndices() 760 Type *IntPtrTy = DL.getIntPtrType(Ptr->getType()); in SymbolicallyEvaluateGEP() local 771 assert((!CE || CE->getType() == IntPtrTy) && in SymbolicallyEvaluateGEP() 786 unsigned BitWidth = DL.getTypeSizeInBits(IntPtrTy); in SymbolicallyEvaluateGEP() 862 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); in SymbolicallyEvaluateGEP() 871 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); in SymbolicallyEvaluateGEP() 1105 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 738 Type *IntPtrTy = DL.getIntPtrType(ResultTy); in CastGEPIndices() local 739 Type *IntPtrScalarTy = IntPtrTy->getScalarType(); in CastGEPIndices() 750 ? IntPtrTy in CastGEPIndices() 751 : IntPtrTy->getScalarType(); in CastGEPIndices() 811 Type *IntPtrTy = DL.getIntPtrType(Ptr->getType()); in SymbolicallyEvaluateGEP() local 822 assert((!CE || CE->getType() == IntPtrTy) && in SymbolicallyEvaluateGEP() 837 unsigned BitWidth = DL.getTypeSizeInBits(IntPtrTy); in SymbolicallyEvaluateGEP() 917 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); in SymbolicallyEvaluateGEP() 926 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); in SymbolicallyEvaluateGEP() 1192 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | PtrUseVisitor.h | 226 IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType())); in visitPtr() local 228 Offset = APInt(IntPtrTy->getBitWidth(), 0); in visitPtr()
|
/external/llvm/include/llvm/Analysis/ |
D | PtrUseVisitor.h | 208 IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType())); in visitPtr() local 210 Offset = APInt(IntPtrTy->getBitWidth(), 0); in visitPtr()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | LowerTypeTests.cpp | 341 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0); member in __anon42f526080111::LowerTypeTestsModule 581 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays() 582 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])}; in allocateByteArrays() 685 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerTypeTestCall() 688 ConstantExpr::getPtrToInt(TIL.OffsetedGlobal, IntPtrTy); in lowerTypeTestCall() 703 B.CreateLShr(PtrOffset, ConstantExpr::getZExt(TIL.AlignLog2, IntPtrTy)); in lowerTypeTestCall() 709 IntPtrTy)); in lowerTypeTestCall() 926 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importTypeId() 927 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max)); in importTypeId() 931 if (AbsWidth == IntPtrTy->getBitWidth()) in importTypeId() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/BrainF/ |
D | BrainF.cpp | 95 Type* IntPtrTy = IntegerType::getInt32Ty(C); in header() local 98 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); in header() 99 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem, in header()
|
/external/llvm/examples/BrainF/ |
D | BrainF.cpp | 95 Type* IntPtrTy = IntegerType::getInt32Ty(C); in header() local 98 allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy); in header() 99 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem, in header()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 442 BasicBlock *InsertAtEnd, Type *IntPtrTy, in createMalloc() argument 455 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc() 456 else if (ArraySize->getType() != IntPtrTy) { in createMalloc() 458 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 461 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 469 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc() 484 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc() 492 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, nullptr); in createMalloc() 529 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 533 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc() [all …]
|
/external/clang/lib/CodeGen/ |
D | CodeGenTypeCache.h | 46 llvm::IntegerType *IntPtrTy; member
|
D | CGExpr.cpp | 575 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; in EmitTypeCheck() 581 llvm::ConstantInt::get(IntPtrTy, Size)); in EmitTypeCheck() 595 Builder.CreateAnd(Builder.CreatePtrToInt(Ptr, IntPtrTy), in EmitTypeCheck() 596 llvm::ConstantInt::get(IntPtrTy, AlignVal - 1)); in EmitTypeCheck() 598 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0)); in EmitTypeCheck() 644 llvm::Type *VPtrTy = llvm::PointerType::get(IntPtrTy, 0); in EmitTypeCheck() 650 Hash = Builder.CreateTrunc(Hash, IntPtrTy); in EmitTypeCheck() 654 llvm::Type *HashTable = llvm::ArrayType::get(IntPtrTy, CacheSize); in EmitTypeCheck() 658 llvm::ConstantInt::get(IntPtrTy, in EmitTypeCheck() 1659 llvm::Type *ResultType = IntPtrTy; in EmitStoreThroughLValue() [all …]
|