Home
last modified time | relevance | path

Searched refs:IntPtrTy (Results 1 – 25 of 52) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp46 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 DRelLookupTableConverter.cpp113 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 DRISCVGatherScatterLowering.cpp338 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 DSafeStack.cpp120 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 DCodeGenPrepare.cpp2743 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 DSeparateConstOffsetFromGEP.cpp928 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 DLowerMatrixIntrinsics.cpp1597 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 DConstantInitBuilder.cpp141 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 DCodeGenTypeCache.h49 llvm::IntegerType *IntPtrTy; member
H A DCGExpr.cpp745 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 DABIInfoImpl.cpp160 llvm::Intrinsic::ptrmask, {CGF.AllocaInt8PtrTy, CGF.IntPtrTy}, in emitRoundPointerUpToAlignment()
161 {RoundUp, llvm::ConstantInt::get(CGF.IntPtrTy, -Align.getQuantity())}, in emitRoundPointerUpToAlignment()
H A DCodeGenFunction.cpp2002 = 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 DCGObjCGNU.cpp152 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 DLowerTypeTests.cpp427 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 DWholeProgramDevirt.cpp552 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 DIRBuilder.cpp301 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 DInstrProfiling.cpp1467 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 DHexagonLoopIdiomRecognition.cpp2048 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 DCallLowering.cpp383 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 DIRTranslator.cpp2887 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 DConstantFolding.cpp1207 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 DLoopAccessAnalysis.cpp955 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 DXCoreISelLowering.cpp457 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 DWebAssemblyLowerEmscriptenEHSjLj.cpp1291 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 DMips.cpp388 : CGF.IntPtrTy); in EmitVAArg()

123