| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SanitizerStats.cpp | 46 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create() 53 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() - in create() 64 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2), in create() 65 ConstantInt::get(IntPtrTy, Inits.size() - 1), in create() 45 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); create() local
|
| H A D | RelLookupTableConverter.cpp | 113 Type *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext()); in createRelLookupTable() local 114 Constant *Base = llvm::ConstantExpr::getPtrToInt(RelLookupTable, IntPtrTy); in createRelLookupTable() 115 Constant *Target = llvm::ConstantExpr::getPtrToInt(Element, IntPtrTy); in createRelLookupTable()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGPointerAuth.cpp | 35 IntPtrTy, getContext().getPointerAuthTypeDiscriminator(Type)); in getPointerAuthOtherDiscriminator() 40 return llvm::ConstantInt::get(IntPtrTy, in getPointerAuthOtherDiscriminator() 44 return llvm::ConstantInt::get(IntPtrTy, Schema.getConstantDiscrimination()); in getPointerAuthOtherDiscriminator() 96 StorageAddress = Builder.CreatePtrToInt(StorageAddress, IntPtrTy); in EmitPointerAuthBlendDiscriminator() 120 Discriminator = Builder.CreatePtrToInt(StorageAddress, IntPtrTy); in EmitPointerAuthInfo() 207 Value = Builder.CreatePtrToInt(Value, IntPtrTy); in emitPointerAuthResignCall() 240 Null = llvm::ConstantInt::get(IntPtrTy, 0); in emitPointerAuthResign() 494 Discriminator = llvm::ConstantInt::get(IntPtrTy, ExtraDiscriminator); in getVTablePointerAuthInfo() 503 Discriminator = CGF->Builder.CreatePtrToInt(StorageAddress, IntPtrTy); in getVTablePointerAuthInfo()
|
| H A D | ConstantInitBuilder.cpp | 141 base = llvm::ConstantExpr::getPtrToInt(base, Builder.CGM.IntPtrTy); in getRelativeOffsetToPosition() 142 target = llvm::ConstantExpr::getPtrToInt(target, Builder.CGM.IntPtrTy); in getRelativeOffsetToPosition() 146 if (Builder.CGM.IntPtrTy != offsetType) { in getRelativeOffsetToPosition()
|
| H A D | CodeGenTypeCache.h | 49 llvm::IntegerType *IntPtrTy; member
|
| H A D | CGExpr.cpp | 745 llvm::Value *Size = llvm::ConstantInt::get(IntPtrTy, TySize); in EmitTypeCheck() 756 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; in EmitTypeCheck() 781 PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy); in EmitTypeCheck() 783 PtrAsInt, llvm::ConstantInt::get(IntPtrTy, AlignVal->value() - 1)); in EmitTypeCheck() 785 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0)); in EmitTypeCheck() 835 llvm::Type *VPtrTy = llvm::PointerType::get(IntPtrTy, 0); in EmitTypeCheck() 836 Address VPtrAddr(Ptr, IntPtrTy, getPointerAlign()); in EmitTypeCheck() 840 VPtrVal = Builder.CreateBitOrPointerCast(VPtrVal, IntPtrTy); in EmitTypeCheck() 844 Hash = Builder.CreateTrunc(Hash, IntPtrTy); in EmitTypeCheck() 848 llvm::Type *HashTable = llvm::ArrayType::get(IntPtrTy, CacheSize); in EmitTypeCheck() [all …]
|
| H A D | CodeGenFunction.cpp | 2081 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSize.getQuantity()); in emitNonZeroVLAInit() 2561 if (Alignment->getType() != IntPtrTy) in emitAlignmentAssumption() 2563 Builder.CreateIntCast(Alignment, IntPtrTy, false, "casted.align"); in emitAlignmentAssumption() 2564 if (OffsetValue && OffsetValue->getType() != IntPtrTy) in emitAlignmentAssumption() 2566 Builder.CreateIntCast(OffsetValue, IntPtrTy, true, "casted.offset"); in emitAlignmentAssumption() 2570 Builder.CreatePtrToInt(PtrValue, IntPtrTy, "ptrint"); in emitAlignmentAssumption() 2581 llvm::Value *Zero = llvm::ConstantInt::get(IntPtrTy, 0); in emitAlignmentAssumption() 2583 Builder.CreateSub(Alignment, llvm::ConstantInt::get(IntPtrTy, 1)); in emitAlignmentAssumption() 3101 Pointer = CGF.Builder.CreatePtrToInt(Pointer, CGF.IntPtrTy); in EmitPointerAuthCommon() 3130 StripIntrinsic, {CGF.Builder.CreatePtrToInt(Pointer, CGF.IntPtrTy), Key}); in EmitStrip()
|
| H A D | ABIInfoImpl.cpp | 163 llvm::Intrinsic::ptrmask, {Ptr->getType(), CGF.IntPtrTy}, in emitRoundPointerUpToAlignment() 164 {RoundUp, llvm::ConstantInt::get(CGF.IntPtrTy, -Align.getQuantity())}, in emitRoundPointerUpToAlignment()
|
| H A D | CGObjCGNU.cpp | 152 llvm::IntegerType *IntPtrTy; member in __anonbab9bb100111::CGObjCGNU 2296 IntPtrTy = in CGObjCGNU() 3138 IntPtrTy, // strong_pointers in GenerateClassStructure() 3139 IntPtrTy // weak_pointers in GenerateClassStructure() 3419 return llvm::ConstantInt::get(IntPtrTy, val); in MakeBitField() 3441 llvm::Constant *ptr = llvm::ConstantExpr::getPtrToInt(GS, IntPtrTy); in MakeBitField() 3782 llvm::Constant *ZeroPtr = llvm::ConstantInt::get(IntPtrTy, 0); in GenerateClass()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVGatherScatterLowering.cpp | 338 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride() local 339 return std::make_pair(BasePtr, ConstantInt::get(IntPtrTy, 0)); in determineBaseAndStride() 435 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride() local 436 assert(Stride->getType() == IntPtrTy && "Unexpected type"); in determineBaseAndStride() 440 Stride = Builder.CreateMul(Stride, ConstantInt::get(IntPtrTy, TypeScale)); in determineBaseAndStride() 475 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride() local 476 assert(Stride->getType() == IntPtrTy && "Unexpected type"); in determineBaseAndStride() 480 Stride = Builder.CreateMul(Stride, ConstantInt::get(IntPtrTy, TypeScale)); in determineBaseAndStride()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStack.cpp | 120 Type *IntPtrTy; member in __anon0b441ea90111::SafeStack 196 IntPtrTy(DL.getIntPtrType(F.getContext())), in SafeStack() 554 IRB.CreatePtrToInt(BasePointer, IntPtrTy), in moveStaticAllocasToUnsafeStack() 555 ConstantInt::get(IntPtrTy, ~(FrameAlignment.value() - 1))), in moveStaticAllocasToUnsafeStack() 664 if (ArraySize->getType() != IntPtrTy) in moveDynamicAllocasToUnsafeStack() 665 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack() 669 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack() 672 IntPtrTy); in moveDynamicAllocasToUnsafeStack() 681 ConstantInt::get(IntPtrTy, ~uint64_t(Align.value() - 1))), in moveDynamicAllocasToUnsafeStack()
|
| H A D | CodeGenPrepare.cpp | 2837 Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) { in GetFieldAsValue() 2848 return ConstantInt::get(IntPtrTy, BaseOffs); in GetFieldAsValue() 3917 Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType()); in initializeMap() local 3919 Value *DV = AM.GetFieldAsValue(DifferentField, IntPtrTy); in initializeMap() 5573 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local 5586 SunkAddr = Builder.CreatePtrToInt(SunkAddr, IntPtrTy, "sunkaddr"); in optimizeMemoryInst() 5625 if (cast<IntegerType>(IntPtrTy)->getBitWidth() > in optimizeMemoryInst() 5673 if (V->getType() != IntPtrTy) in optimizeMemoryInst() 5674 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); in optimizeMemoryInst() 5682 if (V->getType() == IntPtrTy) { in optimizeMemoryInst() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | LowerTypeTests.cpp | 427 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0); member in __anonc00fd2a30111::LowerTypeTestsModule 643 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays() 644 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])}; in allocateByteArrays() 750 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerTypeTestCall() 753 ConstantExpr::getPtrToInt(TIL.OffsetedGlobal, IntPtrTy); in lowerTypeTestCall() 768 B.CreateLShr(PtrOffset, B.CreateZExt(TIL.AlignLog2, IntPtrTy)); in lowerTypeTestCall() 774 IntPtrTy)); in lowerTypeTestCall() 996 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importTypeId() 997 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max)); in importTypeId() 1001 if (AbsWidth == IntPtrTy->getBitWidth()) in importTypeId() [all …]
|
| H A D | WholeProgramDevirt.cpp | 552 IntegerType *IntPtrTy; member 594 IntPtrTy(M.getDataLayout().getIntPtrType(M.getContext(), 0)), in DevirtModule() 1673 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importConstant() 1674 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max)); in importConstant() 1679 if (AbsWidth == IntPtrTy->getBitWidth()) in importConstant() 2063 LoadedValue = LoadB.CreateSExt(LoadedValue, IntPtrTy); in scanTypeCheckedLoadUsers() 2064 GEP = LoadB.CreatePtrToInt(GEP, IntPtrTy); in scanTypeCheckedLoadUsers()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 928 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics() local 929 assert(IntPtrTy == DL->getIndexType(Variadic->getType()) && in lowerToArithmetics() 933 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); in lowerToArithmetics() 946 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics() 952 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics() 954 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics() 965 ResultPtr, ConstantInt::get(IntPtrTy, AccumulativeByteOffset)); in lowerToArithmetics()
|
| H A D | LowerMatrixIntrinsics.cpp | 1644 Type *IntPtrTy = Builder.getIntPtrTy(Load->getDataLayout()); in getNonAliasingPointer() local 1646 const_cast<Value *>(StoreLoc.Ptr), IntPtrTy, "store.begin"); in getNonAliasingPointer() 1648 StoreBegin, ConstantInt::get(IntPtrTy, StoreLoc.Size.getValue()), in getNonAliasingPointer() 1651 IntPtrTy, "load.begin"); in getNonAliasingPointer() 1661 LoadBegin, ConstantInt::get(IntPtrTy, LoadLoc.Size.getValue()), in getNonAliasingPointer()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | IRBuilder.cpp | 302 CallInst *IRBuilderBase::CreateMalloc(Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 311 ArraySize = ConstantInt::get(IntPtrTy, 1); in CreateMalloc() 312 else if (ArraySize->getType() != IntPtrTy) in CreateMalloc() 313 ArraySize = CreateIntCast(ArraySize, IntPtrTy, false); in CreateMalloc() 324 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in CreateMalloc() 331 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy); in CreateMalloc() 345 CallInst *IRBuilderBase::CreateMalloc(Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 349 return CreateMalloc(IntPtrTy, AllocTy, AllocSize, ArraySize, std::nullopt, in CreateMalloc() 1315 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); in CreateAlignmentAssumption() local 1316 Value *AlignValue = ConstantInt::get(IntPtrTy, Alignment); in CreateAlignmentAssumption()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | InstrProfiling.cpp | 1806 auto *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext()); in createDataVariable() local 1842 Constant *RelativeBitmapPtr = ConstantInt::get(IntPtrTy, 0); in createDataVariable() 1848 RelativeCounterPtr = ConstantExpr::getPtrToInt(CounterPtr, IntPtrTy); in createDataVariable() 1850 RelativeBitmapPtr = ConstantExpr::getPtrToInt(BitmapPtr, IntPtrTy); in createDataVariable() 1856 ConstantExpr::getSub(ConstantExpr::getPtrToInt(CounterPtr, IntPtrTy), in createDataVariable() 1857 ConstantExpr::getPtrToInt(Data, IntPtrTy)); in createDataVariable() 1860 ConstantExpr::getSub(ConstantExpr::getPtrToInt(BitmapPtr, IntPtrTy), in createDataVariable() 1861 ConstantExpr::getPtrToInt(Data, IntPtrTy)); in createDataVariable()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 2042 Type *IntPtrTy = Builder.getIntPtrTy(*DL, SI->getPointerAddressSpace()); in processCopyingStore() local 2152 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); in processCopyingStore() 2156 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW); in processCopyingStore() 2158 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize), in processCopyingStore() 2160 Value *NumBytes = Expander.expandCodeFor(NumBytesS, IntPtrTy, ExpPt); in processCopyingStore() 2206 Value *LA = Builder.CreatePtrToInt(LoadBasePtr, IntPtrTy); in processCopyingStore() 2207 Value *SA = Builder.CreatePtrToInt(StoreBasePtr, IntPtrTy); in processCopyingStore()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 1192 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local 1195 if (Constant *C = ConstantFoldIntegerCast(CE0->getOperand(0), IntPtrTy, in ConstantFoldCompareInstOperands() 1205 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands() local 1206 if (CE0->getType() == IntPtrTy) { in ConstantFoldCompareInstOperands() 1217 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local 1221 Constant *C0 = ConstantFoldIntegerCast(CE0->getOperand(0), IntPtrTy, in ConstantFoldCompareInstOperands() 1223 Constant *C1 = ConstantFoldIntegerCast(CE1->getOperand(0), IntPtrTy, in ConstantFoldCompareInstOperands() 1232 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands() local 1233 if (CE0->getType() == IntPtrTy && in ConstantFoldCompareInstOperands()
|
| H A D | LoopAccessAnalysis.cpp | 953 Type *IntPtrTy = SE->getEffectiveSCEVType( in findForkedSCEVs() local 959 const SCEV *Size = SE->getSizeOfExpr(IntPtrTy, SourceTy); in findForkedSCEVs() 963 Size, SE->getTruncateOrSignExtend(get<0>(OffsetScevs[0]), IntPtrTy)); in findForkedSCEVs() 965 Size, SE->getTruncateOrSignExtend(get<0>(OffsetScevs[1]), IntPtrTy)); in findForkedSCEVs()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CallLowering.cpp | 413 LLT IntPtrTy = LLT::scalar(OrigTy.getSizeInBits()); in buildCopyFromRegs() local 414 B.buildIntToPtr(OrigRegs[0], B.buildTrunc(IntPtrTy, SrcReg)); in buildCopyFromRegs() 1311 LLT IntPtrTy = LLT::scalar(ValRegTy.getSizeInBits()); in extendRegister() local 1312 ValReg = MIRBuilder.buildPtrToInt(IntPtrTy, ValReg).getReg(0); in extendRegister()
|
| H A D | IRTranslator.cpp | 3052 LLT IntPtrTy = getLLTForType(*IntPtrIRTy, *DL); in translateAlloca() local 3053 if (MRI->getType(NumElts) != IntPtrTy) { in translateAlloca() 3054 Register ExtElts = MRI->createGenericVirtualRegister(IntPtrTy); in translateAlloca() 3061 Register AllocSize = MRI->createGenericVirtualRegister(IntPtrTy); in translateAlloca() 3070 auto SAMinusOne = MIRBuilder.buildConstant(IntPtrTy, StackAlign.value() - 1); in translateAlloca() 3071 auto AllocAdd = MIRBuilder.buildAdd(IntPtrTy, AllocSize, SAMinusOne, in translateAlloca() 3074 MIRBuilder.buildConstant(IntPtrTy, ~(uint64_t)(StackAlign.value() - 1)); in translateAlloca() 3075 auto AlignedAlloc = MIRBuilder.buildAnd(IntPtrTy, AllocAdd, AlignCst); in translateAlloca()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 457 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); in LowerLOAD() local 461 Entry.Ty = IntPtrTy; in LowerLOAD() 467 CallingConv::C, IntPtrTy, in LowerLOAD() 508 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); in LowerSTORE() local 512 Entry.Ty = IntPtrTy; in LowerSTORE()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | Mips.cpp | 386 llvm::Type *IntTy = (OrigTy->isIntegerType() ? ValTy : CGF.IntPtrTy); in EmitVAArg()
|