[all-commits] [llvm/llvm-project] d558a7: [RISCV] Use custom operand parsing for FenceArg.

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Jan 30 12:45:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d558a70abf2624bf0b26fa8cd506277214fea197
      https://github.com/llvm/llvm-project/commit/d558a70abf2624bf0b26fa8cd506277214fea197
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-01-30 (Mon, 30 Jan 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.td

  Log Message:
  -----------
  [RISCV] Use custom operand parsing for FenceArg.

Rather than parsing a symbol and checking its name, look for an
identifier during parsing.

I've also handled the 0 immediate during parsing, though we could
let that go through the normal immediate parsing if we need to support
expressions that evaluate to 0. We don't have tests for that currently.

Reviewed By: asb, frasercrmck

Differential Revision: https://reviews.llvm.org/D142865




More information about the All-commits mailing list