[llvm] [AMDGPU][AsmParser] Support structured HWREG operands. (PR #82805)

Ivan Kosarev via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 05:17:58 PST 2024


================
@@ -7730,6 +7741,44 @@ AMDGPUAsmParser::getConstLoc(const OperandVector &Operands) const {
   return getOperandLoc(Test, Operands);
 }
 
+ParseStatus
+AMDGPUAsmParser::parseStructuredOpFields(ArrayRef<StructuredOpField *> Fields) {
+  if (!trySkipToken(AsmToken::LCurly))
+    return ParseStatus::NoMatch;
+
+  bool First = true;
+  while (!trySkipToken(AsmToken::RCurly)) {
+    if (!First && !skipToken(AsmToken::Comma, "comma expected"))
----------------
kosarev wrote:

Done.

https://github.com/llvm/llvm-project/pull/82805


More information about the llvm-commits mailing list