Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/llvm/lib/Target/
H A DTarget.cpp86 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()))); in LLVMIntPtrType()
90 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()), AS)); in LLVMIntPtrTypeForAS()
94 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C))); in LLVMIntPtrTypeInContext()
98 return wrap(unwrap(TD)->getIntPtrType(*unwrap(C), AS)); in LLVMIntPtrTypeForASInContext()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp1447 return emitLibCall(LibFunc_strlen, DL.getIntPtrType(Context), in emitStrLen()
1470 {B.getInt8PtrTy(), B.getInt8PtrTy(), DL.getIntPtrType(Context)}, in emitStrNCmp()
1515 B.getInt8PtrTy(), B.getInt8PtrTy(), DL.getIntPtrType(Context), in emitMemCpyChk()
1516 DL.getIntPtrType(Context)); in emitMemCpyChk()
1531 {B.getInt8PtrTy(), B.getInt8PtrTy(), DL.getIntPtrType(Context)}, in emitMemPCpy()
1540 {B.getInt8PtrTy(), B.getInt32Ty(), DL.getIntPtrType(Context)}, in emitMemChr()
1549 {B.getInt8PtrTy(), B.getInt32Ty(), DL.getIntPtrType(Context)}, in emitMemRChr()
1558 {B.getInt8PtrTy(), B.getInt8PtrTy(), DL.getIntPtrType(Context)}, in emitMemCmp()
1567 {B.getInt8PtrTy(), B.getInt8PtrTy(), DL.getIntPtrType(Context)}, in emitBCmp()
1848 DL.getIntPtrType(Context), B.getInt8PtrTy(), DL.getIntPtrType(Context), in emitFWrite()
[all …]
H A DVNCoercion.cpp95 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
101 TypeToCastTo = DL.getIntPtrType(TypeToCastTo); in coerceAvailableValueToLoadType()
124 StoredValTy = DL.getIntPtrType(StoredValTy); in coerceAvailableValueToLoadType()
417 Builder.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper()
H A DSimplifyLibCalls.cpp335 ConstantInt::get(DL.getIntPtrType(Src->getContext()), Len + 1)); in emitStrLenMemCpy()
433 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len), B, in optimizeStrChr()
484 Type *IntPtrType = DL.getIntPtrType(CI->getContext()); in optimizeStrRChr()
521 ConstantInt::get(DL.getIntPtrType(CI->getContext()), in optimizeStrCmp()
682 Value *LenV = ConstantInt::get(DL.getIntPtrType(PT), Len); in optimizeStpCpy()
684 B.getInt8Ty(), Dst, ConstantInt::get(DL.getIntPtrType(PT), Len - 1)); in optimizeStpCpy()
2806 ConstantInt::get(DL.getIntPtrType(CI->getContext()), in optimizeSPrintFString()
2844 ConstantInt::get(DL.getIntPtrType(CI->getContext()), SrcLen)); in optimizeSPrintFString()
2942 ConstantInt::get(DL.getIntPtrType(CI->getContext()), in optimizeSnPrintFString()
3026 ConstantInt::get(DL.getIntPtrType(CI->getContext()), in optimizeFPrintFString()
[all …]
H A DRelLookupTableConverter.cpp113 Type *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext()); in createRelLookupTable()
H A DFunctionComparator.cpp427 TyL = DL.getIntPtrType(TyL); in cmpTypes()
429 TyR = DL.getIntPtrType(TyR); in cmpTypes()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp157 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runOnFunction()
196 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType())); in runOnFunction()
H A DIntrinsicLowering.cpp337 Type *IntPtr = DL.getIntPtrType(Context); in LowerIntrinsicCall()
348 Type *IntPtr = DL.getIntPtrType(Context); in LowerIntrinsicCall()
360 Type *IntPtr = DL.getIntPtrType(Op0->getType()); in LowerIntrinsicCall()
H A DLowerEmuTLS.cpp116 IntegerType *WordType = DL.getIntPtrType(C); in addEmuTlsVar()
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreSelectionDAGInfo.cpp29 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemcpy()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonSelectionDAGInfo.cpp36 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemcpy()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDataLayout.h558 IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace = 0) const;
562 Type *getIntPtrType(Type *) const;
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp797 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in canonicalizeArrayIndicesToPointerSize()
848 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToSingleIndexGEPs()
920 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics()
1099 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in splitGEP()
H A DStraightLineStrengthReduce.cpp487 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); in allocateCandidatesAndFindBasisForGEP()
678 Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType()); in rewriteCandidateWithBasis()
/llvm-project-15.0.7/mlir/include/mlir/Conversion/LLVMCommon/
H A DPattern.h52 Type getIntPtrType(unsigned addressSpace = 0) const;
/llvm-project-15.0.7/llvm/bindings/ocaml/target/
H A Dllvm_target.mli79 See the method [llvm::DataLayout::getIntPtrType]. *)
88 See the method [llvm::DataLayout::getIntPtrType]. *)
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp376 Type *VecIntPtrTy = DL->getIntPtrType(GEP->getType()); in determineBaseAndStride()
404 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DInitPreprocessor.cpp980 DefineTypeSizeAndWidth("__INTPTR", TI.getIntPtrType(), TI, Builder); in InitializePredefinedMacros()
1012 DefineType("__INTPTR_TYPE__", TI.getIntPtrType(), Builder); in InitializePredefinedMacros()
1013 DefineFmt("__INTPTR", TI.getIntPtrType(), TI, Builder); in InitializePredefinedMacros()
1028 TI.getTypeWidth(TI.getIntPtrType()) && in InitializePredefinedMacros()
/llvm-project-15.0.7/clang/lib/Basic/Targets/
H A DNVPTX.cpp136 IntPtrType = HostTarget->getIntPtrType(); in NVPTXTargetInfo()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp74 Type *IntTy = DL.getIntPtrType(Ptr->getType()); in getBoundsCheckCond()
/llvm-project-15.0.7/llvm/lib/IR/
H A DDataLayout.cpp842 IntegerType *DataLayout::getIntPtrType(LLVMContext &C, in getIntPtrType() function in DataLayout
847 Type *DataLayout::getIntPtrType(Type *Ty) const { in getIntPtrType() function in DataLayout
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMSelectionDAGInfo.cpp91 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitSpecializedLibcall()
/llvm-project-15.0.7/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()
1237 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands()
1249 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands()
1261 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands()
1275 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands()
1425 CE->getOperand(0), DL.getIntPtrType(CE->getType()), in ConstantFoldCastOperand()
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DPattern.cpp41 Type ConvertToLLVMPattern::getIntPtrType(unsigned addressSpace) const { in getIntPtrType() function in ConvertToLLVMPattern
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp261 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr; in isEliminableCastPair()
263 MidTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(MidTy) : nullptr; in isEliminableCastPair()
265 DstTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(DstTy) : nullptr; in isEliminableCastPair()
2042 DL.getIntPtrType(CI.getContext(), AS)); in visitIntToPtr()
2088 SrcTy->getWithNewType(DL.getIntPtrType(CI.getContext(), AS)); in visitPtrToInt()

1234