[llvm] [AMDGPU][AsmParser] Introduce MC representation for lit() and lit64(). (PR #160316)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 24 06:21:45 PDT 2025


================
@@ -1591,10 +1589,14 @@ class AMDGPUAsmParser : public MCTargetAsmParser {
     return static_cast<AMDGPUTargetStreamer &>(TS);
   }
 
-  const MCRegisterInfo *getMRI() const {
+  MCContext &getContext() const {
----------------
jayfoad wrote:

Oh. In that case the cmoment seems somehow inappropriate. The const_cast is needed because of some deliberate constness violations in this class, not just because of an oversight in MCAsmParser.

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


More information about the llvm-commits mailing list