[llvm] [TableGen][X86] Add X86 support for `llvm::MCInstrDesc::isAdd` (PR #119057)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 20 10:54:23 PST 2024


================
@@ -1097,8 +1100,10 @@ let isCodeGenOnly = 1, hasSideEffects = 0, Constraints = "$src1 = $dst",
                        Sched<[WriteALU]>;
 
 // Arithmetic.
-defm ADC : ArithBinOp_RFF<0x11, 0x13, 0x15, "adc", MRM2r, MRM2m, X86adc_flag,
-                          1, 0>;
+let isAdd = 1 in {
----------------
topperc wrote:

Without knowing what the flag is used for, it's hard to say whether an Add with carry input should be consider an add.

https://github.com/llvm/llvm-project/pull/119057


More information about the llvm-commits mailing list