[all-commits] [llvm/llvm-project] 2a45aa: [RISCV] Move FRM parsing in the assembler to a cus...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Jan 29 12:25:16 PST 2023


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

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

  Log Message:
  -----------
  [RISCV] Move FRM parsing in the assembler to a custom operand parser.

Previously we parsed it as a symbol, and then accessed the name.
This works, but seems like an unusual way to do it.

This adds a custom parser that looks for an Identifier token containing
one of the valid FRM strings.

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




More information about the All-commits mailing list