Skip to content

Commit 254bf67

Browse files
committed
[RISCV] Define custom-N opcodes
Differential Revision: https://reviews.llvm.org/D137355
1 parent c8fab80 commit 254bf67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/RISCV/RISCVInstrFormats.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,14 @@ def lookupRISCVOpcodeByName : SearchIndex {
125125
}
126126
def OPC_LOAD : RISCVOpcode<"LOAD", 0b0000011>;
127127
def OPC_LOAD_FP : RISCVOpcode<"LOAD_FP", 0b0000111>;
128+
def OPC_CUSTOM_0 : RISCVOpcode<"CUSTOM_0", 0b0001011>;
128129
def OPC_MISC_MEM : RISCVOpcode<"MISC_MEM", 0b0001111>;
129130
def OPC_OP_IMM : RISCVOpcode<"OP_IMM", 0b0010011>;
130131
def OPC_AUIPC : RISCVOpcode<"AUIPC", 0b0010111>;
131132
def OPC_OP_IMM_32 : RISCVOpcode<"OP_IMM_32", 0b0011011>;
132133
def OPC_STORE : RISCVOpcode<"STORE", 0b0100011>;
133134
def OPC_STORE_FP : RISCVOpcode<"STORE_FP", 0b0100111>;
135+
def OPC_CUSTOM_1 : RISCVOpcode<"CUSTOM_1", 0b0101011>;
134136
def OPC_AMO : RISCVOpcode<"AMO", 0b0101111>;
135137
def OPC_OP : RISCVOpcode<"OP", 0b0110011>;
136138
def OPC_LUI : RISCVOpcode<"LUI", 0b0110111>;
@@ -141,10 +143,12 @@ def OPC_NMSUB : RISCVOpcode<"NMSUB", 0b1001011>;
141143
def OPC_NMADD : RISCVOpcode<"NMADD", 0b1001111>;
142144
def OPC_OP_FP : RISCVOpcode<"OP_FP", 0b1010011>;
143145
def OPC_OP_V : RISCVOpcode<"OP_V", 0b1010111>;
146+
def OPC_CUSTOM_2 : RISCVOpcode<"CUSTOM_2", 0b1011011>;
144147
def OPC_BRANCH : RISCVOpcode<"BRANCH", 0b1100011>;
145148
def OPC_JALR : RISCVOpcode<"JALR", 0b1100111>;
146149
def OPC_JAL : RISCVOpcode<"JAL", 0b1101111>;
147150
def OPC_SYSTEM : RISCVOpcode<"SYSTEM", 0b1110011>;
151+
def OPC_CUSTOM_3 : RISCVOpcode<"CUSTOM_3", 0b1111011>;
148152

149153
class RVInst<dag outs, dag ins, string opcodestr, string argstr,
150154
list<dag> pattern, InstFormat format>

0 commit comments

Comments
 (0)