Home
last modified time | relevance | path

Searched refs:getIntPtrType (Results 1 – 25 of 70) 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.cpp98 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
104 TypeToCastTo = DL.getIntPtrType(TypeToCastTo); in coerceAvailableValueToLoadType()
127 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
314 Builder.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper()
H A DEntryExitInstrumenter.cpp40 Type *SizeTy = M.getDataLayout().getIntPtrType(C); in insertCall()
H A DSimplifyLibCalls.cpp395 ConstantInt::get(DL.getIntPtrType(Src->getContext()), Len + 1)); in emitStrLenMemCpy()
586 ConstantInt::get(DL.getIntPtrType(CI->getContext()), in optimizeStrCmp()
597 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len2), in optimizeStrCmp()
604 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len1), in optimizeStrCmp()
675 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len2), in optimizeStrNCmp()
683 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len1), in optimizeStrNCmp()
720 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len)); in optimizeStrCpy()
746 Value *LenV = ConstantInt::get(DL.getIntPtrType(PT), Len); in optimizeStpCpy()
748 B.getInt8Ty(), Dst, ConstantInt::get(DL.getIntPtrType(PT), Len - 1)); in optimizeStpCpy()
821 ConstantInt::get(DL.getIntPtrType(PT), NBytes)); in optimizeStrLCpy()
[all …]
H A DRelLookupTableConverter.cpp113 Type *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext()); in createRelLookupTable()
H A DFunctionComparator.cpp529 TyL = DL.getIntPtrType(TyL); in cmpTypes()
531 TyR = DL.getIntPtrType(TyR); in cmpTypes()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DUtility.cpp26 PointerType::getUnqual(C), M.getDataLayout().getIntPtrType(C), in getEntryTy()
39 Type *SizeTy = M.getDataLayout().getIntPtrType(M.getContext()); in getOffloadingEntryInitializer()
H A DOffloadWrapper.cpp32 return M.getDataLayout().getIntPtrType(M.getContext()); in getSizeTTy()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp338 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride()
410 Type *VecIntPtrTy = DL->getIntPtrType(GEP->getType()); in determineBaseAndStride()
435 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride()
475 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp165 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runImpl()
204 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType())); in runImpl()
H A DIntrinsicLowering.cpp348 Type *IntPtr = DL.getIntPtrType(Context); in LowerIntrinsicCall()
359 Type *IntPtr = DL.getIntPtrType(Context); in LowerIntrinsicCall()
371 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/XCore/
H A DXCoreSelectionDAGInfo.cpp29 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemcpy()
/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/include/llvm/IR/
H A DDataLayout.h553 IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace = 0) const;
557 Type *getIntPtrType(Type *) const;
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DNVPTX.cpp130 IntPtrType = HostTarget->getIntPtrType(); in NVPTXTargetInfo()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp1132 DefineTypeSizeAndWidth("__INTPTR", TI.getIntPtrType(), TI, Builder); in InitializePredefinedMacros()
1167 DefineType("__INTPTR_TYPE__", TI.getIntPtrType(), Builder); in InitializePredefinedMacros()
1168 DefineFmt(LangOpts, "__INTPTR", TI.getIntPtrType(), TI, Builder); in InitializePredefinedMacros()
1185 TI.getTypeWidth(TI.getIntPtrType()) && in InitializePredefinedMacros()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMSelectionDAGInfo.cpp90 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitSpecializedLibcall()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp878 IntegerType *DataLayout::getIntPtrType(LLVMContext &C, in getIntPtrType() function in DataLayout
883 Type *DataLayout::getIntPtrType(Type *Ty) const { in getIntPtrType() function in DataLayout
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64SelectionDAGInfo.cpp131 SizeEntry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitStreamingCompatibleMemLibCall()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaPPC.cpp97 bool IsTarget64Bit = TI.getTypeWidth(TI.getIntPtrType()) == 64; in CheckPPCBuiltinFunctionCall()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp536 CE->getOperand(0)->getType() == DL.getIntPtrType(CE->getType())) { in ReadDataFromGlobal()
571 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; in FoldReinterpretLoadFromConst()
1192 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands()
1205 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands()
1217 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands()
1232 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands()
1400 DL.getIntPtrType(CE->getType()), in ConstantFoldCastOperand()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp135 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr; in isEliminableCastPair()
137 MidTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(MidTy) : nullptr; in isEliminableCastPair()
139 DstTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(DstTy) : nullptr; in isEliminableCastPair()
2017 DL.getIntPtrType(CI.getContext(), AS)); in visitIntToPtr()
2040 SrcTy->getWithNewType(DL.getIntPtrType(CI.getContext(), AS)); in visitPtrToInt()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp1550 llvm::Type *MiddleTy = CGF.CGM.getDataLayout().getIntPtrType(DstPT); in EmitScalarConversion()
2516 llvm::Type *MiddleTy = CGF.CGM.getDataLayout().getIntPtrType(DestLLVMTy); in VisitCastExpr()
5427 Src = Builder.CreatePtrToInt(Src, DL.getIntPtrType(SrcTy)); in createCastsForTypeOfSameSize()
5434 Src = Builder.CreateBitCast(Src, DL.getIntPtrType(DstTy)); in createCastsForTypeOfSameSize()
5638 Builder.CreatePtrToInt(BasePtr, DL.getIntPtrType(BasePtr->getType())); in EmitGEPOffsetInBytes()
5640 Builder.CreatePtrToInt(GEPVal, DL.getIntPtrType(GEPVal->getType())); in EmitGEPOffsetInBytes()
5650 auto *IntPtrTy = DL.getIntPtrType(GEP->getPointerOperandType()); in EmitGEPOffsetInBytes()
5745 llvm::Type *IntPtrTy = DL.getIntPtrType(PtrTy); in EmitCheckedInBoundsGEP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp200 IntptrTy = DL.getIntPtrType(Ctx); in initialize()

123