[RISCV] Add Option for Printing Architectural Register Names
authorSam Elliott <selliott@lowrisc.org>
Tue, 10 Sep 2019 15:55:55 +0000 (15:55 +0000)
committerSam Elliott <selliott@lowrisc.org>
Tue, 10 Sep 2019 15:55:55 +0000 (15:55 +0000)
commit6b877f6aac3d8e569e74953f0310323c2882619c
tree7dad51bb400b18904733f265ba0e960e915355bc
parentf987f561fadc35fb597ce821b2deeb005f40bd77
[RISCV] Add Option for Printing Architectural Register Names

Summary:
This is an option primarily to use during testing. Instead of always
printing registers using their ABI names, this allows a user to request they
are printed with their architectural name.

This is then used in the register constraint tests to ensure the mapping
between architectural and abi names is correct.

Reviewers: asb, luismarques

Reviewed By: asb

Subscribers: pzheng, hiraditya, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, llvm-commits

Tags: #llvm

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

llvm-svn: 371531
llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.h
llvm/test/MC/RISCV/numeric-reg-names-d.s [new file with mode: 0644]
llvm/test/MC/RISCV/numeric-reg-names-f.s [new file with mode: 0644]
llvm/test/MC/RISCV/numeric-reg-names.s [new file with mode: 0644]