Home
last modified time | relevance | path

Searched refs:PtrTy (Results 1 – 25 of 119) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp42 llvm::PointerType *PtrTy; member in __anon2162a9e90111::CGNVCUDARuntime
229 PtrTy = CGM.UnqualPtrTy; in CGNVCUDARuntime()
234 llvm::Type *Params[] = {PtrTy, SizeTy, SizeTy}; in getSetupArgumentFn()
244 llvm::FunctionType::get(IntTy, PtrTy, false), "hipLaunchByPtr"); in getLaunchFn()
247 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, PtrTy, false), in getLaunchFn()
252 return llvm::FunctionType::get(VoidTy, PtrTy, false); in getRegisterGlobalsFnTy()
256 return llvm::FunctionType::get(VoidTy, PtrTy, false); in getCallbackFnTy()
260 llvm::Type *Params[] = {llvm::PointerType::getUnqual(Context), PtrTy, PtrTy, in getRegisterLinkedBinaryFnTy()
324 PtrTy, CharUnits::fromQuantity(16), "kernel_args", in emitDeviceStubBodyNew()
329 llvm::Value *VoidVarPtr = CGF.Builder.CreatePointerCast(VarPtr, PtrTy); in emitDeviceStubBodyNew()
[all …]
H A DCGObjCGNU.cpp144 llvm::PointerType *PtrTy; member in __anonbab9bb100111::CGObjCGNU
820 SlotStructTy = llvm::StructType::get(PtrTy, PtrTy, PtrTy, IntTy, IMPTy); in CGObjCGNUstep()
832 EnterCatchFn.init(&CGM, "__cxa_begin_catch", PtrTy, PtrTy); in CGObjCGNUstep()
836 ExceptionReThrowFn.init(&CGM, "__cxa_rethrow", PtrTy); in CGObjCGNUstep()
842 EnterCatchFn.init(&CGM, "__cxa_begin_catch", PtrTy, PtrTy); in CGObjCGNUstep()
847 PtrTy); in CGObjCGNUstep()
850 EnterCatchFn.init(&CGM, "objc_begin_catch", IdTy, PtrTy); in CGObjCGNUstep()
854 ExceptionReThrowFn.init(&CGM, "objc_exception_rethrow", VoidTy, PtrTy); in CGObjCGNUstep()
866 CxxAtomicObjectSetFn.init(&CGM, "objc_setCppObjectAtomic", VoidTy, PtrTy, in CGObjCGNUstep()
867 PtrTy, PtrTy); in CGObjCGNUstep()
[all …]
H A DPatternInit.cpp45 auto *PtrTy = cast<llvm::PointerType>(Ty->getScalarType()); in initializationPatternFor() local
47 CGM.getDataLayout().getPointerSizeInBits(PtrTy->getAddressSpace()); in initializationPatternFor()
52 return llvm::ConstantExpr::getIntToPtr(Int, PtrTy); in initializationPatternFor()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCtorDtorLowering.cpp79 Type *PtrTy = IRB.getPtrTy(AMDGPUAS::GLOBAL_ADDRESS); in createInitOrFiniCalls()
83 ArrayType::get(PtrTy, 0), [&]() { in createInitOrFiniCalls()
85 M, ArrayType::get(PtrTy, 0), in createInitOrFiniCalls()
94 ArrayType::get(PtrTy, 0), [&]() { in createInitOrFiniCalls()
96 M, ArrayType::get(PtrTy, 0), in createInitOrFiniCalls()
130 auto *CallBackPHI = IRB.CreatePHI(PtrTy, 2, "ptr"); in createInitOrFiniKernel()
135 IRB.CreateConstGEP1_64(PtrTy, CallBackPHI, IsCtor ? 1 : -1, "next"); in lowerCtorsAndDtors()
70 Type *PtrTy = IRB.getPtrTy(AMDGPUAS::GLOBAL_ADDRESS); createInitOrFiniCalls() local
H A DAMDGPUMachineFunction.cpp34 if (auto PtrTy = dyn_cast<PointerType>(ArgTy)) { in hasLDSKernelArgument() local
35 if (PtrTy->getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS) in hasLDSKernelArgument()
H A DAMDGPUCallLowering.cpp198 const LLT PtrTy = LLT::pointer(AMDGPUAS::PRIVATE_ADDRESS, 32); in getStackAddress() local
204 auto FIReg = MIRBuilder.buildFrameIndex(PtrTy, FI); in getStackAddress()
215 SPReg = MIRBuilder.buildCopy(PtrTy, in getStackAddress()
221 SPReg = MIRBuilder.buildInstr(AMDGPU::G_AMDGPU_WAVE_ADDRESS, {PtrTy}, in getStackAddress()
228 auto AddrReg = MIRBuilder.buildPtrAdd(PtrTy, SPReg, OffsetReg); in getStackAddress()
422 LLT PtrTy = LLT::pointer(AMDGPUAS::CONSTANT_ADDRESS, 64); in lowerParameter() local
430 Register PtrReg = B.getMRI()->createGenericVirtualRegister(PtrTy); in lowerParameter()
436 LLT PtrTy = LLT::pointer(SplitArg.Flags[0].getPointerAddrSpace(), in lowerParameter() local
438 ArgTy = ArgTy.isVector() ? LLT::vector(ArgTy.getElementCount(), PtrTy) in lowerParameter()
439 : PtrTy; in lowerParameter()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp268 Type *PtrTy, *IntptrTy, *Int64Ty, *Int32Ty, *Int16Ty, *Int8Ty, *Int1Ty; member in __anon0eb498d60111::ModuleSanitizerCoverage
350 M, CtorName, InitFunctionName, {PtrTy, PtrTy}, {SecStart, SecEnd}); in CreateInitCallsForSections()
393 PtrTy = PointerType::getUnqual(*C); in instrumentModule()
434 SanCovLoadFunction[0] = M.getOrInsertFunction(SanCovLoad1, VoidTy, PtrTy); in instrumentModule()
436 M.getOrInsertFunction(SanCovLoad2, VoidTy, PtrTy); in instrumentModule()
438 M.getOrInsertFunction(SanCovLoad4, VoidTy, PtrTy); in instrumentModule()
440 M.getOrInsertFunction(SanCovLoad8, VoidTy, PtrTy); in instrumentModule()
442 M.getOrInsertFunction(SanCovLoad16, VoidTy, PtrTy); in instrumentModule()
445 M.getOrInsertFunction(SanCovStore1, VoidTy, PtrTy); in instrumentModule()
447 M.getOrInsertFunction(SanCovStore2, VoidTy, PtrTy); in instrumentModule()
[all …]
H A DHWAddressSanitizer.cpp411 PointerType *PtrTy = PointerType::getUnqual(M.getContext()); member in __anon1b7bdbef0111::HWAddressSanitizer
682 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy, Int8Ty}, false); in initializeCallbacks()
684 FunctionType::get(PtrTy, {PtrTy, Int32Ty, IntptrTy, Int8Ty}, false); in initializeCallbacks()
691 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy}, false); in initializeCallbacks()
693 FunctionType::get(PtrTy, {PtrTy, Int32Ty, IntptrTy}, false); in initializeCallbacks()
727 PtrTy, Int8Ty, IntptrTy); in initializeCallbacks()
747 InlineAsm::get(FunctionType::get(PtrTy, {Val->getType()}, false), in getOpaqueNoopCast()
761 ConstantInt::get(IntptrTy, Mapping.Offset), PtrTy)); in getShadowNonTls()
768 kHwasanShadowMemoryDynamicAddress, PtrTy); in getShadowNonTls()
769 return IRB.CreateLoad(PtrTy, GlobalDynamicAddress); in getShadowNonTls()
[all …]
H A DMemProfiler.cpp223 PtrTy = PointerType::getUnqual(*C); in MemProfiler()
251 PointerType *PtrTy; member in __anon3967f7130111::MemProfiler
389 Type *PtrTy = cast<PointerType>(Access.Addr->getType()->getScalarType()); in isInterestingMemoryAccess() local
390 if (PtrTy->getPointerAddressSpace() != 0) in isInterestingMemoryAccess()
575 ClMemoryAccessCallbackPrefix + "memmove", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
577 PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
579 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "memset", PtrTy, in initializeCallbacks()
580 PtrTy, IRB.getInt32Ty(), IntptrTy); in initializeCallbacks()
H A DSanitizerBinaryMetadata.cpp203 auto *PtrTy = IRB.getPtrTy(); in run() local
205 const std::array<Type *, 3> InitTypes = {Int32Ty, PtrTy, PtrTy}; in run()
211 getSectionMarker(getSectionStart(MI->SectionSuffix), PtrTy), in run()
212 getSectionMarker(getSectionEnd(MI->SectionSuffix), PtrTy), in run()
H A DThreadSanitizer.cpp264 Type *PtrTy = PointerType::get(Ctx, 0); in initialize() local
270 Ty, PtrTy, OrdTy); in initialize()
280 IRB.getVoidTy(), PtrTy, Ty, OrdTy); in initialize()
307 Ty, PtrTy, Ty, OrdTy); in initialize()
316 Ty, PtrTy, Ty, Ty, OrdTy, OrdTy); in initialize()
371 Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType()); in shouldInstrumentReadWriteFromAddress() local
372 if (PtrTy->getPointerAddressSpace() != 0) in shouldInstrumentReadWriteFromAddress()
H A DAddressSanitizer.cpp740 PtrTy = PointerType::getUnqual(*C); in AddressSanitizer()
839 PointerType *PtrTy; member
900 PtrTy = PointerType::getUnqual(*C); in ModuleAddressSanitizer()
958 PointerType *PtrTy; member in __anon4b8f1cd00211::ModuleAddressSanitizer
1307 Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType()); in isUnsupportedAMDGPUAddrspace() local
1308 unsigned int AddrSpace = PtrTy->getPointerAddressSpace(); in isUnsupportedAMDGPUAddrspace()
1337 {IRB.CreateAddrSpaceCast(MI->getOperand(0), PtrTy), in instrumentMemIntrinsic()
1338 IRB.CreateAddrSpaceCast(MI->getOperand(1), PtrTy), in instrumentMemIntrinsic()
1343 {IRB.CreateAddrSpaceCast(MI->getOperand(0), PtrTy), in instrumentMemIntrinsic()
1378 Type *PtrTy = cast<PointerType>(Ptr->getType()->getScalarType()); in ignoreAccess() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp91 Type *PtrTy; member in __anon391133dc0111::AArch64Arm64ECCallLowering
134 Arm64ArgTypes.push_back(PtrTy); in getThunkType()
135 X64ArgTypes.push_back(PtrTy); in getThunkType()
186 Arm64ArgTypes.push_back(PtrTy); in getThunkArgTypes()
187 X64ArgTypes.push_back(PtrTy); in getThunkArgTypes()
320 return ThunkArgInfo{Arm64Ty, PtrTy, in canonicalizeThunkType()
425 M->getOrInsertGlobal("__os_arm64x_dispatch_call_no_redirect", PtrTy); in buildExitThunk()
426 Value *Callee = IRB.CreateLoad(PtrTy, CalleePtr); in buildExitThunk()
468 Args.push_back(IRB.CreateLoad(IntTy, IRB.CreateBitCast(Mem, PtrTy))); in buildExitThunk()
480 Callee = IRB.CreateBitCast(Callee, PtrTy); in buildExitThunk()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRuntimeLibcallSignatures.cpp556 wasm::ValType PtrTy = in getLibcallSignature() local
673 Params.push_back(PtrTy); in getLibcallSignature()
674 Params.push_back(PtrTy); in getLibcallSignature()
678 Params.push_back(PtrTy); in getLibcallSignature()
679 Params.push_back(PtrTy); in getLibcallSignature()
705 Params.push_back(PtrTy); in getLibcallSignature()
716 Params.push_back(PtrTy); in getLibcallSignature()
723 Params.push_back(PtrTy); in getLibcallSignature()
732 Params.push_back(PtrTy); in getLibcallSignature()
741 Params.push_back(PtrTy); in getLibcallSignature()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpTableToSwitch.cpp46 PointerType *PtrTy) { in parseJumpTable() argument
83 ConstantFoldLoadFromConst(GV->getInitializer(), PtrTy, Offset, DL); in parseJumpTable()
168 auto *PtrTy = dyn_cast<PointerType>(L->getType()); in run() local
169 assert(PtrTy && "call operand must be a pointer"); in run()
170 std::optional<JumpTableTy> JumpTable = parseJumpTable(GEP, PtrTy); in run()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp532 auto *PtrTy = PointerType::getUnqual(C); in createRegisterFatbinFunction() local
535 auto *RegFatTy = FunctionType::get(PtrTy, PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction()
540 FunctionType::get(Type::getVoidTy(C), PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction()
545 FunctionType::get(Type::getVoidTy(C), PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction()
551 FunctionType::get(Type::getInt32Ty(C), PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction()
555 M, PtrTy, false, llvm::GlobalValue::InternalLinkage, in createRegisterFatbinFunction()
556 llvm::ConstantPointerNull::get(PtrTy), in createRegisterFatbinFunction()
563 ConstantExpr::getPointerBitCastOrAddrSpaceCast(FatbinDesc, PtrTy)); in createRegisterFatbinFunction()
566 Align(M.getDataLayout().getPointerTypeSize(PtrTy))); in createRegisterFatbinFunction()
581 PtrTy, BinaryHandleGlobal, in createRegisterFatbinFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsLegalizerInfo.cpp24 LLT PtrTy; member
51 if (Val.PtrTy != Query.Types[1]) in CheckTy0Ty1MemSizeAlign()
367 LLT PtrTy = MRI.getType(BaseAddr); in legalizeCustom() local
381 auto Addr = MIRBuilder.buildPtrAdd(PtrTy, BaseAddr, C_P2HalfMemSize); in legalizeCustom()
410 auto Addr = MIRBuilder.buildPtrAdd(PtrTy, BaseAddr, C_P2HalfMemSize); in legalizeCustom()
515 LLT PtrTy = LLT::pointer(0, 32); in legalizeIntrinsic() local
517 MIRBuilder.buildLoad(PtrTy, MI.getOperand(2), in legalizeIntrinsic()
519 MPO, MachineMemOperand::MOLoad, PtrTy, Align(4))); in legalizeIntrinsic()
522 MPO, MachineMemOperand::MOStore, PtrTy, Align(4))); in legalizeIntrinsic()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallPtrSet.h269 template <typename PtrTy>
273 using PtrTraits = PointerLikeTypeTraits<PtrTy>;
276 using value_type = PtrTy;
277 using reference = PtrTy;
278 using pointer = PtrTy;
288 const PtrTy operator*() const {
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp227 PointerType *PtrTy = dyn_cast<PointerType>(Arg.Ty->getScalarType()); in setArgFlags() local
228 if (PtrTy) { in setArgFlags()
230 Flags.setPointerAddrSpace(PtrTy->getPointerAddressSpace()); in setArgFlags()
923 const LLT PtrTy = MRI.getType(StackAddr); in handleAssignments() local
924 SrcMPO = MachinePointerInfo(PtrTy.getAddressSpace()); in handleAssignments()
1058 Type *PtrTy = PointerType::get(F.getReturnType(), AS); in insertSRetIncomingArgument() local
1061 ComputeValueVTs(*TLI, DL, PtrTy, ValueVTs); in insertSRetIncomingArgument()
1066 ArgInfo DemoteArg(DemoteReg, ValueVTs[0].getTypeForEVT(PtrTy->getContext()), in insertSRetIncomingArgument()
1255 LLT PtrTy = LLT::pointer(Flags.getPointerAddrSpace(), in getStackValueStoreType() local
1258 return LLT::vector(ValTy.getElementCount(), PtrTy); in getStackValueStoreType()
[all …]
H A DLoadStoreOpt.cpp310 LLT PtrTy = MRI->getType(StoresToMerge[0]->getPointerReg()); in mergeStores() local
311 unsigned AS = PtrTy.getAddressSpace(); in mergeStores()
519 LLT PtrTy = MRI->getType(StoreMI.getPointerReg()); in addStoreToCandidate() local
563 PtrTy.getAddressSpace()) in addStoreToCandidate()
960 LLT PtrTy = getLLTForType(*IRPtrTy, DL); in initializeStoreMergeTargetInfo() local
967 SmallVector<LLT> StoreTys({Ty, PtrTy}); in initializeStoreMergeTargetInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DAliasAnalysis.h206 using PtrTy = PointerIntPair<const Value *, 1, bool>; member
207 PtrTy Ptr;
210 AACacheLoc(PtrTy Ptr, LocationSize Size) : Ptr(Ptr), Size(Size) {} in AACacheLoc()
217 return {DenseMapInfo<AACacheLoc::PtrTy>::getEmptyKey(),
221 return {DenseMapInfo<AACacheLoc::PtrTy>::getTombstoneKey(),
225 return DenseMapInfo<AACacheLoc::PtrTy>::getHashValue(Val.Ptr) ^
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp135 Type *PtrTy = IRB.getPtrTy(llvm::ADDRESS_SPACE_GLOBAL); in createInitOrFiniCalls() local
192 auto *CallBackPHI = IRB.CreatePHI(PtrTy, 2, "ptr"); in createInitOrFiniCalls()
197 IRB.CreateConstGEP1_64(PtrTy, CallBackPHI, IsCtor ? 1 : -1, "next"); in createInitOrFiniCalls()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp335 if (auto *PtrTy = dyn_cast<PointerType>(Ty)) { in deduceElementTypeByValueDeep() local
338 Ty = getTypedPointerWrapper(NestedTy, PtrTy->getAddressSpace()); in deduceElementTypeByValueDeep()
526 if (auto *PtrTy = dyn_cast<PointerType>(OpTy)) { in deduceNestedTypeHelper() local
529 Ty = TypedPointerType::get(NestedTy, PtrTy->getAddressSpace()); in deduceNestedTypeHelper()
547 if (auto *PtrTy = dyn_cast<PointerType>(OpTy)) { in deduceNestedTypeHelper() local
550 Ty = TypedPointerType::get(NestedTy, PtrTy->getAddressSpace()); in deduceNestedTypeHelper()
565 if (auto *PtrTy = dyn_cast<PointerType>(OpTy)) { in deduceNestedTypeHelper() local
568 Ty = getTypedPointerWrapper(NestedTy, PtrTy->getAddressSpace()); in deduceNestedTypeHelper()
601 auto *PtrTy = dyn_cast<PointerType>(I->getType()); in getAtomicElemTy() local
602 if (!PtrTy) in getAtomicElemTy()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64LegalizerInfo.cpp477 LLT PtrTy = Query.Types[1]; in AArch64LegalizerInfo() local
481 if (PtrTy != p0) in AArch64LegalizerInfo()
496 LLT PtrTy = Q.Types[1]; in AArch64LegalizerInfo() local
498 if (PtrTy != p0) in AArch64LegalizerInfo()
1830 LLT PtrTy = MRI.getType(ListPtr); in legalizeVaArg() local
1831 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); in legalizeVaArg()
1833 const unsigned PtrSize = PtrTy.getSizeInBits() / 8; in legalizeVaArg()
1836 PtrTy, ListPtr, in legalizeVaArg()
1838 PtrTy, PtrAlign)); in legalizeVaArg()
1845 auto ListTmp = MIRBuilder.buildPtrAdd(PtrTy, List, AlignMinus1.getReg(0)); in legalizeVaArg()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp582 auto *PtrTy = cast<PointerType>(Ptr->getType()); in CreateMaskedLoad() local
587 Type *OverloadedTypes[] = { Ty, PtrTy }; in CreateMaskedLoad()
601 auto *PtrTy = cast<PointerType>(Ptr->getType()); in CreateMaskedStore() local
605 Type *OverloadedTypes[] = { DataTy, PtrTy }; in CreateMaskedStore()
899 Type *PtrTy = DerivedPtr->getType(); in CreateGCGetPointerBase() local
901 M, Intrinsic::experimental_gc_get_pointer_base, {PtrTy, PtrTy}); in CreateGCGetPointerBase()
908 Type *PtrTy = DerivedPtr->getType(); in CreateGCGetPointerOffset() local
910 M, Intrinsic::experimental_gc_get_pointer_offset, {PtrTy}); in CreateGCGetPointerOffset()
1314 auto *PtrTy = cast<PointerType>(PtrValue->getType()); in CreateAlignmentAssumption() local
1315 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); in CreateAlignmentAssumption()

12345