Home
last modified time | relevance | path

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

12345678910

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h141 ArrayRef<Metadata *> Ops1, ArrayRef<Metadata *> Ops2 = std::nullopt)
194 static bool classof(const Metadata *MD) { in classof()
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 *> DwarfOps,
264 SmallVector<Metadata *, 4>(dwarf_operands())); in cloneImpl()
272 ArrayRef<Metadata *> DwarfOps),
276 ArrayRef<Metadata *> DwarfOps),
296 void replaceDwarfOperandWith(unsigned I, Metadata *New) { in replaceDwarfOperandWith()
[all …]
H A DMetadata.h62 class Metadata {
86 Metadata(unsigned ID, StorageType Storage) in Metadata() function
91 ~Metadata() = default;
97 void handleChangedOperand(void *, Metadata *) { in handleChangedOperand() argument
144 DEFINE_ISA_CONVERSION_FUNCTIONS(Metadata, LLVMMetadataRef) in DEFINE_ISA_CONVERSION_FUNCTIONS() argument
147 inline Metadata **unwrap(LLVMMetadataRef *MDs) { in DEFINE_ISA_CONVERSION_FUNCTIONS()
148 return reinterpret_cast<Metadata**>(MDs); in DEFINE_ISA_CONVERSION_FUNCTIONS()
157 template <> struct isa_impl<CLASS, Metadata> { \
158 static inline bool doit(const Metadata &MD) { \
159 return MD.getMetadataID() == Metadata::CLASS##Kind; \
[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/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContextImpl.h245 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 *> DwarfOps)
365 Metadata *CountNode;
[all …]
H A DDebugInfoMetadata.cpp59 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 DISubrange()
464 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl()
473 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl()
474 Metadata *LB, Metadata *UB, Metadata *Stride, in getImpl()
[all …]
H A DMetadata.cpp60 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 *MD) { in handleChangedMetadata()
158 void DebugValueUser::handleChangedValue(void *Old, Metadata *New) { in handleChangedValue()
161 auto OldMD = static_cast<Metadata **>(Old); in handleChangedValue()
174 Metadata *&MD = DebugValues[Idx]; in trackDebugValue()
180 for (Metadata *&MD : DebugValues) in trackDebugValues()
[all …]
H A DProfileSummary.cpp26 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 *EntryMD[3] = { in getDetailedSummaryMD()
66 Metadata *Ops[2] = {MDString::get(Context, "DetailedSummary"), in getDetailedSummaryMD()
[all …]
H A DMDBuilder.cpp57 SmallVector<Metadata *, 4> Vals(Weights.size() + Offset); in createBranchWeights()
77 SmallVector<Metadata *, 8> Ops; in createFunctionEntryCount()
114 SmallVector<Metadata *, 4> Ops; in createCallees()
123 SmallVector<Metadata *, 4> Ops; in createCallbackEncoding()
147 SmallVector<Metadata *, 4> Ops; in mergeCallbackEncodings()
169 SmallVector<Metadata *, 4> Ops; in createRTTIPointerPrologue()
176 SmallVector<Metadata *, 2> Ops; in createPCSections()
185 SmallVector<Metadata *, 1> AuxMDs; in createPCSections()
197 SmallVector<Metadata *, 3> Args(1, nullptr); in createAnonymousAARoot()
241 SmallVector<Metadata *, 4> Vals(Fields.size() * 3); in createTBAAStructNode()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAMDGPUMetadata.h139 struct Metadata final {
151 Metadata() = default;
206 struct Metadata final {
237 Metadata() = default;
275 struct Metadata final {
309 Metadata() = default;
347 struct Metadata final {
366 Metadata() = default;
403 struct Metadata final {
413 Attrs::Metadata mAttrs = Attrs::Metadata();
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAPINotes.cpp54 VersionedInfoMetadata Metadata) { in applyNullability() argument
55 if (!Metadata.IsActive) in applyNullability()
143 Sema &S, Decl *D, bool IsAddition, VersionedInfoMetadata Metadata, in handleAPINotedAttribute() argument
146 if (Metadata.IsActive) { in handleAPINotedAttribute()
152 S.Context, Metadata.Version, *Existing, /*IsReplacedByActive*/ true); in handleAPINotedAttribute()
169 S.Context, Metadata.Version, Attr, in handleAPINotedAttribute()
170 /*IsReplacedByActive*/ Metadata.IsReplacement); in handleAPINotedAttribute()
178 S.Context, Metadata.Version, AttrKindFor<A>::value, in handleAPINotedAttribute()
179 /*IsReplacedByActive*/ Metadata.IsReplacement); in handleAPINotedAttribute()
186 VersionedInfoMetadata Metadata, in handleAPINotedAttribute() argument
[all …]
/freebsd/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 *>(allocator.GetMetaData(allocated)); in HwasanAllocate()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp159 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 *MD);
202 SmallDenseMap<const Metadata *, Data, 32> Info; // Node properties.
212 Metadata &getFwdReference(MDNode &Op);
219 SmallDenseMap<const Metadata *, Data, 32> InfoStorage;
243 Metadata *map(const MDNode &N);
265 Metadata *mapTopLevelUniquedNode(const MDNode &FirstN);
276 std::optional<Metadata *> tryToMapOperand(const Metadata *Op);
[all …]
/freebsd/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()
159 unsigned getMetadataOrNullID(const Metadata *MD) const { in getMetadataOrNullID()
203 ArrayRef<const Metadata *> getMDStrings() const { in getMDStrings()
208 ArrayRef<const Metadata *> getNonMDStrings() const { in getNonMDStrings()
267 const MDNode *enumerateMetadataImpl(unsigned F, const Metadata *MD);
[all …]
/freebsd/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()
158 unsigned getMetadataOrNullID(const Metadata *MD) const { in getMetadataOrNullID()
203 ArrayRef<const Metadata *> getMDStrings() const { in getMDStrings()
208 ArrayRef<const Metadata *> getNonMDStrings() const { in getNonMDStrings()
264 const MDNode *enumerateMetadataImpl(unsigned F, const Metadata *MD);
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGLoopInfo.cpp25 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 *, 4> Args; in createPartialUnrollMetadata()
120 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.count"), 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/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/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp128 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 *MD, unsigned Idx);
175 Metadata *upgradeTypeRef(Metadata *MaybeUUID);
178 Metadata *upgradeTypeRefArray(Metadata *MaybeTuple);
181 Metadata *resolveTypeRefArray(Metadata *MaybeTuple);
[all …]
/freebsd/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 *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in MsanDeallocate()
[all …]
/freebsd/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 *)allocator.GetMetaData(beg); in AllocationBegin()
204 Metadata *b = (Metadata *)allocator.GetMetaData(p); in AllocationSize()
209 return reinterpret_cast<Metadata *>(allocator.GetMetaData(p))->requested_size; in AllocationSizeFast()
/freebsd/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 …]
H A DTimeProfiler.cpp76 TimeTraceMetadata Metadata; member
81 : Start(std::move(S)), End(std::move(E)), Name(std::move(N)), Metadata(), in TimeTraceProfilerEntry()
83 Metadata.Detail = std::move(Dt); in TimeTraceProfilerEntry()
89 Metadata(std::move(Mt)), AsyncEvent(Ae) {} in TimeTraceProfilerEntry()
127 begin(std::string Name, llvm::function_ref<TimeTraceMetadata()> Metadata, in begin()
130 ClockType::now(), TimePointType(), std::move(Name), Metadata(), in begin()
206 if (!E.Metadata.isEmpty()) { in write()
208 if (!E.Metadata.Detail.empty()) in write()
209 J.attribute("detail", E.Metadata.Detail); in write()
210 if (!E.Metadata.File.empty()) in write()
[all …]
/freebsd/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/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()

12345678910