[all-commits] [llvm/llvm-project] 717d6c: RISCV: Don't use MCTargetOptions::ABIName in the E...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Sep 23 01:29:20 PDT 2026


  Branch: refs/heads/users/arsenm/riscv/mc-abi-drop-streamer-target-abi-opt-use
  Home:   https://github.com/llvm/llvm-project
  Commit: 717d6c4ec902572517a57efa11cfdb2304f7d3a0
      https://github.com/llvm/llvm-project/commit/717d6c4ec902572517a57efa11cfdb2304f7d3a0
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp

  Log Message:
  -----------
  RISCV: Don't use MCTargetOptions::ABIName in the ELF target streamer

The abi name should come from the target-abi module flag in codegen,
which should be set up in the AsmPrinter. The ABI name field should
only be of practical use in the assembler, which reads the flag in
onBeginOfFile.

Co-Authored-By: Claude <noreply at anthropic.com> (Claude Opus 4.8)


  Commit: f29eabb7ebc57c5d740d7328be2c12fc263048d0
      https://github.com/llvm/llvm-project/commit/f29eabb7ebc57c5d740d7328be2c12fc263048d0
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/CommandFlags.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
    M llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
    M llvm/test/CodeGen/RISCV/target-abi-invalid.ll
    A llvm/test/CodeGen/RISCV/target-abi-synthesize-flag.ll

  Log Message:
  -----------
  Synthesize the "target-abi" module flag from the -target-abi option

Also error on unrecognized abi


Compare: https://github.com/llvm/llvm-project/compare/de2197bef9e4...f29eabb7ebc5

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