| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DebugInfoMetadata.h | 142 ArrayRef<Metadata *> Ops1, ArrayRef<Metadata *> Ops2 = {}) 195 static bool classof(const Metadata *MD) { in classof() 244 unsigned Tag, ArrayRef<Metadata *> Ops1, in GenericDINode() 245 ArrayRef<Metadata *> Ops2) in GenericDINode() 255 StringRef Header, ArrayRef<Metadata *> DwarfOps, 263 ArrayRef<Metadata *> DwarfOps, 269 SmallVector<Metadata *, 4>(dwarf_operands())); in cloneImpl() 277 ArrayRef<Metadata *> DwarfOps), 281 ArrayRef<Metadata *> DwarfOps), 301 void replaceDwarfOperandWith(unsigned I, Metadata *New) { in replaceDwarfOperandWith() [all …]
|
| H A D | Metadata.h | 63 class Metadata { 87 Metadata(unsigned ID, StorageType Storage) in Metadata() function 92 ~Metadata() = default; 98 void handleChangedOperand(void *, Metadata *) { in handleChangedOperand() argument 150 DEFINE_ISA_CONVERSION_FUNCTIONS(Metadata, LLVMMetadataRef) in DEFINE_ISA_CONVERSION_FUNCTIONS() argument 153 inline Metadata **unwrap(LLVMMetadataRef *MDs) { in DEFINE_ISA_CONVERSION_FUNCTIONS() 154 return reinterpret_cast<Metadata**>(MDs); in DEFINE_ISA_CONVERSION_FUNCTIONS() 163 template <> struct isa_impl<CLASS, Metadata> { \ 164 static inline bool doit(const Metadata &MD) { \ 165 return MD.getMetadataID() == Metadata::CLASS##Kind; \ [all …]
|
| H A D | TrackingMDRef.h | 26 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 D | LLVMContextImpl.h | 241 ArrayRef<Metadata *> RawOps; 246 MDNodeOpsKey(ArrayRef<Metadata *> Ops) 273 static unsigned calculateHash(ArrayRef<Metadata *> Ops); 299 MDNodeKeyImpl(ArrayRef<Metadata *> Ops) : MDNodeOpsKey(Ops) {} 313 Metadata *Scope; 314 Metadata *InlinedAt; 323 MDNodeKeyImpl(unsigned Line, uint16_t Column, Metadata *Scope, 324 Metadata *InlinedAt, bool ImplicitCode, uint64_t AtomGroup, 376 MDNodeKeyImpl(unsigned Tag, MDString *Header, ArrayRef<Metadata *> DwarfOps) 394 Metadata *CountNode; [all …]
|
| H A D | DebugInfoMetadata.cpp | 68 ArrayRef<Metadata *> MDs, bool ImplicitCode) in DILocation() 99 unsigned Column, Metadata *Scope, in getImpl() 100 Metadata *InlinedAt, bool ImplicitCode, in getImpl() 118 SmallVector<Metadata *, 2> Ops; in getImpl() 574 ArrayRef<Metadata *> DwarfOps, in getImpl() 590 Metadata *PreOps[] = {Header}; in getImpl() 632 ArrayRef<Metadata *> Ops) in DISubrange() 644 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl() 653 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl() 654 Metadata *LB, Metadata *UB, Metadata *Stride, in getImpl() [all …]
|
| H A D | Metadata.cpp | 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 *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 D | ProfileSummary.cpp | 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 *EntryMD[3] = { in getDetailedSummaryMD() 66 Metadata *Ops[2] = {MDString::get(Context, "DetailedSummary"), in getDetailedSummaryMD() [all …]
|
| H A D | MDBuilder.cpp | 58 SmallVector<Metadata *, 4> Vals(Weights.size() + Offset); in createBranchWeights() 76 SmallVector<Metadata *, 8> Ops; in createFunctionEntryCount() 113 SmallVector<Metadata *, 4> Ops; in createCallees() 122 SmallVector<Metadata *, 4> Ops; in createCallbackEncoding() 146 SmallVector<Metadata *, 4> Ops; in mergeCallbackEncodings() 168 SmallVector<Metadata *, 4> Ops; in createRTTIPointerPrologue() 175 SmallVector<Metadata *, 2> Ops; in createPCSections() 184 SmallVector<Metadata *, 1> AuxMDs; in createPCSections() 196 SmallVector<Metadata *, 3> Args(1, nullptr); in createAnonymousAARoot() 240 SmallVector<Metadata *, 4> Vals(Fields.size() * 3); in createTBAAStructNode() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | AMDGPUMetadata.h | 140 struct Metadata final { 152 Metadata() = default; 207 struct Metadata final { 238 Metadata() = default; 276 struct Metadata final { 310 Metadata() = default; 348 struct Metadata final { 367 Metadata() = default; 404 struct Metadata final { 414 Attrs::Metadata mAttrs = Attrs::Metadata(); [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGLoopInfo.cpp | 26 ArrayRef<llvm::Metadata *> LoopProperties) { in createFollowupMetadata() 29 SmallVector<Metadata *, 4> Args; in createFollowupMetadata() 35 SmallVector<Metadata *, 4> 37 ArrayRef<Metadata *> LoopProperties, in createPipeliningMetadata() 47 SmallVector<Metadata *, 4> Args; in createPipeliningMetadata() 61 Metadata *Vals[] = { in createPipeliningMetadata() 74 SmallVector<Metadata *, 4> 76 ArrayRef<Metadata *> LoopProperties, in createPartialUnrollMetadata() 95 SmallVector<Metadata *, 4> FollowupLoopProperties; in createPartialUnrollMetadata() 105 SmallVector<Metadata *, 4> Followup = createPipeliningMetadata( in createPartialUnrollMetadata() [all …]
|
| H A D | CGLoopInfo.h | 135 std::optional<llvm::SmallVector<llvm::Metadata *, 4>> 141 llvm::ArrayRef<llvm::Metadata *> LoopProperties); 160 llvm::SmallVector<llvm::Metadata *, 4> 162 llvm::ArrayRef<llvm::Metadata *> LoopProperties, 164 llvm::SmallVector<llvm::Metadata *, 4> 166 llvm::ArrayRef<llvm::Metadata *> LoopProperties, 168 llvm::SmallVector<llvm::Metadata *, 4> 170 llvm::ArrayRef<llvm::Metadata *> LoopProperties, 172 llvm::SmallVector<llvm::Metadata *, 4> 174 llvm::ArrayRef<llvm::Metadata *> LoopProperties, [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaAPINotes.cpp | 141 Sema &S, Decl *D, bool IsAddition, VersionedInfoMetadata Metadata, in handleAPINotedAttribute() argument 144 if (Metadata.IsActive) { in handleAPINotedAttribute() 150 S.Context, Metadata.Version, *Existing, /*IsReplacedByActive*/ true); in handleAPINotedAttribute() 167 S.Context, Metadata.Version, Attr, in handleAPINotedAttribute() 168 /*IsReplacedByActive*/ Metadata.IsReplacement); in handleAPINotedAttribute() 176 S.Context, Metadata.Version, AttrKindFor<A>::value, in handleAPINotedAttribute() 177 /*IsReplacedByActive*/ Metadata.IsReplacement); in handleAPINotedAttribute() 184 VersionedInfoMetadata Metadata, in handleAPINotedAttribute() argument 187 S, D, ShouldAddAttribute, Metadata, CreateAttr, [](const Decl *D) { in handleAPINotedAttribute() 197 VersionedInfoMetadata Metadata) { in handleAPINotedRetainCountAttribute() argument [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_allocator.cpp | 83 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 D | ValueMapper.cpp | 161 Metadata *mapMetadata(const Metadata *MD); 186 std::optional<Metadata *> mapSimpleMetadata(const Metadata *MD); 188 Metadata *mapToMetadata(const Metadata *Key, Metadata *Val); 189 Metadata *mapToSelf(const Metadata *MD); 204 SmallDenseMap<const Metadata *, Data, 32> Info; // Node properties. 214 Metadata &getFwdReference(MDNode &Op); 221 SmallDenseMap<const Metadata *, Data, 32> InfoStorage; 245 Metadata *map(const MDNode &N); 267 Metadata *mapTopLevelUniquedNode(const MDNode &FirstN); 278 std::optional<Metadata *> tryToMapOperand(const Metadata *Op); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/ |
| H A D | DXILValueEnumerator.h | 36 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 D | ValueEnumerator.h | 35 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/include/clang/Tooling/Transformer/ |
| H A D | RewriteRule.h | 50 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 D | Transformer.h | 49 T Metadata; member 124 auto Metadata = Rule.Metadata[SelectedCase]->eval(Match); 125 if (!Metadata) 126 return Metadata.takeError(); 127 Result.Metadata = std::move(*Metadata); 149 assert(llvm::all_of(Rule.Metadata, 150 [](const typename transformer::Generator<T> &Metadata) 151 -> bool { return !!Metadata; }) &&
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | MetadataLoader.cpp | 125 void push_back(Metadata *MD) { MetadataPtrs.emplace_back(MD); } in push_back() 127 Metadata *back() const { return MetadataPtrs.back(); } in back() 131 Metadata *operator[](unsigned i) const { in operator []() 136 Metadata *lookup(unsigned I) const { in lookup() 151 Metadata *getMetadataFwdRef(unsigned Idx); 157 Metadata *getMetadataIfResolved(unsigned Idx); 160 void assignValue(Metadata *MD, unsigned Idx); 172 Metadata *upgradeTypeRef(Metadata *MaybeUUID); 175 Metadata *upgradeTypeRefArray(Metadata *MaybeTuple); 178 Metadata *resolveTypeRefArray(Metadata *MaybeTuple); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | AMDGPUMetadata.cpp | 22 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/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_allocator.cpp | 29 struct Metadata { struct 55 static const uptr kMetadataSize = sizeof(Metadata); 127 Metadata *meta = in DFsanAllocate() 128 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate() 141 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in dfsan_deallocate() 158 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(old_p)); in DFsanReallocate() 193 Metadata *b = (Metadata *)allocator.GetMetaData(beg); in AllocationBegin() 207 Metadata *b = (Metadata *)allocator.GetMetaData(p); in AllocationSize() 212 return reinterpret_cast<Metadata *>(allocator.GetMetaData(p))->requested_size; in AllocationSizeFast()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/ |
| H A D | crash_handler.cpp | 48 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 D | BlockPrinter.cpp | 45 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/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILTranslateMetadata.cpp | 85 SmallVector<Metadata *> SRVs, UAVs, CBufs, Smps; in emitResourceMetadata() 95 Metadata *SRVMD = SRVs.empty() ? nullptr : MDNode::get(Context, SRVs); in emitResourceMetadata() 96 Metadata *UAVMD = UAVs.empty() ? nullptr : MDNode::get(Context, UAVs); in emitResourceMetadata() 97 Metadata *CBufMD = CBufs.empty() ? nullptr : MDNode::get(Context, CBufs); in emitResourceMetadata() 98 Metadata *SmpMD = Smps.empty() ? nullptr : MDNode::get(Context, Smps); in emitResourceMetadata() 140 static SmallVector<Metadata *> 142 SmallVector<Metadata *> MDVals; in getTagValueAsMetadata() 173 SmallVector<Metadata *> MDVals; in getEntryPropAsMetadata() 191 Metadata *NumThreadVals[] = {ConstantAsMetadata::get(ConstantInt::get( in getEntryPropAsMetadata() 214 Metadata *MDVals[5]; in constructEntryMetadata() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cpp | 30 struct Metadata { struct 61 static const uptr kMetadataSize = sizeof(Metadata); 80 static const uptr kMetadataSize = sizeof(Metadata); 96 static const uptr kMetadataSize = sizeof(Metadata); 111 static const uptr kMetadataSize = sizeof(Metadata); 125 static const uptr kMetadataSize = sizeof(Metadata); 139 static const uptr kMetadataSize = sizeof(Metadata); 218 auto *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate() 243 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in MsanDeallocate() 269 Metadata *meta = reinterpret_cast<Metadata*>(allocator.GetMetaData(old_p)); in MsanReallocate() [all …]
|