[llvm] [X86][MC] Support encoding/decoding for APX variant INC/DEC/ADCX/ADOX instructions (PR #76721)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 2 23:35:46 PST 2024
================
@@ -184,52 +184,139 @@ def IMUL64rmi32 : IMulOpMI_R<Xi64, WriteIMul64Imm>;
//===----------------------------------------------------------------------===//
// INC and DEC Instructions
//
-class IncOpR_RF<X86TypeInfo t> : UnaryOpR_RF<0xFF, MRM0r, "inc", t, null_frag> {
+class IncOpR_RF<X86TypeInfo t, bit ndd = 0> : UnaryOpR_RF<0xFF, MRM0r, "inc", t, null_frag, ndd> {
----------------
KanRobert wrote:
The characters before `_` is input and the characters after `_` is output. e.g.
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/X86/X86InstrUtils.td#L1129
`MR_M` - means read "[mem], reg" and write "[mem]"
https://github.com/llvm/llvm-project/pull/76721
More information about the llvm-commits
mailing list