]> granicus.if.org Git - llvm/commit
[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)
commit8a96e2c0c782d11e60ca8bf3b9ef5bf33f914025
tree5638c80fe35c824e8446f1386eae7f53a97e201c
parentff1e69ab3619155dfc0450f543acedd4d4f8be13
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371531 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.h
test/MC/RISCV/numeric-reg-names-d.s [new file with mode: 0644]
test/MC/RISCV/numeric-reg-names-f.s [new file with mode: 0644]
test/MC/RISCV/numeric-reg-names.s [new file with mode: 0644]