LLVM  8.0.1
Public Member Functions | List of all members
llvm::AMDGPU::HSAMD::V3::MetadataVerifier Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MetadataVerifier()

llvm::AMDGPU::HSAMD::V3::MetadataVerifier::MetadataVerifier ( bool  Strict)
inline

Construct a MetadataVerifier, specifying whether it will operate in Strict mode.

Definition at line 57 of file AMDGPUMetadataVerifier.h.

References verify().

Member Function Documentation

◆ verify()

bool llvm::AMDGPU::HSAMD::V3::MetadataVerifier::verify ( msgpack::Node HSAMetadataRoot)

Verify given HSA metadata.

Returns
True when successful, false when metadata is invalid.

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().


The documentation for this class was generated from the following files: