Home
last modified time | relevance | path

Searched refs:Metadata (Results 1 – 25 of 237) sorted by relevance

12345678910

/freebsd-src/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h25 #include "llvm/IR/Metadata.h"
134 /// Uses the SubclassData16 Metadata slot.
141 ArrayRef<Metadata *> Ops1, ArrayRef<Metadata *> Ops2 = std::nullopt) in MDNode()
194 static bool classof(const Metadata *MD) { in classof()
235 /// Uses the SubclassData32 Metadata slot.
241 unsigned Tag, ArrayRef<Metadata *> Ops1, in GenericDINode()
242 ArrayRef<Metadata *> Ops2) in GenericDINode()
252 StringRef Header, ArrayRef<Metadata *> DwarfOps,
259 MDString *Header, ArrayRef<Metadata *> DwarfOp
[all...]
H A DMetadata.h1 //===- llvm/IR/Metadata.h - Metadata definitions ----------------*- C++ -*-===//
62 class Metadata {
82 #include "llvm/IR/Metadata.def"
86 Metadata(unsigned ID, StorageType Storage) in Metadata() function
88 static_assert(sizeof(*this) == 8, "Metadata fields poorly packed"); in Metadata()
91 ~Metadata() = default;
97 void handleChangedOperand(void *, Metadata *) { in handleChangedOperand() argument
98 llvm_unreachable("Unimplemented in Metadata subclass"); in handleChangedOperand()
144 DEFINE_ISA_CONVERSION_FUNCTIONS(Metadata, LLVMMetadataRe argument
233 DebugValueUser(std::array<Metadata *,3> DebugValues) DebugValueUser() argument
[all...]
H A DTrackingMDRef.h26 Metadata *MD = nullptr;
30 explicit TrackingMDRef(Metadata *MD) : MD(MD) { track(); } in TrackingMDRef()
57 Metadata *get() const { return MD; } in get()
58 operator Metadata *() const { return get(); }
59 Metadata *operator->() const { return get(); }
60 Metadata &operator*() const { return *get(); }
66 void reset(Metadata *MD) { in reset()
111 explicit TypedTrackingMDRef(T *MD) : Ref(static_cast<Metadata *>(MD)) {} in TypedTrackingMDRef()
135 void reset(T *MD) { Ref.reset(static_cast<Metadata *>(MD)); } in reset()
146 using SimpleType = Metadata *;
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContextImpl.h35 #include "llvm/IR/Metadata.h"
245 ArrayRef<Metadata *> RawOps;
250 MDNodeOpsKey(ArrayRef<Metadata *> Ops)
277 static unsigned calculateHash(ArrayRef<Metadata *> Ops);
303 MDNodeKeyImpl(ArrayRef<Metadata *> Ops) : MDNodeOpsKey(Ops) {}
319 Metadata *Scope;
320 Metadata *InlinedAt;
323 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope,
324 Metadata *InlinedAt, bool ImplicitCode)
347 MDNodeKeyImpl(unsigned Tag, MDString *Header, ArrayRef<Metadata *> DwarfOp
[all...]
H A DDebugInfoMetadata.cpp9 // This file implements the debug info Metadata classes.
59 unsigned Column, ArrayRef<Metadata *> MDs, in DILocation()
81 unsigned Column, Metadata *Scope, in getImpl()
82 Metadata *InlinedAt, bool ImplicitCode, in getImpl()
98 SmallVector<Metadata *, 2> Ops; in getImpl()
394 ArrayRef<Metadata *> DwarfOps, in getImpl()
410 Metadata *PreOps[] = {Header}; in getImpl()
452 ArrayRef<Metadata *> Ops) in getImpl()
464 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl()
473 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNod in getImpl()
[all...]
H A DMetadata.cpp1 //===- Metadata.cpp - Implement Metadata classes --------------------------===//
9 // This file implements the Metadata classes.
13 #include "llvm/IR/Metadata.h"
60 MetadataAsValue::MetadataAsValue(Type *Ty, Metadata *MD) in MetadataAsValue()
81 static Metadata *canonicalizeMetadataForValue(LLVMContext &Context, in canonicalizeMetadataForValue()
82 Metadata *MD) { in canonicalizeMetadataForValue()
103 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get()
112 Metadata *MD) { in getIfExists()
118 void MetadataAsValue::handleChangedMetadata(Metadata *M
[all...]
H A DProfileSummary.cpp17 #include "llvm/IR/Metadata.h"
26 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key, in getKeyValMD()
29 Metadata *Ops[2] = {MDString::get(Context, Key), in getKeyValMD()
34 static Metadata *getKeyFPValMD(LLVMContext &Context, const char *Key, in getKeyFPValMD()
37 Metadata *Ops[2] = {MDString::get(Context, Key), in getKeyFPValMD()
44 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key, in getKeyValMD()
46 Metadata *Ops[2] = {MDString::get(Context, Key), MDString::get(Context, Val)}; in getKeyValMD()
55 Metadata *ProfileSummary::getDetailedSummaryMD(LLVMContext &Context) { in getDetailedSummaryMD()
56 std::vector<Metadata *> Entries; in getDetailedSummaryMD()
60 Metadata *EntryM in getDetailedSummaryMD()
[all...]
H A DMDBuilder.cpp17 #include "llvm/IR/Metadata.h"
57 SmallVector<Metadata *, 4> Vals(Weights.size() + Offset); in createUnpredictable()
77 SmallVector<Metadata *, 8> Ops;
114 SmallVector<Metadata *, 4> Ops; in createCallbackEncoding()
123 SmallVector<Metadata *, 4> Ops;
147 SmallVector<Metadata *, 4> Ops; in mergeCallbackEncodings()
169 SmallVector<Metadata *, 4> Ops; in createPCSections()
176 SmallVector<Metadata *, 2> Ops; in createPCSections()
185 SmallVector<Metadata *, 1> AuxMDs; in createAnonymousAARoot()
197 SmallVector<Metadata *, in createAnonymousAARoot()
[all...]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/
H A DAMDGPUMetadata.h118 // Kernel Metadata.
123 // Kernel Attributes Metadata.
128 /// Key for Kernel::Attr::Metadata::mReqdWorkGroupSize.
130 /// Key for Kernel::Attr::Metadata::mWorkGroupSizeHint.
132 /// Key for Kernel::Attr::Metadata::mVecTypeHint.
134 /// Key for Kernel::Attr::Metadata::mRuntimeHandle.
139 struct Metadata final {
151 Metadata() = default;
168 // Kernel Argument Metadata.
173 /// Key for Kernel::Arg::Metadata
[all...]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp83 inline void Metadata::SetAllocated(u32 stack, u64 size) { in SetAllocated()
94 inline void Metadata::SetUnallocated() { in SetUnallocated()
101 inline bool Metadata::IsAllocated() const { in IsAllocated()
105 inline u64 Metadata::GetRequestedSize() const { in GetRequestedSize()
109 inline u32 Metadata::GetAllocStackId() const { in GetAllocStackId()
113 inline u32 Metadata::GetAllocThreadId() const { in GetAllocThreadId()
123 inline void Metadata::SetLsanTag(__lsan::ChunkTag tag) { in SetLsanTag()
127 inline __lsan::ChunkTag Metadata::GetLsanTag() const { in GetLsanTag()
256 Metadata *meta = in HwasanAllocate()
257 reinterpret_cast<Metadata *>(allocato in HwasanAllocate()
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp35 #include "llvm/IR/Metadata.h"
159 Metadata *mapMetadata(const Metadata *MD);
184 std::optional<Metadata *> mapSimpleMetadata(const Metadata *MD);
186 Metadata *mapToMetadata(const Metadata *Key, Metadata *Val);
187 Metadata *mapToSelf(const Metadata *M
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILValueEnumerator.h36 class Metadata; variable
71 std::vector<const Metadata *> MDs;
72 std::vector<const Metadata *> FunctionMDs;
86 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get()
93 using MetadataMapType = DenseMap<const Metadata *, MDIndex>;
153 unsigned getMetadataID(const Metadata *MD) const { in getMetadataID()
155 assert(ID != 0 && "Metadata not in slotcalculator!"); in getMetadataID()
159 unsigned getMetadataOrNullID(const Metadata *MD) const { in getMetadataOrNullID()
203 ArrayRef<const Metadata *> getMDString
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.h35 class Metadata; variable
68 std::vector<const Metadata *> MDs;
69 std::vector<const Metadata *> FunctionMDs;
83 const Metadata *get(ArrayRef<const Metadata *> MDs) const { in get()
90 using MetadataMapType = DenseMap<const Metadata *, MDIndex>;
152 unsigned getMetadataID(const Metadata *MD) const { in getMetadataID()
154 assert(ID != 0 && "Metadata not in slotcalculator!"); in getMetadataID()
158 unsigned getMetadataOrNullID(const Metadata *MD) const { in getMetadataOrNullID()
203 ArrayRef<const Metadata *> getMDString
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/CodeGen/
H A DCGLoopInfo.cpp19 #include "llvm/IR/Metadata.h"
25 LoopInfo::createLoopPropertiesMetadata(ArrayRef<Metadata *> LoopProperties) { in createLoopPropertiesMetadata()
27 SmallVector<Metadata *, 4> NewLoopProperties; in createLoopPropertiesMetadata()
37 ArrayRef<Metadata *> LoopProperties, in createPipeliningMetadata()
48 SmallVector<Metadata *, 4> NewLoopProperties; in createPipeliningMetadata()
60 SmallVector<Metadata *, 4> Args; in createPipeliningMetadata()
65 Metadata *Vals[] = { in createPipeliningMetadata()
82 ArrayRef<Metadata *> LoopProperties, in createPartialUnrollMetadata()
101 SmallVector<Metadata *, 4> FollowupLoopProperties; in createPartialUnrollMetadata()
114 SmallVector<Metadata *, in createPartialUnrollMetadata()
[all...]
H A DCGLoopInfo.h139 createLoopPropertiesMetadata(llvm::ArrayRef<llvm::Metadata *> LoopProperties);
160 llvm::ArrayRef<llvm::Metadata *> LoopProperties,
164 llvm::ArrayRef<llvm::Metadata *> LoopProperties,
168 llvm::ArrayRef<llvm::Metadata *> LoopProperties,
172 llvm::ArrayRef<llvm::Metadata *> LoopProperties,
176 llvm::ArrayRef<llvm::Metadata *> LoopProperties,
180 llvm::ArrayRef<llvm::Metadata *> LoopProperties,
197 llvm::ArrayRef<llvm::Metadata *> LoopProperties,
/freebsd-src/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h50 llvm::Any Metadata; member
114 AnyGenerator Metadata = [](const ast_matchers::MatchFinder::MatchResult &)
244 inline ASTEdit withMetadata(ASTEdit Edit, Callable Metadata) { in withMetadata() argument
245 Edit.Metadata = in withMetadata()
246 [Gen = std::move(Metadata)]( in withMetadata()
296 SmallVector<Generator<MetadataT>, 1> Metadata; member
311 Generator<MetadataT> Metadata) {
314 R.Metadata = {std::move(Metadata)};
343 Generator<MetadataT> Metadata) {
346 std::move(Metadata));
[all …]
H A DTransformer.h54 T Metadata; member
129 auto Metadata = Rule.Metadata[SelectedCase]->eval(Match);
130 if (!Metadata)
131 return Metadata.takeError();
132 Result.Metadata = std::move(*Metadata);
154 assert(llvm::all_of(Rule.Metadata,
155 [](const typename transformer::Generator<T> &Metadata)
156 -> bool { return !!Metadata; }) &&
/freebsd-src/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp39 #include "llvm/IR/Metadata.h"
73 STATISTIC(NumMDRecordLoaded, "Number of Metadata records loaded");
101 /// The set of indices in MetadataPtrs above of Metadata that need to be
128 void push_back(Metadata *MD) { MetadataPtrs.emplace_back(MD); } in push_back()
130 Metadata *back() const { return MetadataPtrs.back(); } in back()
134 Metadata *operator[](unsigned i) const { in operator []()
139 Metadata *lookup(unsigned I) const { in lookup()
154 Metadata *getMetadataFwdRef(unsigned Idx);
160 Metadata *getMetadataIfResolved(unsigned Idx);
163 void assignValue(Metadata *M
[all...]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp29 struct Metadata { struct
60 static const uptr kMetadataSize = sizeof(Metadata);
79 static const uptr kMetadataSize = sizeof(Metadata);
95 static const uptr kMetadataSize = sizeof(Metadata);
110 static const uptr kMetadataSize = sizeof(Metadata);
124 static const uptr kMetadataSize = sizeof(Metadata);
138 static const uptr kMetadataSize = sizeof(Metadata);
217 Metadata *meta = in MsanAllocate()
218 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate()
243 Metadata *met in MsanDeallocate()
30 requested_size__msan::Metadata global() argument
[all...]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp27 struct Metadata { struct
53 static const uptr kMetadataSize = sizeof(Metadata);
124 Metadata *meta = in DFsanAllocate()
125 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate()
138 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in dfsan_deallocate()
155 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(old_p)); in DFsanReallocate()
190 Metadata *b = (Metadata *)allocato in AllocationBegin()
28 requested_size__dfsan::Metadata global() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Support/
H A DAMDGPUMetadata.cpp22 LLVM_YAML_IS_SEQUENCE_VECTOR(Kernel::Arg::Metadata)
23 LLVM_YAML_IS_SEQUENCE_VECTOR(Kernel::Metadata)
93 struct MappingTraits<Kernel::Attrs::Metadata> {
94 static void mapping(IO &YIO, Kernel::Attrs::Metadata &MD) { in mapping()
107 struct MappingTraits<Kernel::Arg::Metadata> {
108 static void mapping(IO &YIO, Kernel::Arg::Metadata &MD) { in mapping()
135 struct MappingTraits<Kernel::CodeProps::Metadata> {
136 static void mapping(IO &YIO, Kernel::CodeProps::Metadata &MD) { in mapping()
165 struct MappingTraits<Kernel::DebugProps::Metadata> {
166 static void mapping(IO &YIO, Kernel::DebugProps::Metadata &MD) { in mapping()
[all …]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dcrash_handler.cpp48 const AllocationMetadata *Metadata, uintptr_t Ptr) { in addrToMetadata() argument
50 return &Metadata[State->getNearestSlot(Ptr)]; in addrToMetadata()
55 const gwp_asan::AllocationMetadata *Metadata, in __gwp_asan_diagnose_error() argument
64 if (addrToMetadata(State, Metadata, ErrorPtr)->IsDeallocated) in __gwp_asan_diagnose_error()
74 addrToMetadata(State, Metadata, State->slotToAddr(Slot)); in __gwp_asan_diagnose_error()
91 const gwp_asan::AllocationMetadata *Metadata, in __gwp_asan_get_metadata() argument
100 const AllocationMetadata *Meta = addrToMetadata(State, Metadata, ErrorPtr); in __gwp_asan_get_metadata()
/freebsd-src/contrib/llvm-project/llvm/lib/XRay/
H A DBlockPrinter.cpp45 CurrentState = State::Metadata; in visit()
54 CurrentState = State::Metadata; in visit()
62 if (CurrentState == State::Metadata) in visit()
71 if (CurrentState == State::Metadata) in visit()
80 if (CurrentState == State::Metadata) in visit()
90 if (CurrentState == State::Metadata) in visit()
/freebsd-src/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/
H A Dsegv_handler_posix.cpp43 const gwp_asan::AllocationMetadata *Metadata, in printHeader() argument
52 if (E != Error::UNKNOWN && Metadata != nullptr) { in printHeader()
53 uintptr_t Address = __gwp_asan_get_allocation_address(Metadata); in printHeader()
54 size_t Size = __gwp_asan_get_allocation_size(Metadata); in printHeader()
109 const gwp_asan::AllocationMetadata *Metadata, in dumpReport() argument
113 assert(Metadata && "dumpReport missing Metadata."); in dumpReport()
124 __gwp_asan_get_metadata(State, Metadata, ErrorPtr); in dumpReport()
148 Error E = __gwp_asan_diagnose_error(State, Metadata, ErrorPtr); in dumpReport()
/freebsd-src/contrib/llvm-project/clang/lib/Frontend/
H A DTestModuleFileExtension.cpp113 const ModuleFileExtensionMetadata &Metadata, in createExtensionReader() argument
117 assert(Metadata.BlockName == BlockName && "Wrong block name"); in createExtensionReader()
118 if (std::make_pair(Metadata.MajorVersion, Metadata.MinorVersion) != in createExtensionReader()
122 << BlockName << Metadata.MajorVersion << Metadata.MinorVersion in createExtensionReader()

12345678910