Lines Matching defs:MD
94 static void mapping(IO &YIO, Kernel::Attrs::Metadata &MD) {
96 MD.mReqdWorkGroupSize, std::vector<uint32_t>());
98 MD.mWorkGroupSizeHint, std::vector<uint32_t>());
100 MD.mVecTypeHint, std::string());
101 YIO.mapOptional(Kernel::Attrs::Key::RuntimeHandle, MD.mRuntimeHandle,
108 static void mapping(IO &YIO, Kernel::Arg::Metadata &MD) {
109 YIO.mapOptional(Kernel::Arg::Key::Name, MD.mName, std::string());
110 YIO.mapOptional(Kernel::Arg::Key::TypeName, MD.mTypeName, std::string());
111 YIO.mapRequired(Kernel::Arg::Key::Size, MD.mSize);
112 YIO.mapRequired(Kernel::Arg::Key::Align, MD.mAlign);
113 YIO.mapRequired(Kernel::Arg::Key::ValueKind, MD.mValueKind);
114 YIO.mapRequired(Kernel::Arg::Key::ValueType, MD.mValueType);
115 YIO.mapOptional(Kernel::Arg::Key::PointeeAlign, MD.mPointeeAlign,
117 YIO.mapOptional(Kernel::Arg::Key::AddrSpaceQual, MD.mAddrSpaceQual,
119 YIO.mapOptional(Kernel::Arg::Key::AccQual, MD.mAccQual,
121 YIO.mapOptional(Kernel::Arg::Key::ActualAccQual, MD.mActualAccQual,
123 YIO.mapOptional(Kernel::Arg::Key::IsConst, MD.mIsConst, false);
124 YIO.mapOptional(Kernel::Arg::Key::IsRestrict, MD.mIsRestrict, false);
125 YIO.mapOptional(Kernel::Arg::Key::IsVolatile, MD.mIsVolatile, false);
126 YIO.mapOptional(Kernel::Arg::Key::IsPipe, MD.mIsPipe, false);
132 static void mapping(IO &YIO, Kernel::CodeProps::Metadata &MD) {
134 MD.mKernargSegmentSize);
136 MD.mGroupSegmentFixedSize);
138 MD.mPrivateSegmentFixedSize);
140 MD.mKernargSegmentAlign);
142 MD.mWavefrontSize);
144 MD.mNumSGPRs, uint16_t(0));
146 MD.mNumVGPRs, uint16_t(0));
148 MD.mMaxFlatWorkGroupSize, uint32_t(0));
150 MD.mIsDynamicCallStack, false);
152 MD.mIsXNACKEnabled, false);
154 MD.mNumSpilledSGPRs, uint16_t(0));
156 MD.mNumSpilledVGPRs, uint16_t(0));
162 static void mapping(IO &YIO, Kernel::DebugProps::Metadata &MD) {
164 MD.mDebuggerABIVersion, std::vector<uint32_t>());
166 MD.mReservedNumVGPRs, uint16_t(0));
168 MD.mReservedFirstVGPR, uint16_t(-1));
170 MD.mPrivateSegmentBufferSGPR, uint16_t(-1));
172 MD.mWavefrontPrivateSegmentOffsetSGPR, uint16_t(-1));
178 static void mapping(IO &YIO, Kernel::Metadata &MD) {
179 YIO.mapRequired(Kernel::Key::Name, MD.mName);
180 YIO.mapRequired(Kernel::Key::SymbolName, MD.mSymbolName);
181 YIO.mapOptional(Kernel::Key::Language, MD.mLanguage, std::string());
182 YIO.mapOptional(Kernel::Key::LanguageVersion, MD.mLanguageVersion,
184 if (!MD.mAttrs.empty() || !YIO.outputting())
185 YIO.mapOptional(Kernel::Key::Attrs, MD.mAttrs);
186 if (!MD.mArgs.empty() || !YIO.outputting())
187 YIO.mapOptional(Kernel::Key::Args, MD.mArgs);
188 if (!MD.mCodeProps.empty() || !YIO.outputting())
189 YIO.mapOptional(Kernel::Key::CodeProps, MD.mCodeProps);
190 if (!MD.mDebugProps.empty() || !YIO.outputting())
191 YIO.mapOptional(Kernel::Key::DebugProps, MD.mDebugProps);
197 static void mapping(IO &YIO, HSAMD::Metadata &MD) {
198 YIO.mapRequired(Key::Version, MD.mVersion);
199 YIO.mapOptional(Key::Printf, MD.mPrintf, std::vector<std::string>());
200 if (!MD.mKernels.empty() || !YIO.outputting())
201 YIO.mapOptional(Key::Kernels, MD.mKernels);