[llvm] [AMDGPU][AsmParser] Simplify getting source locations of operands. (PR #158323)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 15 09:09:04 PDT 2025


================
@@ -228,6 +213,9 @@ class AMDGPUOperand : public MCParsedAsmOperand {
     const MCExpr *Expr;
   };
 
+  // The index of the associated MCInst operand.
+  mutable int MCOpIdx = -1;
----------------
rampitec wrote:

Fair enough.

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


More information about the llvm-commits mailing list