| /llvm-project-15.0.7/llvm/lib/Target/ |
| H A D | Target.cpp | 86 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 D | BuildLibCalls.cpp | 1447 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 D | VNCoercion.cpp | 95 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 D | SimplifyLibCalls.cpp | 335 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 D | RelLookupTableConverter.cpp | 113 Type *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext()); in createRelLookupTable()
|
| H A D | FunctionComparator.cpp | 427 TyL = DL.getIntPtrType(TyL); in cmpTypes() 429 TyR = DL.getIntPtrType(TyR); in cmpTypes()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | IndirectBrExpandPass.cpp | 157 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runOnFunction() 196 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType())); in runOnFunction()
|
| H A D | IntrinsicLowering.cpp | 337 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 D | LowerEmuTLS.cpp | 116 IntegerType *WordType = DL.getIntPtrType(C); in addEmuTlsVar()
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreSelectionDAGInfo.cpp | 29 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemcpy()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonSelectionDAGInfo.cpp | 36 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemcpy()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | DataLayout.h | 558 IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace = 0) const; 562 Type *getIntPtrType(Type *) const;
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 797 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 D | StraightLineStrengthReduce.cpp | 487 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 D | Pattern.h | 52 Type getIntPtrType(unsigned addressSpace = 0) const;
|
| /llvm-project-15.0.7/llvm/bindings/ocaml/target/ |
| H A D | llvm_target.mli | 79 See the method [llvm::DataLayout::getIntPtrType]. *) 88 See the method [llvm::DataLayout::getIntPtrType]. *)
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVGatherScatterLowering.cpp | 376 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 D | InitPreprocessor.cpp | 980 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 D | NVPTX.cpp | 136 IntPtrType = HostTarget->getIntPtrType(); in NVPTXTargetInfo()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | BoundsChecking.cpp | 74 Type *IntTy = DL.getIntPtrType(Ptr->getType()); in getBoundsCheckCond()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 842 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 D | ARMSelectionDAGInfo.cpp | 91 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitSpecializedLibcall()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 536 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 D | Pattern.cpp | 41 Type ConvertToLLVMPattern::getIntPtrType(unsigned addressSpace) const { in getIntPtrType() function in ConvertToLLVMPattern
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 261 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()
|