diff options
author | Nelson Chu <nelson.chu@sifive.com> | 2021-12-13 20:59:02 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2021-12-13 20:59:33 -0800 |
commit | 10a71981e92d24bf7f93ed21b2acfc2e04c00472 (patch) | |
tree | beaa2f910740a77c811e9fa7d841503464cd9a67 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | e7a95b067490dc90faea1baa78a66d08e1b2a7d4 (diff) | |
download | llvm-10a71981e92d24bf7f93ed21b2acfc2e04c00472.zip llvm-10a71981e92d24bf7f93ed21b2acfc2e04c00472.tar.gz llvm-10a71981e92d24bf7f93ed21b2acfc2e04c00472.tar.bz2 |
[RISCV] Support named opcodes in .insn directive.
This patch is one of the TODO of commit, 283879793dc787225992496587581ec77b6b0610
We build the GenericTable for these opcodes, and also extend class RISCVOpcode, to store the names of opcodes. Then we call the parseInsnDirectiveOpcode to parse the opcode filed in .insn directive. We only allow users to write the recognized opcode names, or just write the immediate values in the 7 bits range.
Documentation: https://sourceware.org/binutils/docs-2.37/as/RISC_002dV_002dFormats.html
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D115224
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions