LLVM
8.0.1
|
Verifier for AMDGPU HSA metadata. More...
#include "llvm/BinaryFormat/AMDGPUMetadataVerifier.h"
Public Member Functions | |
MetadataVerifier (bool Strict) | |
Construct a MetadataVerifier, specifying whether it will operate in Strict mode. More... | |
bool | verify (msgpack::Node &HSAMetadataRoot) |
Verify given HSA metadata. More... | |
Verifier for AMDGPU HSA metadata.
Operates in two modes:
In strict mode, metadata must already be well-typed.
In non-strict mode, metadata is coerced into expected types when possible.
Definition at line 34 of file AMDGPUMetadataVerifier.h.
|
inline |
Construct a MetadataVerifier, specifying whether it will operate in Strict
mode.
Definition at line 57 of file AMDGPUMetadataVerifier.h.
References verify().
bool llvm::AMDGPU::HSAMD::V3::MetadataVerifier::verify | ( | msgpack::Node & | HSAMetadataRoot | ) |
Verify given HSA metadata.
Definition at line 290 of file AMDGPUMetadataVerifier.cpp.
References llvm::dyn_cast(), and llvm::msgpack::ScalarNode::SK_String.
Referenced by llvm::AMDGPUTargetAsmStreamer::EmitHSAMetadata(), llvm::AMDGPUTargetELFStreamer::EmitHSAMetadata(), and MetadataVerifier().