[all-commits] [llvm/llvm-project] 455cb2: [RISCV] Simplify matchRegisterNameHelper interface...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon May 8 09:48:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 455cb2e57883b7360b427cb413b990448ab13190
      https://github.com/llvm/llvm-project/commit/455cb2e57883b7360b427cb413b990448ab13190
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-05-08 (Mon, 08 May 2023)

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

  Log Message:
  -----------
  [RISCV] Simplify matchRegisterNameHelper interface. NFC

This previously returned a bool to indicate success or failure and
returns a register through an output parameter.

Some callers used the bool to check for success. Some callers checked
for RISCV::NoRegister.

To make everything uniform, return the MCRegister directly and update
all callers to use MCRegister::isValid().

Reviewed By: barannikov88

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




More information about the All-commits mailing list