20 using namespace llvm::AMDGPU;
21 using namespace llvm::AMDGPU::CodeObject;
67 YIO.
enumCase(EN,
"HiddenCompletionAction",
170 std::vector<uint32_t>());
195 namespace CodeObject {
199 std::string YamlString,
Metadata &CodeObjectMetadata) {
201 YamlInput >> CodeObjectMetadata;
202 return YamlInput.
error();
207 Metadata CodeObjectMetadata, std::string &YamlString) {
210 YamlOutput << CodeObjectMetadata;
211 return std::error_code();
void mapOptional(const char *Key, T &Val)
constexpr char WorkgroupGroupSegmentSize[]
Key for Kernel::CodeProps::Metadata::mWorkgroupGroupSegmentSize.
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
constexpr char Version[]
Key for CodeObject::Metadata::mVersion.
constexpr char Printf[]
Key for CodeObject::Metadata::mPrintf.
constexpr char ValueKind[]
Key for Kernel::Arg::Metadata::mValueKind.
constexpr char IsVolatile[]
Key for Kernel::Arg::Metadata::mIsVolatile.
constexpr char IsConst[]
Key for Kernel::Arg::Metadata::mIsConst.
constexpr char IsRestrict[]
Key for Kernel::Arg::Metadata::mIsRestrict.
#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)
Utility for declaring that a std::vector of a particular type should be considered a YAML sequence...
static void enumeration(IO &YIO, AccessQualifier &EN)
constexpr char ReservedNumVGPRs[]
Key for Kernel::DebugProps::Metadata::mReservedNumVGPRs.
constexpr char PointeeAlign[]
Key for Kernel::Arg::Metadata::mPointeeAlign.
constexpr char LanguageVersion[]
Key for Kernel::Metadata::mLanguageVersion.
static void enumeration(IO &YIO, ValueKind &EN)
AccessQualifier
Access qualifiers.
This class should be specialized by any type that needs to be converted to/from a YAML mapping...
constexpr char WorkitemPrivateSegmentSize[]
Key for Kernel::CodeProps::Metadata::mWorkitemPrivateSegmentSize.
constexpr char ReqdWorkGroupSize[]
Key for Kernel::Attr::Metadata::mReqdWorkGroupSize.
void enumCase(T &Val, const char *Str, const T ConstVal)
constexpr char Attrs[]
Key for Kernel::Metadata::mAttrs.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
constexpr char Name[]
Key for Kernel::Arg::Metadata::mName.
static void enumeration(IO &YIO, AddressSpaceQualifier &EN)
constexpr char WorkitemNumVGPRs[]
Key for Kernel::CodeProps::Metadata::mWorkitemNumVGPRs.
The Output class is used to generate a yaml document from in-memory structs and vectors.
constexpr char Name[]
Key for Kernel::Metadata::mName.
constexpr char Language[]
Key for Kernel::Metadata::mLanguage.
constexpr char KernargSegmentSize[]
Key for Kernel::CodeProps::Metadata::mKernargSegmentSize.
constexpr char WavefrontNumSGPRs[]
Key for Kernel::CodeProps::Metadata::mWavefrontNumSGPRs.
constexpr char CodeProps[]
Key for Kernel::Metadata::mCodeProps.
This class should be specialized by any integral type that converts to/from a YAML scalar where there...
constexpr char PrivateSegmentAlign[]
Key for Kernel::CodeProps::Metadata::mPrivateSegmentAlign.
constexpr char ReservedFirstVGPR[]
Key for Kernel::DebugProps::Metadata::mReservedFirstVGPR.
constexpr char ValueType[]
Key for Kernel::Arg::Metadata::mValueType.
constexpr char VecTypeHint[]
Key for Kernel::Attr::Metadata::mVecTypeHint.
constexpr char AddrSpaceQual[]
Key for Kernel::Arg::Metadata::mAddrSpaceQual.
constexpr char KernargSegmentAlign[]
Key for Kernel::CodeProps::Metadata::mKernargSegmentAlign.
constexpr char DebuggerABIVersion[]
Key for Kernel::DebugProps::Metadata::mDebuggerABIVersion.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
constexpr char WavefrontPrivateSegmentOffsetSGPR[]
Key for Kernel::DebugProps::Metadata::mWavefrontPrivateSegmentOffsetSGPR.
constexpr char AccQual[]
Key for Kernel::Arg::Metadata::mAccQual.
constexpr char Kernels[]
Key for CodeObject::Metadata::mKernels.
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
constexpr char IsPipe[]
Key for Kernel::Arg::Metadata::mIsPipe.
constexpr char WavefrontSize[]
Key for Kernel::CodeProps::Metadata::mWavefrontSize.
constexpr char TypeName[]
Key for Kernel::Arg::Metadata::mTypeName.
virtual bool outputting()=0
constexpr char GroupSegmentAlign[]
Key for Kernel::CodeProps::Metadata::mGroupSegmentAlign.
AddressSpaceQualifier
Address space qualifiers.
static void enumeration(IO &YIO, ValueType &EN)
A raw_ostream that writes to an std::string.
constexpr char DebugProps[]
Key for Kernel::Metadata::mDebugProps.
constexpr char PrivateSegmentBufferSGPR[]
Key for Kernel::DebugProps::Metadata::mPrivateSegmentBufferSGPR.
void mapRequired(const char *Key, T &Val)
constexpr char WorkGroupSizeHint[]
Key for Kernel::Attr::Metadata::mWorkGroupSizeHint.