| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCUDANV.cpp | 47 llvm::PointerType *PtrTy; member in __anon2162a9e90111::CGNVCUDARuntime 233 PtrTy = CGM.UnqualPtrTy; in CGNVCUDARuntime() 245 llvm::Type *Params[] = {PtrTy, SizeTy, SizeTy}; in getSetupArgumentFn() 255 llvm::FunctionType::get(IntTy, PtrTy, false), "hipLaunchByPtr"); in getLaunchFn() 258 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, PtrTy, false), in getLaunchFn() 263 return llvm::FunctionType::get(VoidTy, PtrTy, false); in getRegisterGlobalsFnTy() 267 return llvm::FunctionType::get(VoidTy, PtrTy, false); in getCallbackFnTy() 271 llvm::Type *Params[] = {llvm::PointerType::getUnqual(Context), PtrTy, PtrTy, in getRegisterLinkedBinaryFnTy() 342 KernelLaunchParamsTypes.push_back(PtrTy); in prepareKernelArgsLLVMOffload() 343 KernelLaunchParamsTypes.push_back(PtrTy); in prepareKernelArgsLLVMOffload() [all …]
|
| H A D | CGObjCGNU.cpp | 143 llvm::PointerType *PtrTy; member in __anonbab9bb100111::CGObjCGNU 821 SlotStructTy = llvm::StructType::get(PtrTy, PtrTy, PtrTy, IntTy, IMPTy); in CGObjCGNUstep() 822 SlotTy = PtrTy; in CGObjCGNUstep() 833 EnterCatchFn.init(&CGM, "__cxa_begin_catch", PtrTy, PtrTy); in CGObjCGNUstep() 837 ExceptionReThrowFn.init(&CGM, "__cxa_rethrow", PtrTy); in CGObjCGNUstep() 843 EnterCatchFn.init(&CGM, "__cxa_begin_catch", PtrTy, PtrTy); in CGObjCGNUstep() 848 PtrTy); in CGObjCGNUstep() 851 EnterCatchFn.init(&CGM, "objc_begin_catch", IdTy, PtrTy); in CGObjCGNUstep() 855 ExceptionReThrowFn.init(&CGM, "objc_exception_rethrow", VoidTy, PtrTy); in CGObjCGNUstep() 867 CxxAtomicObjectSetFn.init(&CGM, "objc_setCppObjectAtomic", VoidTy, PtrTy, in CGObjCGNUstep() [all …]
|
| H A D | PatternInit.cpp | 45 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/WebAssembly/ |
| H A D | WebAssemblyRuntimeLibcallSignatures.cpp | 556 wasm::ValType PtrTy = in getLibcallSignature() local 636 Params.push_back(PtrTy); in getLibcallSignature() 661 Params.push_back(PtrTy); in getLibcallSignature() 683 Params.push_back(PtrTy); in getLibcallSignature() 684 Params.push_back(PtrTy); in getLibcallSignature() 688 Params.push_back(PtrTy); in getLibcallSignature() 689 Params.push_back(PtrTy); in getLibcallSignature() 715 Params.push_back(PtrTy); in getLibcallSignature() 726 Params.push_back(PtrTy); in getLibcallSignature() 733 Params.push_back(PtrTy); in getLibcallSignature() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | SanitizerCoverage.cpp | 300 Type *PtrTy, *IntptrTy, *Int64Ty, *Int32Ty, *Int16Ty, *Int8Ty, *Int1Ty; member in __anon0eb498d60111::ModuleSanitizerCoverage 381 M, CtorName, InitFunctionName, {PtrTy, PtrTy}, {SecStart, SecEnd}); in CreateInitCallsForSections() 423 PtrTy = PointerType::getUnqual(*C); in instrumentModule() 464 SanCovLoadFunction[0] = M.getOrInsertFunction(SanCovLoad1, VoidTy, PtrTy); in instrumentModule() 465 SanCovLoadFunction[1] = M.getOrInsertFunction(SanCovLoad2, VoidTy, PtrTy); in instrumentModule() 466 SanCovLoadFunction[2] = M.getOrInsertFunction(SanCovLoad4, VoidTy, PtrTy); in instrumentModule() 467 SanCovLoadFunction[3] = M.getOrInsertFunction(SanCovLoad8, VoidTy, PtrTy); in instrumentModule() 468 SanCovLoadFunction[4] = M.getOrInsertFunction(SanCovLoad16, VoidTy, PtrTy); in instrumentModule() 470 SanCovStoreFunction[0] = M.getOrInsertFunction(SanCovStore1, VoidTy, PtrTy); in instrumentModule() 471 SanCovStoreFunction[1] = M.getOrInsertFunction(SanCovStore2, VoidTy, PtrTy); in instrumentModule() [all …]
|
| H A D | MemProfInstrumentation.cpp | 187 PtrTy = PointerType::getUnqual(*C); in MemProfiler() 215 PointerType *PtrTy; member in __anonef5aa81b0111::MemProfiler 351 Type *PtrTy = cast<PointerType>(Access.Addr->getType()->getScalarType()); in isInterestingMemoryAccess() local 352 if (PtrTy->getPointerAddressSpace() != 0) in isInterestingMemoryAccess() 560 ClMemoryAccessCallbackPrefix + "memmove", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks() 562 PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks() 564 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "memset", PtrTy, in initializeCallbacks() 565 PtrTy, IRB.getInt32Ty(), IntptrTy); in initializeCallbacks()
|
| H A D | HWAddressSanitizer.cpp | 441 PointerType *PtrTy = PointerType::getUnqual(M.getContext()); member in __anon1b7bdbef0211::HWAddressSanitizer 719 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy, Int8Ty}, false); in initializeCallbacks() 721 FunctionType::get(PtrTy, {PtrTy, Int32Ty, IntptrTy, Int8Ty}, false); in initializeCallbacks() 728 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy}, false); in initializeCallbacks() 730 FunctionType::get(PtrTy, {PtrTy, Int32Ty, IntptrTy}, false); in initializeCallbacks() 764 PtrTy, Int8Ty, IntptrTy); in initializeCallbacks() 784 InlineAsm::get(FunctionType::get(PtrTy, {Val->getType()}, false), in getOpaqueNoopCast() 798 ConstantInt::get(IntptrTy, Mapping.offset()), PtrTy)); in getShadowNonTls() 806 kHwasanShadowMemoryDynamicAddress, PtrTy); in getShadowNonTls() 807 return IRB.CreateLoad(PtrTy, GlobalDynamicAddress); in getShadowNonTls() [all …]
|
| H A D | SanitizerBinaryMetadata.cpp | 201 auto *PtrTy = IRB.getPtrTy(); in run() local 203 const std::array<Type *, 3> InitTypes = {Int32Ty, PtrTy, PtrTy}; in run() 209 getSectionMarker(getSectionStart(MI->SectionSuffix), PtrTy), in run() 210 getSectionMarker(getSectionEnd(MI->SectionSuffix), PtrTy), in run()
|
| H A D | MemorySanitizer.cpp | 638 PointerType *PtrTy; ///< Integer type with the size of a ptr in default AS. member in __anonb346f5430211::MemorySanitizer 827 return M.getOrInsertFunction(Name, Type::getVoidTy(*C), PtrTy, in getOrInsertMsanMetadataFunction() 862 M.getOrInsertFunction("__msan_get_context_state", PtrTy); in createKernelApi() 864 MsanMetadata = StructType::get(PtrTy, PtrTy); in createKernelApi() 872 getOrInsertMsanMetadataFunction(M, name_load, PtrTy); in createKernelApi() 874 getOrInsertMsanMetadataFunction(M, name_store, PtrTy); in createKernelApi() 878 M, "__msan_metadata_ptr_for_load_n", PtrTy, IntptrTy); in createKernelApi() 880 M, "__msan_metadata_ptr_for_store_n", PtrTy, IntptrTy); in createKernelApi() 884 "__msan_poison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy); in createKernelApi() 886 "__msan_unpoison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy); in createKernelApi() [all …]
|
| H A D | NumericalStabilitySanitizer.cpp | 507 Type *PtrTy = PointerType::getUnqual(Ctx); in NsanMemOpFn() local 517 M.getOrInsertFunction(Fallback, Attr, VoidTy, PtrTy, PtrTy, IntptrTy)); in NsanMemOpFn() 518 SizedFnTy = FunctionType::get(VoidTy, {PtrTy, PtrTy}, false); in NsanMemOpFn() 521 M.getOrInsertFunction(Fallback, Attr, VoidTy, PtrTy, IntptrTy)); in NsanMemOpFn() 522 SizedFnTy = FunctionType::get(VoidTy, {PtrTy}, false); in NsanMemOpFn() 662 Type *PtrTy = PointerType::getUnqual(Context); local 679 GetterPrefix + "_store", Attr, PtrTy, PtrTy, IntptrTy); 681 GetterPrefix + "_load", Attr, PtrTy, PtrTy, IntptrTy); 698 "__nsan_internal_get_raw_shadow_type_ptr", Attr, PtrTy, PtrTy); 700 "__nsan_internal_get_raw_shadow_ptr", Attr, PtrTy, PtrTy);
|
| H A D | ThreadSanitizer.cpp | 266 Type *PtrTy = PointerType::get(Ctx, 0); in initialize() local 272 Ty, PtrTy, OrdTy); in initialize() 282 IRB.getVoidTy(), PtrTy, Ty, OrdTy); in initialize() 309 Ty, PtrTy, Ty, OrdTy); in initialize() 318 Ty, PtrTy, Ty, Ty, OrdTy, OrdTy); in initialize() 373 Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType()); in shouldInstrumentReadWriteFromAddress() local 374 if (PtrTy->getPointerAddressSpace() != 0) in shouldInstrumentReadWriteFromAddress()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInterleavedAccess.cpp | 97 auto *PtrTy = LI->getPointerOperandType(); in lowerInterleavedLoad() local 124 FixedVlsegIntrIds[Factor - 2], {VTy, PtrTy, XLenTy}, in lowerInterleavedLoad() 177 auto *PtrTy = SI->getPointerOperandType(); in lowerInterleavedStore() local 207 SI->getModule(), FixedVssegIntrIds[Factor - 2], {VTy, PtrTy, XLenTy}); in lowerInterleavedStore() 255 Type *PtrTy = LI->getPointerOperandType(); in lowerDeinterleaveIntrinsicToLoad() local 262 {ResVTy, PtrTy, XLenTy}, in lowerDeinterleaveIntrinsicToLoad() 282 IntrIds[Factor - 2], {VecTupTy, PtrTy, XLenTy}, in lowerDeinterleaveIntrinsicToLoad() 319 auto *PtrTy = SI->getPointerOperandType(); in lowerInterleaveIntrinsicToStore() local 330 SI->getModule(), FixedVssegIntrIds[Factor - 2], {InVTy, PtrTy, XLenTy}); in lowerInterleaveIntrinsicToStore() 354 SI->getModule(), IntrIds[Factor - 2], {VecTupTy, PtrTy, XLenTy}); in lowerInterleaveIntrinsicToStore() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64Arm64ECCallLowering.cpp | 86 Type *PtrTy; member in __anon391133dc0111::AArch64Arm64ECCallLowering 129 Arm64ArgTypes.push_back(PtrTy); in getThunkType() 130 X64ArgTypes.push_back(PtrTy); in getThunkType() 181 Arm64ArgTypes.push_back(PtrTy); in getThunkArgTypes() 182 X64ArgTypes.push_back(PtrTy); in getThunkArgTypes() 315 return ThunkArgInfo{Arm64Ty, PtrTy, in canonicalizeThunkType() 420 M->getOrInsertGlobal("__os_arm64x_dispatch_call_no_redirect", PtrTy); in buildExitThunk() 421 Value *Callee = IRB.CreateLoad(PtrTy, CalleePtr); in buildExitThunk() 641 LoadInst *GuardCheckLoad = B.CreateLoad(PtrTy, GuardFn); in buildGuestExitThunk() 696 LoadInst *DispatchLoad = B.CreateLoad(PtrTy, DispatchFnGlobal); in buildPatchableThunk() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | JumpTableToSwitch.cpp | 46 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/Target/AMDGPU/ |
| H A D | AMDGPUCtorDtorLowering.cpp | 79 Type *PtrTy = IRB.getPtrTy(AMDGPUAS::GLOBAL_ADDRESS); in createInitOrFiniCalls() local 80 ArrayType *PtrArrayTy = ArrayType::get(PtrTy, 0); in createInitOrFiniCalls() 133 auto *CallBackPHI = IRB.CreatePHI(PtrTy, 2, "ptr"); in createInitOrFiniCalls() 137 IRB.CreateConstGEP1_64(PtrTy, CallBackPHI, IsCtor ? 1 : -1, "next"); in createInitOrFiniCalls()
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/ |
| H A D | OffloadWrapper.cpp | 566 auto *PtrTy = PointerType::getUnqual(C); in createRegisterFatbinFunction() local 569 auto *RegFatTy = FunctionType::get(PtrTy, PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction() 574 FunctionType::get(Type::getVoidTy(C), PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction() 579 FunctionType::get(Type::getVoidTy(C), PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction() 585 FunctionType::get(Type::getInt32Ty(C), PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction() 589 M, PtrTy, false, llvm::GlobalValue::InternalLinkage, in createRegisterFatbinFunction() 590 llvm::ConstantPointerNull::get(PtrTy), in createRegisterFatbinFunction() 597 ConstantExpr::getPointerBitCastOrAddrSpaceCast(FatbinDesc, PtrTy)); in createRegisterFatbinFunction() 600 Align(M.getDataLayout().getPointerTypeSize(PtrTy))); in createRegisterFatbinFunction() 615 PtrTy, BinaryHandleGlobal, in createRegisterFatbinFunction() [all …]
|
| H A D | Utility.cpp | 45 Type *PtrTy = PointerType::getUnqual(M.getContext()); in getOffloadingEntryInitializer() local 75 ConstantExpr::getPointerBitCastOrAddrSpaceCast(Addr, PtrTy), in getOffloadingEntryInitializer() 76 ConstantExpr::getPointerBitCastOrAddrSpaceCast(Str, PtrTy), in getOffloadingEntryInitializer() 79 AuxAddr ? ConstantExpr::getPointerBitCastOrAddrSpaceCast(AuxAddr, PtrTy) in getOffloadingEntryInitializer() 80 : ConstantExpr::getNullValue(PtrTy)}; in getOffloadingEntryInitializer()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsLegalizerInfo.cpp | 24 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 D | SmallPtrSet.h | 315 template <typename PtrTy> 319 using PtrTraits = PointerLikeTypeTraits<PtrTy>; 322 using value_type = PtrTy; 323 using reference = PtrTy; 324 using pointer = PtrTy; 334 const PtrTy operator*() const {
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FatLTOCleanup.cpp | 80 Type *PtrTy = I->getType()->getStructElementType(0); in cleanUpTypeCheckedLoad() local 89 Load = IRB.CreateLoad(PtrTy, PtrAdd, "vfunc"); in cleanUpTypeCheckedLoad()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILPrepare.cpp | 200 PointerType *PtrTy = cast<PointerType>(Operand->getType()); in maybeGenerateBitcast() local 203 Builder.getPtrTy(PtrTy->getAddressSpace()))); in maybeGenerateBitcast() 294 PointerType *PtrTy = cast<PointerType>(PtrOperand->getType()); in runOnModule() local 297 Builder.getPtrTy(PtrTy->getAddressSpace()))); in runOnModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CallLowering.cpp | 226 PointerType *PtrTy = dyn_cast<PointerType>(Arg.Ty->getScalarType()); in setArgFlags() local 227 if (PtrTy) { in setArgFlags() 229 Flags.setPointerAddrSpace(PtrTy->getPointerAddressSpace()); in setArgFlags() 922 const LLT PtrTy = MRI.getType(StackAddr); in handleAssignments() local 923 SrcMPO = MachinePointerInfo(PtrTy.getAddressSpace()); in handleAssignments() 1057 Type *PtrTy = PointerType::get(F.getContext(), AS); in insertSRetIncomingArgument() local 1060 ComputeValueVTs(*TLI, DL, PtrTy, ValueVTs); in insertSRetIncomingArgument() 1065 ArgInfo DemoteArg(DemoteReg, ValueVTs[0].getTypeForEVT(PtrTy->getContext()), in insertSRetIncomingArgument() 1254 LLT PtrTy = LLT::pointer(Flags.getPointerAddrSpace(), in getStackValueStoreType() local 1257 return LLT::vector(ValTy.getElementCount(), PtrTy); in getStackValueStoreType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXCtorDtorLowering.cpp | 103 Type *PtrTy = IRB.getPtrTy(llvm::ADDRESS_SPACE_GLOBAL); in createInitOrFiniCalls() local 160 auto *CallBackPHI = IRB.CreatePHI(PtrTy, 2, "ptr"); in createInitOrFiniCalls() 165 IRB.CreateConstGEP1_64(PtrTy, CallBackPHI, IsCtor ? 1 : -1, "next"); in createInitOrFiniCalls()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | WindowsSecureHotPatching.cpp | 362 auto PtrTy = PointerType::get(M->getContext(), 0); in getOrCreateRefVariable() local 365 ConstantExpr::getGetElementPtr(PtrTy, GV, ArrayRef<Value *>{}); in getOrCreateRefVariable() 368 new GlobalVariable(*M, PtrTy, false, GlobalValue::LinkOnceAnyLinkage, in getOrCreateRefVariable()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaSPIRV.cpp | 84 const auto *PtrTy = Ty->getAs<PointerType>(); in checkGenericCastToPtr() local 90 if (!PtrTy || in checkGenericCastToPtr() 91 AddressSpaceNotInGeneric(PtrTy->getPointeeType().getAddressSpace())) { in checkGenericCastToPtr()
|