15 #ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUHSAMETADATASTREAMER_H 16 #define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUHSAMETADATASTREAMER_H 26 class AMDGPUTargetStreamer;
46 virtual void end() = 0;
54 std::unique_ptr<msgpack::Document> HSAMetadataDoc =
55 std::make_unique<msgpack::Document>();
96 void emitHiddenKernelArgs(
const Function &Func,
unsigned &Offset,
100 return HSAMetadataDoc->getRoot().
getMap(
true)[
Key];
104 return HSAMetadataDoc->getRoot();
140 std::vector<uint32_t> getWorkGroupDimensions(
MDNode *
Node)
const;
153 void emitKernelLanguage(
const Function &Func);
155 void emitKernelAttrs(
const Function &Func);
157 void emitKernelArgs(
const Function &Func);
167 void emitHiddenKernelArgs(
const Function &Func);
169 const Metadata &getHSAMetadata()
const {
191 #endif // LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUHSAMETADATASTREAMER_H
A parsed version of the target data layout string in and methods for querying it. ...
This class represents an incoming formal argument to a Function.
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
constexpr char PointeeAlign[]
Key for Kernel::Arg::Metadata::mPointeeAlign.
StringRef getTypeName()
We provide a function which tries to compute the (demangled) name of a type statically.
Track resource usage for kernels / entry functions.
A DocNode that is an array.
MapDocNode & getMap(bool Convert=false)
Get a MapDocNode for a map node.
void dump(const SparseBitVector< ElementSize > &LHS, raw_ostream &out)
The instances of the Type class are immutable: once they are created, they are never changed...
constexpr char TypeName[]
Key for Kernel::Arg::Metadata::mTypeName.
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
bool verify(const TargetRegisterInfo &TRI) const
Check that information hold by this instance make sense for the given TRI.
AccessQualifier
Access qualifiers.
The access may modify the value stored in memory.
AddressSpaceQualifier
Address space qualifiers.
constexpr char AccQual[]
Key for Kernel::Arg::Metadata::mAccQual.
StringRef - Represent a constant reference to a string, i.e.
A node in a MsgPack Document.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.