| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | DebugInfoMetadata.h | 136 ArrayRef<Metadata *> Ops1, ArrayRef<Metadata *> Ops2 = std::nullopt) 189 static bool classof(const Metadata *MD) { in classof() 234 unsigned Tag, ArrayRef<Metadata *> Ops1, in GenericDINode() 235 ArrayRef<Metadata *> Ops2) in GenericDINode() 245 StringRef Header, ArrayRef<Metadata *> DwarfOps, 252 MDString *Header, ArrayRef<Metadata *> DwarfOps, 257 SmallVector<Metadata *, 4>(dwarf_operands())); in cloneImpl() 265 ArrayRef<Metadata *> DwarfOps), 269 ArrayRef<Metadata *> DwarfOps), 289 void replaceDwarfOperandWith(unsigned I, Metadata *New) { in replaceDwarfOperandWith() [all …]
|
| H A D | Metadata.h | 61 class Metadata { 85 Metadata(unsigned ID, StorageType Storage) in Metadata() function 90 ~Metadata() = default; 96 void handleChangedOperand(void *, Metadata *) { in handleChangedOperand() argument 143 DEFINE_ISA_CONVERSION_FUNCTIONS(Metadata, LLVMMetadataRef) in DEFINE_ISA_CONVERSION_FUNCTIONS() argument 146 inline Metadata **unwrap(LLVMMetadataRef *MDs) { in DEFINE_ISA_CONVERSION_FUNCTIONS() 147 return reinterpret_cast<Metadata**>(MDs); in DEFINE_ISA_CONVERSION_FUNCTIONS() 156 template <> struct isa_impl<CLASS, Metadata> { \ 157 static inline bool doit(const Metadata &MD) { \ 158 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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | LLVMContextImpl.h | 244 ArrayRef<Metadata *> RawOps; 249 MDNodeOpsKey(ArrayRef<Metadata *> Ops) in MDNodeOpsKey() 276 static unsigned calculateHash(ArrayRef<Metadata *> Ops); 302 MDNodeKeyImpl(ArrayRef<Metadata *> Ops) : MDNodeOpsKey(Ops) {} 318 Metadata *Scope; 319 Metadata *InlinedAt; 322 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope, 323 Metadata *InlinedAt, bool ImplicitCode) 346 MDNodeKeyImpl(unsigned Tag, MDString *Header, ArrayRef<Metadata *> DwarfOps) 364 Metadata *CountNode; [all …]
|
| H A D | DebugInfoMetadata.cpp | 45 unsigned Column, ArrayRef<Metadata *> MDs, in DILocation() 67 unsigned Column, Metadata *Scope, in getImpl() 68 Metadata *InlinedAt, bool ImplicitCode, in getImpl() 84 SmallVector<Metadata *, 2> Ops; in getImpl() 323 ArrayRef<Metadata *> DwarfOps, in getImpl() 339 Metadata *PreOps[] = {Header}; in getImpl() 381 ArrayRef<Metadata *> Ops) in DISubrange() 393 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl() 402 DISubrange *DISubrange::getImpl(LLVMContext &Context, Metadata *CountNode, in getImpl() 403 Metadata *LB, Metadata *UB, Metadata *Stride, in getImpl() [all …]
|
| H A D | Metadata.cpp | 59 MetadataAsValue::MetadataAsValue(Type *Ty, Metadata *MD) in MetadataAsValue() 80 static Metadata *canonicalizeMetadataForValue(LLVMContext &Context, in canonicalizeMetadataForValue() 81 Metadata *MD) { in canonicalizeMetadataForValue() 102 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get() 111 Metadata *MD) { in getIfExists() 117 void MetadataAsValue::handleChangedMetadata(Metadata *MD) { in handleChangedMetadata() 150 bool MetadataTracking::track(void *Ref, Metadata &MD, OwnerTy Owner) { in track() 152 assert((Owner || *static_cast<Metadata **>(Ref) == &MD) && in track() 161 PH->Use = static_cast<Metadata **>(Ref); in track() 167 void MetadataTracking::untrack(void *Ref, Metadata &MD) { in untrack() [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 | 45 SmallVector<Metadata *, 4> Vals(Weights.size() + 1); in createBranchWeights() 63 SmallVector<Metadata *, 8> Ops; in createFunctionEntryCount() 101 SmallVector<Metadata *, 4> Ops; in createCallees() 110 SmallVector<Metadata *, 4> Ops; in createCallbackEncoding() 134 SmallVector<Metadata *, 4> Ops; in mergeCallbackEncodings() 155 SmallVector<Metadata *, 4> Ops; in createRTTIPointerPrologue() 162 SmallVector<Metadata *, 2> Ops; in createPCSections() 171 SmallVector<Metadata *, 1> AuxMDs; in createPCSections() 183 SmallVector<Metadata *, 3> Args(1, nullptr); in createAnonymousAARoot() 227 SmallVector<Metadata *, 4> Vals(Fields.size() * 3); in createTBAAStructNode() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/tests/ |
| H A D | crash_handler_api.cpp | 31 Metadata[Slot].Addr = Addr; in metadata() 32 Metadata[Slot].RequestedSize = Size; in metadata() 33 Metadata[Slot].IsDeallocated = IsDeallocated; in metadata() 34 Metadata[Slot].AllocationTrace.ThreadID = 123; in metadata() 35 Metadata[Slot].DeallocationTrace.ThreadID = 321; in metadata() 36 setupBacktraces(&Metadata[Slot]); in metadata() 81 __gwp_asan_get_metadata(&State, Metadata, ErrorPtr); in checkMetadata() 83 EXPECT_EQ(Metadata[Index].Addr, __gwp_asan_get_allocation_address(Meta)); in checkMetadata() 84 EXPECT_EQ(Metadata[Index].RequestedSize, in checkMetadata() 86 EXPECT_EQ(Metadata[Index].AllocationTrace.ThreadID, in checkMetadata() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | AMDGPUMetadata.h | 138 struct Metadata final { 150 Metadata() = default; 205 struct Metadata final { 236 Metadata() = default; 274 struct Metadata final { 308 Metadata() = default; 346 struct Metadata final { 365 Metadata() = default; 402 struct Metadata final { 412 Attrs::Metadata mAttrs = Attrs::Metadata(); [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | ValueMapper.cpp | 157 Metadata *mapMetadata(const Metadata *MD); 182 std::optional<Metadata *> mapSimpleMetadata(const Metadata *MD); 184 Metadata *mapToMetadata(const Metadata *Key, Metadata *Val); 185 Metadata *mapToSelf(const Metadata *MD); 200 SmallDenseMap<const Metadata *, Data, 32> Info; // Node properties. 210 Metadata &getFwdReference(MDNode &Op); 217 SmallDenseMap<const Metadata *, Data, 32> InfoStorage; 241 Metadata *map(const MDNode &N); 263 Metadata *mapTopLevelUniquedNode(const MDNode &FirstN); 274 std::optional<Metadata *> tryToMapOperand(const Metadata *Op); [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/ |
| H A D | hwasan_allocator.cpp | 78 inline void Metadata::SetAllocated(u32 stack, u64 size) { in SetAllocated() 89 inline void Metadata::SetUnallocated() { in SetUnallocated() 96 inline bool Metadata::IsAllocated() const { in IsAllocated() 101 inline u64 Metadata::GetRequestedSize() const { in GetRequestedSize() 105 inline u32 Metadata::GetAllocStackId() const { in GetAllocStackId() 113 inline void Metadata::SetLsanTag(__lsan::ChunkTag tag) { in SetLsanTag() 117 inline __lsan::ChunkTag Metadata::GetLsanTag() const { in GetLsanTag() 235 Metadata *meta = in HwasanAllocate() 236 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in HwasanAllocate() 281 Metadata *meta = in HwasanDeallocate() [all …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGLoopInfo.cpp | 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 *, 4> Args; in createPartialUnrollMetadata() 120 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.count"), in createPartialUnrollMetadata() [all …]
|
| H A D | CGLoopInfo.h | 132 createLoopPropertiesMetadata(llvm::ArrayRef<llvm::Metadata *> LoopProperties); 153 llvm::ArrayRef<llvm::Metadata *> LoopProperties, 157 llvm::ArrayRef<llvm::Metadata *> LoopProperties, 161 llvm::ArrayRef<llvm::Metadata *> LoopProperties, 165 llvm::ArrayRef<llvm::Metadata *> LoopProperties, 169 llvm::ArrayRef<llvm::Metadata *> LoopProperties, 173 llvm::ArrayRef<llvm::Metadata *> LoopProperties, 190 llvm::ArrayRef<llvm::Metadata *> LoopProperties,
|
| /openbsd-src/gnu/llvm/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 | 54 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; }) &&
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Bitcode/Reader/ |
| H A D | MetadataLoader.cpp | 127 void push_back(Metadata *MD) { MetadataPtrs.emplace_back(MD); } in push_back() 129 Metadata *back() const { return MetadataPtrs.back(); } in back() 133 Metadata *operator[](unsigned i) const { in operator []() 138 Metadata *lookup(unsigned I) const { in lookup() 153 Metadata *getMetadataFwdRef(unsigned Idx); 159 Metadata *getMetadataIfResolved(unsigned Idx); 162 void assignValue(Metadata *MD, unsigned Idx); 174 Metadata *upgradeTypeRef(Metadata *MaybeUUID); 177 Metadata *upgradeTypeRefArray(Metadata *MaybeTuple); 180 Metadata *resolveTypeRefArray(Metadata *MaybeTuple); [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cpp | 27 struct Metadata { struct 53 static const uptr kMetadataSize = sizeof(Metadata); 72 static const uptr kMetadataSize = sizeof(Metadata); 87 static const uptr kMetadataSize = sizeof(Metadata); 101 static const uptr kMetadataSize = sizeof(Metadata); 115 static const uptr kMetadataSize = sizeof(Metadata); 182 Metadata *meta = in MsanAllocate() 183 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate() 205 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in MsanDeallocate() 231 Metadata *meta = reinterpret_cast<Metadata*>(allocator.GetMetaData(old_p)); in MsanReallocate() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Module-Metadata/t/ |
| H A D | metadata.t | 22 require_ok('Module::Metadata'); 26 my $module = Module::Metadata->find_module_by_name( 27 'Module::Metadata' ); 69 my $pm_info = Module::Metadata->new_from_module( 77 my $pm_info = Module::Metadata->new_from_file( $file, inc => [] ); 86 my $pm_info = Module::Metadata->new_from_file( $file ); 91 $pm_info = Module::Metadata->new_from_handle( $handle, $file ); 93 $pm_info = Module::Metadata->new_from_handle( $handle ); 100 my $pm_info = Module::Metadata->new_from_module( 117 my $pm_info = Module::Metadata->new_from_file( $file ); [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/dfsan/ |
| H A D | dfsan_allocator.cpp | 27 struct Metadata { struct 46 static const uptr kMetadataSize = sizeof(Metadata); 117 Metadata *meta = in DFsanAllocate() 118 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate() 131 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in dfsan_deallocate() 148 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(old_p)); in DFsanReallocate() 183 Metadata *b = (Metadata *)allocator.GetMetaData(p); in AllocationSize()
|