LLVM  4.0.0
Classes | Namespaces | Functions | Variables
AMDGPURuntimeMD.cpp File Reference

Generates AMDGPU runtime metadata for YAML mapping. More...

#include "AMDGPU.h"
#include "AMDGPURuntimeMetadata.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/YAMLTraits.h"
#include <vector>
#include "AMDGPURuntimeMD.h"
Include dependency graph for AMDGPURuntimeMD.cpp:

Go to the source code of this file.

Classes

struct  llvm::yaml::MappingTraits< KernelArg::Metadata >
 
struct  llvm::yaml::MappingTraits< Kernel::Metadata >
 
struct  llvm::yaml::MappingTraits< Program::Metadata >
 

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 
 llvm::yaml
 

Functions

static std::vector< uint32_tgetThreeInt32 (MDNode *Node)
 
static std::string getOCLTypeName (Type *Ty, bool Signed)
 
static KernelArg::ValueType getRuntimeMDValueType (Type *Ty, StringRef TypeName)
 
static
KernelArg::AddressSpaceQualifer 
getRuntimeAddrSpace (AMDGPUAS::AddressSpaces A)
 
static KernelArg::Metadata getRuntimeMDForKernelArg (const DataLayout &DL, Type *T, KernelArg::Kind Kind, StringRef BaseTypeName="", StringRef TypeName="", StringRef ArgName="", StringRef TypeQual="", StringRef AccQual="")
 
static Kernel::Metadata getRuntimeMDForKernel (const Function &F)
 
static void checkRuntimeMDYAMLString (const std::string &YAML)
 

Variables

static cl::opt< boolDumpRuntimeMD ("amdgpu-dump-rtmd", cl::desc("Dump AMDGPU runtime metadata"))
 
static cl::opt< boolCheckRuntimeMDParser ("amdgpu-check-rtmd-parser", cl::Hidden, cl::desc("Check AMDGPU runtime metadata YAML parser"))
 

Detailed Description

Generates AMDGPU runtime metadata for YAML mapping.

Definition in file AMDGPURuntimeMD.cpp.

Function Documentation

static void checkRuntimeMDYAMLString ( const std::string &  YAML)
static

Definition at line 366 of file AMDGPURuntimeMD.cpp.

References llvm::errs(), and P.

Referenced by llvm::getRuntimeMDYAMLString().

static std::string getOCLTypeName ( Type Ty,
bool  Signed 
)
static
static KernelArg::AddressSpaceQualifer getRuntimeAddrSpace ( AMDGPUAS::AddressSpaces  A)
static
static Kernel::Metadata getRuntimeMDForKernel ( const Function F)
static
static KernelArg::Metadata getRuntimeMDForKernelArg ( const DataLayout DL,
Type T,
KernelArg::Kind  Kind,
StringRef  BaseTypeName = "",
StringRef  TypeName = "",
StringRef  ArgName = "",
StringRef  TypeQual = "",
StringRef  AccQual = "" 
)
static
static KernelArg::ValueType getRuntimeMDValueType ( Type Ty,
StringRef  TypeName 
)
static
static std::vector<uint32_t> getThreeInt32 ( MDNode Node)
static

Variable Documentation

cl::opt<bool> CheckRuntimeMDParser("amdgpu-check-rtmd-parser", cl::Hidden, cl::desc("Check AMDGPU runtime metadata YAML parser"))
static
cl::opt<bool> DumpRuntimeMD("amdgpu-dump-rtmd", cl::desc("Dump AMDGPU runtime metadata"))
static