[llvm] [NFC][MC] Use `StringRef` for Modifier in Inst/Asm Printers (PR #135403)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 12 12:11:44 PDT 2025


================
@@ -172,15 +148,7 @@ void VEInstPrinter::printMemASOperandRRM(const MCInst *MI, int OpNum,
 
 void VEInstPrinter::printMemASOperandHM(const MCInst *MI, int OpNum,
                                         const MCSubtargetInfo &STI,
-                                        raw_ostream &O, const char *Modifier) {
-  // If this is an ADD operand, emit it like normal operands.
-  if (Modifier && !strcmp(Modifier, "arith")) {
----------------
MaskRay wrote:

This change LG. VE doesn't seem to use modifier in AsmString

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


More information about the llvm-commits mailing list