This is required because empty strings are not allowed when generating
the assembly parser tables.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Do you mean setting non-empty asm string by default on MxInst? I feel like the non-empty string requirement imposed by parser table can help us catch mistakes if we forget to set assembly string for an instruction (in the future), so I'm incline not to do that
I meant just stop MxPseudo taking a default string so all instances include a useful asm comment string.
Ah, using the asm string as comments (for MxPseudo instances), I see. But I don't think these pseudo instructions will ever be printed/parsed to/from assembly (so it can't be used as comments in assembly code). From what I understand they're only syntax sugar for codegen (unlike some of the targets that have assembler pseudo instructions). If that's the case, I don't think it's really necessary to put meaningful string in the assembly string. If we want to add comments (for documentation purpose rather than real comments in the assembly code), I prefer to put in the TG code.