| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SanitizerStats.cpp | 46 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create() local 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()
|
| 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-14.2/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() 416 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride() local 417 assert(Stride->getType() == IntPtrTy && "Unexpected type"); in determineBaseAndStride() 421 Stride = Builder.CreateMul(Stride, ConstantInt::get(IntPtrTy, TypeScale)); in determineBaseAndStride() 456 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride() local 457 assert(Stride->getType() == IntPtrTy && "Unexpected type"); in determineBaseAndStride() 461 Stride = Builder.CreateMul(Stride, ConstantInt::get(IntPtrTy, TypeScale)); in determineBaseAndStride()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStack.cpp | 120 Type *IntPtrTy; member in __anon8ecd001f0111::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 | 2743 Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) { in GetFieldAsValue() 2754 return ConstantInt::get(IntPtrTy, BaseOffs); in GetFieldAsValue() 5469 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local 5521 if (cast<IntegerType>(IntPtrTy)->getBitWidth() > in optimizeMemoryInst() 5564 if (V->getType() != IntPtrTy) in optimizeMemoryInst() 5573 if (V->getType() == IntPtrTy) { in optimizeMemoryInst() 5579 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst() 5647 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local 5659 if (V->getType() != IntPtrTy) in optimizeMemoryInst() 5667 if (V->getType() == IntPtrTy) { in optimizeMemoryInst() [all …]
|
| /freebsd-14.2/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 | 1597 Type *IntPtrTy = Builder.getIntPtrTy(Load->getModule()->getDataLayout()); in getNonAliasingPointer() local 1599 const_cast<Value *>(StoreLoc.Ptr), IntPtrTy, "store.begin"); in getNonAliasingPointer() 1601 StoreBegin, ConstantInt::get(IntPtrTy, StoreLoc.Size.getValue()), in getNonAliasingPointer() 1604 IntPtrTy, "load.begin"); in getNonAliasingPointer() 1614 LoadBegin, ConstantInt::get(IntPtrTy, LoadLoc.Size.getValue()), in getNonAliasingPointer()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| 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::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; in EmitTypeCheck() 770 PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy); in EmitTypeCheck() 833 Hash = Builder.CreateTrunc(Hash, IntPtrTy); in EmitTypeCheck() 2450 llvm::Type *ResultType = IntPtrTy; in EmitStoreThroughLValue() 3350 llvm::Type *TargetTy = IntPtrTy; in EmitCheckValue() 3604 ArgTypes.push_back(IntPtrTy); in EmitCheck() 3763 IntPtrTy); in EmitCfiCheckFail() 4141 if (Promote && Idx->getType() != IntPtrTy) in EmitArraySubscriptExpr() 4387 EmitScalarExpr(LowerBound), IntPtrTy, in EmitOMPArraySectionExpr() 4390 Idx = llvm::ConstantInt::getNullValue(IntPtrTy); in EmitOMPArraySectionExpr() [all …]
|
| H A D | ABIInfoImpl.cpp | 160 llvm::Intrinsic::ptrmask, {CGF.AllocaInt8PtrTy, CGF.IntPtrTy}, in emitRoundPointerUpToAlignment() 161 {RoundUp, llvm::ConstantInt::get(CGF.IntPtrTy, -Align.getQuantity())}, in emitRoundPointerUpToAlignment()
|
| H A D | CodeGenFunction.cpp | 2002 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSize.getQuantity()); in emitNonZeroVLAInit() 2479 if (Alignment->getType() != IntPtrTy) in emitAlignmentAssumption() 2481 Builder.CreateIntCast(Alignment, IntPtrTy, false, "casted.align"); in emitAlignmentAssumption() 2482 if (OffsetValue && OffsetValue->getType() != IntPtrTy) in emitAlignmentAssumption() 2484 Builder.CreateIntCast(OffsetValue, IntPtrTy, true, "casted.offset"); in emitAlignmentAssumption() 2488 Builder.CreatePtrToInt(PtrValue, IntPtrTy, "ptrint"); in emitAlignmentAssumption() 2499 llvm::Value *Zero = llvm::ConstantInt::get(IntPtrTy, 0); in emitAlignmentAssumption() 2501 Builder.CreateSub(Alignment, llvm::ConstantInt::get(IntPtrTy, 1)); in emitAlignmentAssumption()
|
| H A D | CGObjCGNU.cpp | 152 llvm::IntegerType *IntPtrTy; member in __anonaf5ecb460111::CGObjCGNU 2297 IntPtrTy = in CGObjCGNU() 3139 IntPtrTy, // strong_pointers in GenerateClassStructure() 3140 IntPtrTy // weak_pointers in GenerateClassStructure() 3420 return llvm::ConstantInt::get(IntPtrTy, val); in MakeBitField() 3442 llvm::Constant *ptr = llvm::ConstantExpr::getPtrToInt(GS, IntPtrTy); in MakeBitField() 3783 llvm::Constant *ZeroPtr = llvm::ConstantInt::get(IntPtrTy, 0); in GenerateClass()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | LowerTypeTests.cpp | 427 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0); member in __anonecc095190111::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() 1001 if (AbsWidth == IntPtrTy->getBitWidth()) in importTypeId() 1136 TIL.SizeM1 = ConstantInt::get(IntPtrTy, BSI.BitSize - 1); in lowerTypeTestCalls() 1675 ArrayRef<Constant *>{ConstantInt::get(IntPtrTy, 0), in buildBitSetsFromFunctionsNative() [all …]
|
| H A D | WholeProgramDevirt.cpp | 552 IntegerType *IntPtrTy; member 594 IntPtrTy(M.getDataLayout().getIntPtrType(M.getContext(), 0)), in DevirtModule() 1681 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importConstant() 1682 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max)); in importConstant() 1687 if (AbsWidth == IntPtrTy->getBitWidth()) in importConstant() 2071 LoadedValue = LoadB.CreateSExt(LoadedValue, IntPtrTy); in scanTypeCheckedLoadUsers() 2072 GEP = LoadB.CreatePtrToInt(GEP, IntPtrTy); in scanTypeCheckedLoadUsers()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | IRBuilder.cpp | 301 CallInst *IRBuilderBase::CreateMalloc(Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 310 ArraySize = ConstantInt::get(IntPtrTy, 1); in CreateMalloc() 311 else if (ArraySize->getType() != IntPtrTy) in CreateMalloc() 312 ArraySize = CreateIntCast(ArraySize, IntPtrTy, false); in CreateMalloc() 323 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in CreateMalloc() 330 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy); in CreateMalloc() 344 CallInst *IRBuilderBase::CreateMalloc(Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 348 return CreateMalloc(IntPtrTy, AllocTy, AllocSize, ArraySize, std::nullopt, in CreateMalloc() 1334 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); in CreateAlignmentAssumption() local 1335 Value *AlignValue = ConstantInt::get(IntPtrTy, Alignment); in CreateAlignmentAssumption()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | InstrProfiling.cpp | 1467 auto *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext()); in createDataVariable() local 1503 Constant *RelativeBitmapPtr = ConstantInt::get(IntPtrTy, 0); in createDataVariable() 1509 RelativeCounterPtr = ConstantExpr::getPtrToInt(CounterPtr, IntPtrTy); in createDataVariable() 1511 RelativeBitmapPtr = ConstantExpr::getPtrToInt(BitmapPtr, IntPtrTy); in createDataVariable() 1517 ConstantExpr::getSub(ConstantExpr::getPtrToInt(CounterPtr, IntPtrTy), in createDataVariable() 1518 ConstantExpr::getPtrToInt(Data, IntPtrTy)); in createDataVariable() 1521 ConstantExpr::getSub(ConstantExpr::getPtrToInt(BitmapPtr, IntPtrTy), in createDataVariable() 1522 ConstantExpr::getPtrToInt(Data, IntPtrTy)); in createDataVariable()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 2048 Type *IntPtrTy = Builder.getIntPtrTy(*DL, SI->getPointerAddressSpace()); in processCopyingStore() local 2158 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); in processCopyingStore() 2162 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW); in processCopyingStore() 2164 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize), in processCopyingStore() 2166 Value *NumBytes = Expander.expandCodeFor(NumBytesS, IntPtrTy, ExpPt); in processCopyingStore() 2212 Value *LA = Builder.CreatePtrToInt(LoadBasePtr, IntPtrTy); in processCopyingStore() 2213 Value *SA = Builder.CreatePtrToInt(StoreBasePtr, IntPtrTy); in processCopyingStore()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CallLowering.cpp | 383 LLT IntPtrTy = LLT::scalar(OrigTy.getSizeInBits()); in buildCopyFromRegs() local 384 B.buildIntToPtr(OrigRegs[0], B.buildTrunc(IntPtrTy, SrcReg)); in buildCopyFromRegs() 1196 LLT IntPtrTy = LLT::scalar(ValRegTy.getSizeInBits()); in extendRegister() local 1197 ValReg = MIRBuilder.buildPtrToInt(IntPtrTy, ValReg).getReg(0); in extendRegister()
|
| H A D | IRTranslator.cpp | 2887 LLT IntPtrTy = getLLTForType(*IntPtrIRTy, *DL); in translateAlloca() local 2888 if (MRI->getType(NumElts) != IntPtrTy) { in translateAlloca() 2889 Register ExtElts = MRI->createGenericVirtualRegister(IntPtrTy); in translateAlloca() 2896 Register AllocSize = MRI->createGenericVirtualRegister(IntPtrTy); in translateAlloca() 2905 auto SAMinusOne = MIRBuilder.buildConstant(IntPtrTy, StackAlign.value() - 1); in translateAlloca() 2906 auto AllocAdd = MIRBuilder.buildAdd(IntPtrTy, AllocSize, SAMinusOne, in translateAlloca() 2909 MIRBuilder.buildConstant(IntPtrTy, ~(uint64_t)(StackAlign.value() - 1)); in translateAlloca() 2910 auto AlignedAlloc = MIRBuilder.buildAnd(IntPtrTy, AllocAdd, AlignCst); in translateAlloca()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 1207 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local 1210 if (Constant *C = ConstantFoldIntegerCast(CE0->getOperand(0), IntPtrTy, in ConstantFoldCompareInstOperands() 1220 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands() local 1221 if (CE0->getType() == IntPtrTy) { in ConstantFoldCompareInstOperands() 1232 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local 1236 Constant *C0 = ConstantFoldIntegerCast(CE0->getOperand(0), IntPtrTy, in ConstantFoldCompareInstOperands() 1238 Constant *C1 = ConstantFoldIntegerCast(CE1->getOperand(0), IntPtrTy, in ConstantFoldCompareInstOperands() 1247 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands() local 1248 if (CE0->getType() == IntPtrTy && in ConstantFoldCompareInstOperands()
|
| H A D | LoopAccessAnalysis.cpp | 955 Type *IntPtrTy = SE->getEffectiveSCEVType( in findForkedSCEVs() local 961 const SCEV *Size = SE->getSizeOfExpr(IntPtrTy, SourceTy); in findForkedSCEVs() 965 Size, SE->getTruncateOrSignExtend(get<0>(OffsetScevs[0]), IntPtrTy)); in findForkedSCEVs() 967 Size, SE->getTruncateOrSignExtend(get<0>(OffsetScevs[1]), IntPtrTy)); in findForkedSCEVs()
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 1291 Type *IntPtrTy = getAddrIntType(&M); in runSjLjOnFunction() local 1292 Constant *size = ConstantInt::get(IntPtrTy, 40); in runSjLjOnFunction() 1294 auto *SetjmpTable = IRB.CreateMalloc(IntPtrTy, IRB.getInt32Ty(), size, in runSjLjOnFunction()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | Mips.cpp | 388 : CGF.IntPtrTy); in EmitVAArg()
|