[llvm] [llc] Add -M for InstPrinter options (PR #121078)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 25 17:40:50 PST 2024
MaskRay wrote:
> I'm not against the current approach, it is just I'm not sure that this option would be as useful for `llc` without allowing it to be forwarded from the driver. `llc` is more a developer tool than an end-user tool. I doubt developers will want to pass this option to `llc` (what for?).
For some reasons some RISC-V tests use a cl::opt option `riscv-no-aliases`. With this llc option, `riscv-no-aliases` can be replaced with `-M no-aliases`, aligning with llvm-objdump. The usefulness is indeed low, just to unify similar features and avoid cl::opt.
https://github.com/llvm/llvm-project/pull/121078
More information about the llvm-commits
mailing list