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

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 12 12:33:23 PDT 2025


================
@@ -1836,25 +1793,24 @@ class AMDGPUAsmParser : public MCTargetAsmParser {
   ParseStatus parseHwregFunc(OperandInfoTy &HwReg, OperandInfoTy &Offset,
                              OperandInfoTy &Width);
 
+  static SMLoc getLaterLoc(SMLoc a, SMLoc b);
----------------
rampitec wrote:

Needs a comment, it is not clear what it does until you see the body. Or just inline the body.

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


More information about the llvm-commits mailing list