[all-commits] [llvm/llvm-project] 02b377: [llc] Add -M for InstPrinter options

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Apr 8 19:34:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02b377d8f7252b1acf6ea4fad55a101b6bc3fcf7
      https://github.com/llvm/llvm-project/commit/02b377d8f7252b1acf6ea4fad55a101b6bc3fcf7
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-04-08 (Tue, 08 Apr 2025)

  Changed paths:
    M llvm/docs/CommandGuide/llc.rst
    M llvm/include/llvm/MC/MCTargetOptions.h
    M llvm/lib/CodeGen/CodeGenTargetMachineImpl.cpp
    M llvm/test/CodeGen/RISCV/compress-opt-select.ll
    M llvm/test/CodeGen/RISCV/hwasan-check-memaccess.ll
    A llvm/test/tools/llc/instprinter-options.ll
    M llvm/test/tools/llvm-mc/disassembler-options.test
    M llvm/tools/llc/llc.cpp
    M llvm/tools/llvm-mc/llvm-mc.cpp

  Log Message:
  -----------
  [llc] Add -M for InstPrinter options

For many targets, llvm-objdump and llvm-mc
(https://reviews.llvm.org/D103004) support -M no-aliases (e.g.
`RISCVInstPrinter::applyTargetSpecificCLOption`).

This patch implements -M for llc.

While here, rename "DisassemblerOptions" in llvm-mc to the more
appropriate "InstPrinterOptions". For llvm-mc --assemble, there is no
disassembler involved.

Pull Request: https://github.com/llvm/llvm-project/pull/121078



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list