[RISCV][NFC] Define and use the new CA instruction format
authorAlex Bradbury <asb@lowrisc.org>
Fri, 16 Nov 2018 10:33:23 +0000 (10:33 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Fri, 16 Nov 2018 10:33:23 +0000 (10:33 +0000)
commitb4a64cede820c2fd58884226388dfa8f77cccd0f
treed55772fcfe7ef2de401aeeda2f8fc84f1be7aa0e
parent2146e8fb1e5f700460acc66cdf37f6c6729ad5c5
[RISCV][NFC] Define and use the new CA instruction format

The RISC-V ISA manual was updated on 2018-11-07 (commit 00557c3) to define a
new compressed instruction format, RVC format CA (no actual instruction
encodings were changed). This patch updates the RISC-V backend to define the
new format, and to use it in the relevant instructions.

Differential Revision: https://reviews.llvm.org/D54302
Patch by Luís Marques.

llvm-svn: 347043
llvm/lib/Target/RISCV/RISCVInstrFormats.td
llvm/lib/Target/RISCV/RISCVInstrFormatsC.td
llvm/lib/Target/RISCV/RISCVInstrInfoC.td
llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h