LLVM  6.0.0svn
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::AMDGPU::CodeObject::Metadata Struct Referencefinal

In-memory representation of code object metadata. More...

#include "llvm/Support/AMDGPUCodeObjectMetadata.h"

Collaboration diagram for llvm::AMDGPU::CodeObject::Metadata:
Collaboration graph
[legend]

Public Member Functions

 Metadata ()=default
 Default constructor. More...
 

Static Public Member Functions

static std::error_code fromYamlString (std::string YamlString, Metadata &CodeObjectMetadata)
 Converts YamlString to CodeObjectMetadata. More...
 
static std::error_code toYamlString (Metadata CodeObjectMetadata, std::string &YamlString)
 Converts CodeObjectMetadata to YamlString. More...
 

Public Attributes

std::vector< uint32_tmVersion = std::vector<uint32_t>()
 Code object metadata version. Required. More...
 
std::vector< std::string > mPrintf = std::vector<std::string>()
 Printf metadata. Optional. More...
 
std::vector< Kernel::MetadatamKernels = std::vector<Kernel::Metadata>()
 Kernels metadata. Optional. More...
 

Detailed Description

In-memory representation of code object metadata.

Definition at line 402 of file AMDGPUCodeObjectMetadata.h.

Constructor & Destructor Documentation

◆ Metadata()

llvm::AMDGPU::CodeObject::Metadata::Metadata ( )
default

Default constructor.

Member Function Documentation

◆ fromYamlString()

std::error_code llvm::AMDGPU::CodeObject::Metadata::fromYamlString ( std::string  YamlString,
Metadata CodeObjectMetadata 
)
static

Converts YamlString to CodeObjectMetadata.

Definition at line 200 of file AMDGPUCodeObjectMetadata.cpp.

References llvm::yaml::Input::error().

Referenced by llvm::AMDGPU::CodeObject::MetadataStreamer::toYamlString().

◆ toYamlString()

std::error_code llvm::AMDGPU::CodeObject::Metadata::toYamlString ( Metadata  CodeObjectMetadata,
std::string &  YamlString 
)
static

Converts CodeObjectMetadata to YamlString.

Definition at line 208 of file AMDGPUCodeObjectMetadata.cpp.

References llvm::max().

Referenced by llvm::AMDGPU::CodeObject::MetadataStreamer::toYamlString().

Member Data Documentation

◆ mKernels

std::vector<Kernel::Metadata> llvm::AMDGPU::CodeObject::Metadata::mKernels = std::vector<Kernel::Metadata>()

◆ mPrintf

std::vector<std::string> llvm::AMDGPU::CodeObject::Metadata::mPrintf = std::vector<std::string>()

Printf metadata. Optional.

Definition at line 406 of file AMDGPUCodeObjectMetadata.h.

Referenced by llvm::yaml::MappingTraits< CodeObject::Metadata >::mapping().

◆ mVersion

std::vector<uint32_t> llvm::AMDGPU::CodeObject::Metadata::mVersion = std::vector<uint32_t>()

Code object metadata version. Required.

Definition at line 404 of file AMDGPUCodeObjectMetadata.h.

Referenced by llvm::yaml::MappingTraits< CodeObject::Metadata >::mapping().


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