Home
last modified time | relevance | path

Searched refs:getIntPtrType (Results 1 – 25 of 73) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp82 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()))); in LLVMIntPtrType()
86 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()), AS)); in LLVMIntPtrTypeForAS()
90 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C))); in LLVMIntPtrTypeInContext()
94 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C), AS)); in LLVMIntPtrTypeForASInContext()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp120 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
126 TypeToCastTo = DL.getIntPtrType(TypeToCastTo); in coerceAvailableValueToLoadType()
150 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
354 Builder.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper()
H A DEntryExitInstrumenter.cpp40 Type *SizeTy = M.getDataLayout().getIntPtrType(C); in insertCall()
H A DRelLookupTableConverter.cpp134 Type *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext()); in createRelLookupTable()
H A DFunctionComparator.cpp543 TyL = DL.getIntPtrType(TyL); in cmpTypes()
545 TyR = DL.getIntPtrType(TyR); in cmpTypes()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp164 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runImpl()
203 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType())); in runImpl()
H A DIntrinsicLowering.cpp350 Type *IntPtr = DL.getIntPtrType(Context); in LowerIntrinsicCall()
361 Type *IntPtr = DL.getIntPtrType(Context); in LowerIntrinsicCall()
373 Type *IntPtr = DL.getIntPtrType(Op0->getType()); in LowerIntrinsicCall()
H A DLowerEmuTLS.cpp139 IntegerType *WordType = DL.getIntPtrType(C); in addEmuTlsVar()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp347 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride()
419 Type *VecIntPtrTy = DL->getIntPtrType(GEP->getType()); in determineBaseAndStride()
444 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride()
484 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreSelectionDAGInfo.cpp37 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemcpy()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Atomic/
H A DAtomic.cpp116 ConstantInt::get(DL.getIntPtrType(Ctx), this->getAtomicSizeInBits() / 8)); in EmitAtomicLoadLibcall()
155 ConstantInt::get(DL.getIntPtrType(Ctx), this->getAtomicSizeInBits() / 8)); in EmitAtomicStoreLibcall()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonSelectionDAGInfo.cpp36 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemcpy()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAsanInstrumentation.cpp158 Type *IntptrTy = M.getDataLayout().getIntPtrType( in instrumentAddressImpl()
207 Type *IntptrTy = M.getDataLayout().getIntPtrType(AddrTy); in instrumentAddress()
264 Type *IntptrTy = M.getDataLayout().getIntPtrType( in getInterestingMemoryOperands()
H A DAMDGPUSwLowerLDS.cpp312 auto *IntTy = M.getDataLayout().getIntPtrType(Ctx, AMDGPUAS::LOCAL_ADDRESS); in recordLDSAbsoluteAddress()
671 Type *IntTy = DL.getIntPtrType(Ctx, AMDGPUAS::LOCAL_ADDRESS); in getTranslatedGlobalMemoryPtrOfLDS()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h545 LLVM_ABI IntegerType *getIntPtrType(LLVMContext &C,
550 LLVM_ABI Type *getIntPtrType(Type *) const;
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DNVPTX.cpp135 IntPtrType = HostTarget->getIntPtrType(); in NVPTXTargetInfo()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp1149 DefineTypeSizeAndWidth("__INTPTR", TI.getIntPtrType(), TI, Builder); in InitializePredefinedMacros()
1188 DefineType("__INTPTR_TYPE__", TI.getIntPtrType(), Builder); in InitializePredefinedMacros()
1189 DefineFmt(LangOpts, "__INTPTR", TI.getIntPtrType(), TI, Builder); in InitializePredefinedMacros()
1206 TI.getTypeWidth(TI.getIntPtrType()) && in InitializePredefinedMacros()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp850 IntegerType *DataLayout::getIntPtrType(LLVMContext &C, in getIntPtrType() function in DataLayout
855 Type *DataLayout::getIntPtrType(Type *Ty) const { in getIntPtrType() function in DataLayout
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMSelectionDAGInfo.cpp93 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitSpecializedLibcall()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaPPC.cpp100 bool IsTarget64Bit = TI.getTypeWidth(TI.getIntPtrType()) == 64; in CheckPPCBuiltinFunctionCall()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp137 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr; in isEliminableCastPair()
139 MidTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(MidTy) : nullptr; in isEliminableCastPair()
141 DstTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(DstTy) : nullptr; in isEliminableCastPair()
2067 DL.getIntPtrType(CI.getContext(), AS)); in visitIntToPtr()
2126 SrcTy->getWithNewType(DL.getIntPtrType(CI.getContext(), AS)); in visitPtrToInt()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp553 CE->getOperand(0)->getType() == DL.getIntPtrType(CE->getType())) { in ReadDataFromGlobal()
587 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; in FoldReinterpretLoadFromConst()
1216 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands()
1229 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands()
1241 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands()
1256 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands()
1494 DL.getIntPtrType(CE->getType()), in ConstantFoldCastOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64SelectionDAGInfo.cpp207 SizeEntry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitStreamingCompatibleMemLibCall()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp1629 llvm::Type *MiddleTy = CGF.CGM.getDataLayout().getIntPtrType(DstPT); in EmitScalarConversion()
2724 llvm::Type *MiddleTy = CGF.CGM.getDataLayout().getIntPtrType(DestLLVMTy); in VisitCastExpr()
4244 llvm::Type *IntPtrTy = DL.getIntPtrType(PtrTy); in emitPointerArithmetic()
5760 Src = Builder.CreatePtrToInt(Src, DL.getIntPtrType(SrcTy)); in createCastsForTypeOfSameSize()
5767 Src = Builder.CreateBitCast(Src, DL.getIntPtrType(DstTy)); in createCastsForTypeOfSameSize()
5972 Builder.CreatePtrToInt(BasePtr, DL.getIntPtrType(BasePtr->getType())); in EmitGEPOffsetInBytes()
5974 Builder.CreatePtrToInt(GEPVal, DL.getIntPtrType(GEPVal->getType())); in EmitGEPOffsetInBytes()
5984 auto *IntPtrTy = DL.getIntPtrType(GEP->getPointerOperandType()); in EmitGEPOffsetInBytes()
6086 llvm::Type *IntPtrTy = DL.getIntPtrType(PtrTy); in EmitCheckedInBoundsGEP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1960 auto OldVTy = OldTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(OldTy) : OldTy; in canConvertValue()
1961 auto NewVTy = NewTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(NewTy) : NewTy; in canConvertValue()
2075 return IRB.CreateIntToPtr(CreateBitCastLike(V, DL.getIntPtrType(NewTy)), in convertValue()
2085 return CreateBitCastLike(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)), in convertValue()
2101 CreateBitCastLike(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)), in convertValue()
2102 DL.getIntPtrType(NewTy)), in convertValue()

123