Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp158 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runOnFunction()
197 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()
/openbsd-src/gnu/llvm/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()
420 Builder.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType())); in getStoreValueForLoadHelper()
H A DEntryExitInstrumenter.cpp40 Type *SizeTy = M.getDataLayout().getIntPtrType(C); in insertCall()
H A DSimplifyLibCalls.cpp345 ConstantInt::get(DL.getIntPtrType(Src->getContext()), Len + 1)); in emitStrLenMemCpy()
536 ConstantInt::get(DL.getIntPtrType(CI->getContext()), in optimizeStrCmp()
547 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len2), in optimizeStrCmp()
554 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len1), in optimizeStrCmp()
625 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len2), in optimizeStrNCmp()
633 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len1), in optimizeStrNCmp()
670 ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len)); in optimizeStrCpy()
696 Value *LenV = ConstantInt::get(DL.getIntPtrType(PT), Len); in optimizeStpCpy()
698 B.getInt8Ty(), Dst, ConstantInt::get(DL.getIntPtrType(PT), Len - 1)); in optimizeStpCpy()
771 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.cpp436 TyL = DL.getIntPtrType(TyL); in cmpTypes()
438 TyR = DL.getIntPtrType(TyR); in cmpTypes()
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreSelectionDAGInfo.cpp29 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemcpy()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonSelectionDAGInfo.cpp36 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemcpy()
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp380 Type *VecIntPtrTy = DL->getIntPtrType(GEP->getType()); in determineBaseAndStride()
398 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride()
438 Type *IntPtrTy = DL->getIntPtrType(BasePtr->getType()); in determineBaseAndStride()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DDataLayout.h561 IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace = 0) const;
565 Type *getIntPtrType(Type *) const;
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp797 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in canonicalizeArrayIndicesToPointerSize()
852 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToSingleIndexGEPs()
924 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics()
1107 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()
H A DNaryReassociate.cpp452 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in tryReassociateGEPAtIndex()
/openbsd-src/gnu/llvm/llvm/bindings/ocaml/target/
H A Dllvm_target.mli79 See the method [llvm::DataLayout::getIntPtrType]. *)
88 See the method [llvm::DataLayout::getIntPtrType]. *)
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DInitPreprocessor.cpp993 DefineTypeSizeAndWidth("__INTPTR", TI.getIntPtrType(), TI, Builder); in InitializePredefinedMacros()
1027 DefineType("__INTPTR_TYPE__", TI.getIntPtrType(), Builder); in InitializePredefinedMacros()
1028 DefineFmt("__INTPTR", TI.getIntPtrType(), TI, Builder); in InitializePredefinedMacros()
1043 TI.getTypeWidth(TI.getIntPtrType()) && in InitializePredefinedMacros()
/openbsd-src/gnu/llvm/clang/lib/Basic/Targets/
H A DNVPTX.cpp123 IntPtrType = HostTarget->getIntPtrType(); in NVPTXTargetInfo()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp74 Type *IntTy = DL.getIntPtrType(Ptr->getType()); in getBoundsCheckCond()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DDataLayout.cpp849 IntegerType *DataLayout::getIntPtrType(LLVMContext &C, in getIntPtrType() function in DataLayout
854 Type *DataLayout::getIntPtrType(Type *Ty) const { in getIntPtrType() function in DataLayout
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMSelectionDAGInfo.cpp91 Entry.Ty = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitSpecializedLibcall()
/openbsd-src/gnu/llvm/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()
1236 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands()
1248 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands()
1260 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands()
1274 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands()
1424 CE->getOperand(0), DL.getIntPtrType(CE->getType()), in ConstantFoldCastOperand()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp274 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr; in isEliminableCastPair()
276 MidTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(MidTy) : nullptr; in isEliminableCastPair()
278 DstTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(DstTy) : nullptr; in isEliminableCastPair()
2041 DL.getIntPtrType(CI.getContext(), AS)); in visitIntToPtr()
2087 SrcTy->getWithNewType(DL.getIntPtrType(CI.getContext(), AS)); in visitPtrToInt()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DLoadStoreOpt.cpp642 DL.getIntPtrType(MF->getFunction().getContext(), AddrSpace); in initializeStoreMergeTargetInfo()

123