From: XinWang10 Date: Fri, 24 Mar 2023 02:32:18 +0000 (-0400) Subject: [NFC][X86]remove trailing space in X86InstrArithmetic.td X-Git-Tag: upstream/17.0.6~13801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4950104e243a6af2d0b9da30b415a10670a9385e;p=platform%2Fupstream%2Fllvm.git [NFC][X86]remove trailing space in X86InstrArithmetic.td In this file, most of the line don't have trailing spaces, but some of them have. To keep consistent, remove the trailing spaces. Reviewed By: skan Differential Revision: https://reviews.llvm.org/D146697 --- diff --git a/llvm/lib/Target/X86/X86InstrArithmetic.td b/llvm/lib/Target/X86/X86InstrArithmetic.td index 42cc7c8..46d1412 100644 --- a/llvm/lib/Target/X86/X86InstrArithmetic.td +++ b/llvm/lib/Target/X86/X86InstrArithmetic.td @@ -125,12 +125,12 @@ class BinOpRR_Rev opcode, string mnemonic, X86TypeInfo typeinfo, let hasSideEffects = 0; } -// BinOpRR_RFF_Rev - Binary instructions with inputs "reg, reg"(reversed +// BinOpRR_RFF_Rev - Binary instructions with inputs "reg, reg"(reversed // encoding), with sched = WriteADC. class BinOpRR_RFF_Rev opcode, string mnemonic, X86TypeInfo typeinfo> : BinOpRR_Rev; -// BinOpRR_F_Rev - Binary instructions with inputs "reg, reg"(reversed +// BinOpRR_F_Rev - Binary instructions with inputs "reg, reg"(reversed // encoding), without outlist dag. class BinOpRR_F_Rev opcode, string mnemonic, X86TypeInfo typeinfo> : ITy opcode, string mnemonic, X86TypeInfo typeinfo, // has both a regclass and EFLAGS as a result, and has EFLAGS as input. class BinOpRM_RFF opcode, string mnemonic, X86TypeInfo typeinfo, SDNode opnode> - : BinOpRM_ImplicitUse; // BinOpRI - Binary instructions with inputs "reg, imm". @@ -273,21 +273,21 @@ class BinOpMR_RMW opcode, string mnemonic, X86TypeInfo typeinfo, SDNode opnode> : BinOpMR, + (implicit EFLAGS)]>, Sched<[WriteALURMW, // base, scale, index, offset, segment ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault, WriteALU.ReadAfterFold]>; // reg -// BinOpMR_RMW_FF - Binary instructions with inputs "[mem], reg", where the +// BinOpMR_RMW_FF - Binary instructions with inputs "[mem], reg", where the // pattern use EFLAGS as operand and implicitly use EFLAGS. class BinOpMR_RMW_FF opcode, string mnemonic, X86TypeInfo typeinfo, SDNode opnode> : BinOpMR, + (implicit EFLAGS)]>, Sched<[WriteADCRMW, // base, scale, index, offset, segment ReadDefault, ReadDefault, ReadDefault, @@ -321,7 +321,7 @@ class BinOpMI_RMW opcode, string mnemonic, X86TypeInfo typeinfo, : BinOpMI, + (implicit EFLAGS)]>, Sched<[WriteALURMW]>; // BinOpMI_RMW_FF - Binary instructions with inputs "[mem], imm", where the @@ -331,7 +331,7 @@ class BinOpMI_RMW_FF opcode, string mnemonic, X86TypeInfo typeinfo, : BinOpMI, + (implicit EFLAGS)]>, Sched<[WriteADCRMW]>; // BinOpMI_F - Binary instructions with inputs "[mem], imm", where the pattern @@ -359,7 +359,7 @@ class BinOpMI8_RMW, + (implicit EFLAGS)]>, Sched<[WriteALURMW]>; // BinOpMI8_RMW_FF - Binary instructions with inputs "[mem], imm8", where the @@ -369,7 +369,7 @@ class BinOpMI8_RMW_FF, + (implicit EFLAGS)]>, Sched<[WriteADCRMW]>; // BinOpMI8_F - Binary instructions with inputs "[mem], imm8", where the pattern @@ -387,7 +387,7 @@ class BinOpAI opcode, string mnemonic, X86TypeInfo typeinfo, Register areg, string operands, X86FoldableSchedWrite sched = WriteALU> : ITy, + mnemonic, operands, []>, Sched<[sched]> { let ImmT = typeinfo.ImmEncoding; let Uses = [areg]; @@ -427,7 +427,7 @@ class UnaryOpR opcode, Format f, string mnemonic, X86TypeInfo info, class INCDECR : UnaryOpR<0xFE, f, mnemonic, info, - [(set info.RegClass:$dst, EFLAGS, + [(set info.RegClass:$dst, EFLAGS, (node info.RegClass:$src1, 1))]>; // INCDECM - Instructions like "inc [mem]". @@ -444,16 +444,16 @@ class INCDECR_ALT opcode, string mnemonic, X86TypeInfo info> } // MulOpR - Instructions like "mul reg". -class MulOpR opcode, Format f, string mnemonic, X86TypeInfo info, +class MulOpR opcode, Format f, string mnemonic, X86TypeInfo info, X86FoldableSchedWrite sched, list pattern> - : ITy, + : ITy, Sched<[sched]>; // MulOpM - Instructions like "mul [mem]". -class MulOpM opcode, Format f, string mnemonic, X86TypeInfo info, +class MulOpM opcode, Format f, string mnemonic, X86TypeInfo info, X86FoldableSchedWrite sched, list pattern> - : ITy, SchedLoadReg; // NegOpR - Instructions like "neg reg", with implicit EFLAGS. @@ -465,7 +465,7 @@ class NegOpR opcode, string mnemonic, X86TypeInfo info> // NotOpR - Instructions like "not reg". class NotOpR opcode, string mnemonic, X86TypeInfo info> : UnaryOpR; // NegOpM - Instructions like "neg [mem]", with implicit EFLAGS. @@ -496,16 +496,16 @@ class BinOpRM_C opcode, Format f, string mnemonic, X86TypeInfo info, mnemonic, "{$src2, $dst|$dst, $src2}", pattern>; // IMulOpRR - Instructions like "imul reg, reg, i8". -class IMulOpRR opcode, string mnemonic, X86TypeInfo info, +class IMulOpRR opcode, string mnemonic, X86TypeInfo info, X86FoldableSchedWrite sched> : BinOpRR_C, + (X86smul_flag info.RegClass:$src1, + info.RegClass:$src2))]>, Sched<[sched]>, TB; // IMulOpRM - Instructions like "imul reg, reg, [mem]". -class IMulOpRM opcode, string mnemonic, X86TypeInfo info, +class IMulOpRM opcode, string mnemonic, X86TypeInfo info, X86FoldableSchedWrite sched> : BinOpRM_C opcode, string mnemonic, X86TypeInfo info, Sched<[sched.Folded, sched.ReadAfterFold]>, TB; // IMulOpRRI8 - Instructions like "imul reg, reg, i8". -class IMulOpRRI8 opcode, string mnemonic, X86TypeInfo info, +class IMulOpRRI8 opcode, string mnemonic, X86TypeInfo info, X86FoldableSchedWrite sched> : ITy, + (X86smul_flag info.RegClass:$src1, + info.Imm8NoSuOperator:$src2))]>, Sched<[sched]>{ let ImmT = Imm8; } // IMulOpRRI - Instructions like "imul reg, reg, i16/i32/i64". -class IMulOpRRI opcode, string mnemonic, X86TypeInfo info, +class IMulOpRRI opcode, string mnemonic, X86TypeInfo info, X86FoldableSchedWrite sched> : ITy, + (X86smul_flag info.RegClass:$src1, + info.ImmNoSuOperator:$src2))]>, Sched<[sched]>{ let ImmT = info.ImmEncoding; } // IMulOpRMI8 - Instructions like "imul reg, [mem], i8". -class IMulOpRMI8 opcode, string mnemonic, X86TypeInfo info, +class IMulOpRMI8 opcode, string mnemonic, X86TypeInfo info, X86FoldableSchedWrite sched> : ITy, + info.Imm8NoSuOperator:$src2))]>, Sched<[sched.Folded]>{ let ImmT = Imm8; } // IMulOpRMI - Instructions like "imul reg, [mem], i16/i32/i64". -class IMulOpRMI opcode, string mnemonic, X86TypeInfo info, +class IMulOpRMI opcode, string mnemonic, X86TypeInfo info, X86FoldableSchedWrite sched> : ITy, + info.ImmNoSuOperator:$src2))]>, Sched<[sched.Folded]>{ let ImmT = info.ImmEncoding; } @@ -639,7 +639,7 @@ let Predicates = [UseIncDec, In64BitMode] in { // SDNode results (i8, i32). // AL,AH = AL*GR8 let Defs = [AL,EFLAGS,AX], Uses = [AL] in -def MUL8r : MulOpR<0xF6, MRM4r, "mul", Xi8, WriteIMul8, +def MUL8r : MulOpR<0xF6, MRM4r, "mul", Xi8, WriteIMul8, // FIXME: Used for 8-bit mul, ignore result upper 8 bits. // This probably ought to be moved to a def : Pat<> if the // syntax can be accepted.