[all-commits] [llvm/llvm-project] 6c6b3e: RISCV: add a few deprecated aliases for CSRs

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Fri May 21 13:55:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c6b3e3afe7cbf43d6ab2aa780367e6942f1b6b4
      https://github.com/llvm/llvm-project/commit/6c6b3e3afe7cbf43d6ab2aa780367e6942f1b6b4
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2021-05-21 (Fri, 21 May 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
    M llvm/lib/Target/RISCV/RISCVSystemOperands.td
    A llvm/test/MC/RISCV/deprecated-csr-names.s

  Log Message:
  -----------
  RISCV: add a few deprecated aliases for CSRs

This adds the {s,u,m}badaddr CSR aliases as well as the sptbr alias.
These are for compatibility with binutils.  Furthermore, these are used
by the RISC-V Proxy Kernel and are required to enable building the Proxy
Kernel with the LLVM IAS.

The aliases here are deprecated.  These are being introduced in order to
provide a compatibility story for the existing GNU toolchain, which
still supports the deprecated spelling in the assembler.  However, in
order to encourage the migration of existing coding, we provide warnings
indicating that the aliased CSRs are deprecated and should be replaced.

Differential Revision: https://reviews.llvm.org/D101919
Reviewed By: Craig Topper




More information about the All-commits mailing list