Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DOwnership.h49 template <class PtrTy>
80 PtrTy get() const { in get()
84 void set(PtrTy P) { in set()
152 template <class PtrTy, bool Compress = IsResultPtrLowBitFree<PtrTy>::value>
154 PtrTy Val = {};
170 PtrTy get() const { return Val; }
173 ActionResult &operator=(PtrTy RHS) {
181 template <typename PtrTy> class ActionResult<PtrTy, true> {
192 ActionResult(PtrTy V) { *this = V; }
203 PtrTy get() const {
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp42 llvm::PointerType *PtrTy; member in __anone51907b10111::CGNVCUDARuntime
235 PtrTy = CGM.UnqualPtrTy; in CGNVCUDARuntime()
266 llvm::Type *Params[] = {llvm::PointerType::getUnqual(Context), PtrTy, PtrTy, in getRegisterLinkedBinaryFnTy()
536 PtrTy, PtrTy, PtrTy, PtrTy, IntTy, in makeRegisterGlobalsFn()
537 PtrTy, PtrTy, PtrTy, PtrTy, llvm::PointerType::getUnqual(Context)}; in makeRegisterGlobalsFn()
572 llvm::Type *RegisterVarParams[] = {PtrTy, PtrTy, PtrTy, PtrTy, in makeRegisterGlobalsFn()
579 llvm::Type *RegisterManagedVarParams[] = {PtrTy, PtrTy, PtrTy, in makeRegisterGlobalsFn()
588 VoidTy, {PtrTy, PtrTy, PtrTy, PtrTy, IntTy, IntTy}, false), in makeRegisterGlobalsFn()
594 VoidTy, {PtrTy, PtrTy, PtrTy, PtrTy, IntTy, IntTy, IntTy}, false), in makeRegisterGlobalsFn()
705 llvm::FunctionType::get(PtrTy, PtrTy, false), in makeModuleCtorFunction()
[all …]
H A DCGObjCGNU.cpp144 llvm::PointerType *PtrTy; member in __anonf53bd1d80111::CGObjCGNU
821 SlotStructTy = llvm::StructType::get(PtrTy, PtrTy, PtrTy, IntTy, IMPTy); in CGObjCGNUstep()
833 EnterCatchFn.init(&CGM, "__cxa_begin_catch", PtrTy, PtrTy); in CGObjCGNUstep()
843 EnterCatchFn.init(&CGM, "__cxa_begin_catch", PtrTy, PtrTy); in CGObjCGNUstep()
868 PtrTy, PtrTy); in CGObjCGNUstep()
872 PtrTy, PtrTy); in CGObjCGNUstep()
2095 llvm::StructType::get(PtrTy, PtrTy, PtrTy, LongTy, LongTy); in GenerateDirectMethodPrologue()
2292 PtrTy = PtrToInt8Ty; in CGObjCGNU()
2365 GetStructPropertyFn.init(&CGM, "objc_getPropertyStruct", VoidTy, PtrTy, PtrTy, in CGObjCGNU()
2404 MemMoveFn.init(&CGM, "objc_memmove_collectable", PtrTy, PtrTy, PtrTy, in CGObjCGNU()
[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/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp345 M, CtorName, InitFunctionName, {PtrTy, PtrTy}, {SecStart, SecEnd}); in CreateInitCallsForSections()
389 PtrTy = PointerType::getUnqual(*C); in instrumentModule()
432 M.getOrInsertFunction(SanCovLoad2, VoidTy, PtrTy); in instrumentModule()
502 M, SanCovPCsInitName, {PtrTy, PtrTy}); in instrumentModule()
510 M, SanCovCFsInitName, {PtrTy, PtrTy}); in instrumentModule()
738 ConstantInt::get(IntptrTy, 1), PtrTy)); in CreatePCArray()
741 BlockAddress::get(AllBlocks[i]), PtrTy)); in CreatePCArray()
742 PCs.push_back(Constant::getNullValue(PtrTy)); in CreatePCArray()
964 PtrTy); in InjectCoverageAtBlock()
1063 ConstantInt::get(IntptrTy, -1), PtrTy)); in createFunctionControlFlow()
[all …]
H A DHWAddressSanitizer.cpp387 PointerType *PtrTy; member in __anon368fb5b70111::HWAddressSanitizer
590 PtrTy = IRB.getPtrTy(); in initializeModule()
671 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy, Int8Ty}, false); in initializeCallbacks()
673 FunctionType::get(PtrTy, {PtrTy, Int32Ty, IntptrTy, Int8Ty}, false); in initializeCallbacks()
680 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy}, false); in initializeCallbacks()
682 FunctionType::get(PtrTy, {PtrTy, Int32Ty, IntptrTy}, false); in initializeCallbacks()
757 kHwasanShadowMemoryDynamicAddress, PtrTy); in getShadowNonTls()
765 if (PtrTy->getPointerAddressSpace() != 0) in ignoreAccess()
863 return IRB.CreateIntToPtr(Shadow, PtrTy); in memToShadow()
1724 PtrTy, PtrTy, PtrTy, PtrTy); in instrumentPersonalityFunctions()
[all …]
H A DMemProfiler.cpp185 PtrTy = PointerType::getUnqual(*C); in MemProfiler()
213 PointerType *PtrTy; member in __anon1894c1db0111::MemProfiler
347 Type *PtrTy = cast<PointerType>(Access.Addr->getType()->getScalarType()); in isInterestingMemoryAccess() local
348 if (PtrTy->getPointerAddressSpace() != 0) in isInterestingMemoryAccess()
522 ClMemoryAccessCallbackPrefix + "memmove", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
524 PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
526 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + "memset", PtrTy, in initializeCallbacks()
527 PtrTy, IRB.getInt32Ty(), IntptrTy); in initializeCallbacks()
H A DSanitizerBinaryMetadata.cpp201 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 DThreadSanitizer.cpp265 Type *PtrTy = PointerType::get(Ctx, 0); in initialize() local
271 Ty, PtrTy, OrdTy); in initialize()
281 IRB.getVoidTy(), PtrTy, Ty, OrdTy); in initialize()
308 Ty, PtrTy, Ty, OrdTy); in initialize()
317 Ty, PtrTy, Ty, Ty, OrdTy, OrdTy); in initialize()
372 Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType()); in shouldInstrumentReadWriteFromAddress() local
373 if (PtrTy->getPointerAddressSpace() != 0) in shouldInstrumentReadWriteFromAddress()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp72 Type *PtrTy; member in __anon47ef69a40111::AArch64Arm64ECCallLowering
112 Arm64ArgTypes.push_back(PtrTy); in getThunkType()
113 X64ArgTypes.push_back(PtrTy); in getThunkType()
162 Arm64ArgTypes.push_back(PtrTy); in getThunkArgTypes()
163 X64ArgTypes.push_back(PtrTy); in getThunkArgTypes()
310 X64Ty = PtrTy; in canonicalizeThunkType()
341 X64Ty = PtrTy; in canonicalizeThunkType()
425 Callee = IRB.CreateBitCast(Callee, PtrTy); in buildExitThunk()
516 Callee = IRB.CreateBitCast(Callee, PtrTy); in buildEntryThunk()
669 PtrTy = PointerType::getUnqual(M->getContext()); in runOnModule()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCtorDtorLowering.cpp79 Type *PtrTy = IRB.getPtrTy(AMDGPUAS::GLOBAL_ADDRESS); in createInitOrFiniCalls() local
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 createInitOrFiniCalls()
135 IRB.CreateConstGEP1_64(PtrTy, CallBackPHI, IsCtor ? 1 : -1, "next"); in createInitOrFiniCalls()
H A DAMDGPUMachineFunction.cpp34 if (auto PtrTy = dyn_cast<PointerType>(ArgTy)) { in hasLDSKernelArgument() local
35 if (PtrTy->getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS) in hasLDSKernelArgument()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRuntimeLibcallSignatures.cpp534 wasm::ValType PtrTy = in getLibcallSignature() local
651 Params.push_back(PtrTy); in getLibcallSignature()
652 Params.push_back(PtrTy); in getLibcallSignature()
656 Params.push_back(PtrTy); in getLibcallSignature()
657 Params.push_back(PtrTy); in getLibcallSignature()
795 Rets.push_back(PtrTy); in getLibcallSignature()
799 Rets.push_back(PtrTy); in getLibcallSignature()
805 Rets.push_back(PtrTy); in getLibcallSignature()
841 Rets.push_back(PtrTy); in getLibcallSignature()
845 Rets.push_back(PtrTy); in getLibcallSignature()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp45 PointerType *PtrTy = B.getPtrTy(); in create() local
47 ArrayType *StatTy = ArrayType::get(PtrTy, 2); in create()
51 {Constant::getNullValue(PtrTy), in create()
55 PtrTy)})); in create()
57 FunctionType *StatReportTy = FunctionType::get(B.getVoidTy(), PtrTy, false); in create()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp524 auto *PtrTy = PointerType::getUnqual(C); in createRegisterFatbinFunction() local
527 auto *RegFatTy = FunctionType::get(PtrTy, PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction()
532 FunctionType::get(Type::getVoidTy(C), PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction()
537 FunctionType::get(Type::getVoidTy(C), PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction()
543 FunctionType::get(Type::getInt32Ty(C), PtrTy, /*isVarArg=*/false); in createRegisterFatbinFunction()
547 M, PtrTy, false, llvm::GlobalValue::InternalLinkage, in createRegisterFatbinFunction()
548 llvm::ConstantPointerNull::get(PtrTy), in createRegisterFatbinFunction()
555 ConstantExpr::getPointerBitCastOrAddrSpaceCast(FatbinDesc, PtrTy)); in createRegisterFatbinFunction()
558 Align(M.getDataLayout().getPointerTypeSize(PtrTy))); in createRegisterFatbinFunction()
573 PtrTy, BinaryHandleGlobal, in createRegisterFatbinFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallPtrSet.h266 template <typename PtrTy>
270 using PtrTraits = PointerLikeTypeTraits<PtrTy>;
273 using value_type = PtrTy;
274 using reference = PtrTy;
275 using pointer = PtrTy;
285 const PtrTy operator*() const {
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DSPIR.cpp75 auto *PtrTy = llvm::dyn_cast<llvm::PointerType>(LTy); in classifyKernelArgumentType() local
76 if (PtrTy && PtrTy->getAddressSpace() == DefaultAS) { in classifyKernelArgumentType()
77 LTy = llvm::PointerType::get(PtrTy->getContext(), GlobalAS); in classifyKernelArgumentType()
/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()
523 LLT PtrTy = LLT::pointer(0, 32); in legalizeIntrinsic() local
525 MIRBuilder.buildLoad(PtrTy, MI.getOperand(2), in legalizeIntrinsic()
527 MPO, MachineMemOperand::MOLoad, PtrTy, Align(4))); in legalizeIntrinsic()
530 MPO, MachineMemOperand::MOStore, PtrTy, Align(4))); in legalizeIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp207 if (PtrTy) { in setArgFlags()
209 Flags.setPointerAddrSpace(PtrTy->getPointerAddressSpace()); in setArgFlags()
823 const LLT PtrTy = MRI.getType(StackAddr); in handleAssignments() local
824 SrcMPO = MachinePointerInfo(PtrTy.getAddressSpace()); in handleAssignments()
943 Type *PtrTy = PointerType::get(F.getReturnType(), AS); in insertSRetIncomingArgument() local
946 ComputeValueVTs(*TLI, DL, PtrTy, ValueVTs); in insertSRetIncomingArgument()
1140 LLT PtrTy = LLT::pointer(Flags.getPointerAddrSpace(), in getStackValueStoreType() local
1143 return LLT::vector(ValTy.getElementCount(), PtrTy); in getStackValueStoreType()
1144 return PtrTy; in getStackValueStoreType()
1170 const LLT PtrTy = MRI.getType(DstPtr); in copyArgumentMemory() local
[all …]
H A DLoadStoreOpt.cpp296 LLT PtrTy = MRI->getType(StoresToMerge[0]->getPointerReg()); in mergeStores() local
297 unsigned AS = PtrTy.getAddressSpace(); in mergeStores()
505 LLT PtrTy = MRI->getType(StoreMI.getPointerReg()); in addStoreToCandidate() local
549 PtrTy.getAddressSpace()) in addStoreToCandidate()
946 LLT PtrTy = getLLTForType(*IRPtrTy, DL); in initializeStoreMergeTargetInfo() local
953 SmallVector<LLT> StoreTys({Ty, PtrTy}); in initializeStoreMergeTargetInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DAliasAnalysis.h205 using PtrTy = PointerIntPair<const Value *, 1, bool>; member
206 PtrTy Ptr;
209 AACacheLoc(PtrTy Ptr, LocationSize Size) : Ptr(Ptr), Size(Size) {} in AACacheLoc()
216 return {DenseMapInfo<AACacheLoc::PtrTy>::getEmptyKey(),
220 return {DenseMapInfo<AACacheLoc::PtrTy>::getTombstoneKey(),
224 return DenseMapInfo<AACacheLoc::PtrTy>::getHashValue(Val.Ptr) ^
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp98 PointerType *PtrTy = cast<PointerType>(Operand->getType()); in maybeGenerateBitcast() local
101 Builder.getPtrTy(PtrTy->getAddressSpace()))); in maybeGenerateBitcast()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp134 Type *PtrTy = IRB.getPtrTy(llvm::ADDRESS_SPACE_GLOBAL); in createInitOrFiniCalls() local
191 auto *CallBackPHI = IRB.CreatePHI(PtrTy, 2, "ptr"); in createInitOrFiniCalls()
196 IRB.CreateConstGEP1_64(PtrTy, CallBackPHI, IsCtor ? 1 : -1, "next"); in createInitOrFiniCalls()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVLegalizerInfo.cpp395 LLT PtrTy = MRI.getType(DstLst); in legalizeIntrinsic() local
398 Align Alignment = DL.getABITypeAlign(getTypeForLLT(PtrTy, Ctx)); in legalizeIntrinsic()
400 MachinePointerInfo(), MachineMemOperand::MOLoad, PtrTy, Alignment); in legalizeIntrinsic()
401 auto Tmp = MIRBuilder.buildLoad(PtrTy, MI.getOperand(2), *LoadMMO); in legalizeIntrinsic()
405 MachinePointerInfo(), MachineMemOperand::MOStore, PtrTy, Alignment); in legalizeIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64LegalizerInfo.cpp453 LLT PtrTy = Query.Types[1]; in AArch64LegalizerInfo() local
457 if (PtrTy != p0) in AArch64LegalizerInfo()
472 LLT PtrTy = Q.Types[1]; in AArch64LegalizerInfo() local
474 if (PtrTy != p0) in AArch64LegalizerInfo()
1685 LLT PtrTy = MRI.getType(ListPtr); in legalizeVaArg() local
1686 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); in legalizeVaArg()
1688 const unsigned PtrSize = PtrTy.getSizeInBits() / 8; in legalizeVaArg()
1691 PtrTy, ListPtr, in legalizeVaArg()
1693 PtrTy, PtrAlign)); in legalizeVaArg()
1719 PtrTy, PtrAlign)); in legalizeVaArg()
[all …]

12345