Skip to content

Commit cfd77b4

Browse files
committed
Move comments
1 parent 8f06fa3 commit cfd77b4

File tree

7 files changed

+432
-61
lines changed

7 files changed

+432
-61
lines changed

llvm/lib/Target/X86/X86InstrCompiler.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ let Predicates = [UseIncDec, In64BitMode] in {
870870
def : Pat<(X86lock_sub addr:$dst, (i64 -1)), (LOCK_INC64m addr:$dst)>;
871871
}
872872

873-
// Atomic bit test.
873+
/// LOCK-prefixed arithmetic read-modify-write instructions.
874+
/// EFLAGS, OUTCHAIN = LADD(INCHAIN, PTR, RHS)
874875
def X86LBTest : SDTypeProfile<1, 3, [SDTCisVT<0, i32>, SDTCisPtrTy<1>,
875876
SDTCisVT<2, i8>, SDTCisVT<3, i32>]>;
876877
def x86bts : SDNode<"X86ISD::LBTS", X86LBTest,

llvm/lib/Target/X86/X86InstrFragments.td

Lines changed: 154 additions & 1 deletion
Large diffs are not rendered by default.

llvm/lib/Target/X86/X86InstrFragmentsSIMD.td

Lines changed: 268 additions & 59 deletions
Large diffs are not rendered by default.

llvm/lib/Target/X86/X86InstrMMX.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ def MMX_MOVQ64mr : MMXI<0x7F, MRMDestMem, (outs), (ins i64mem:$dst, VR64:$src),
226226

227227
def MMX_X86movdq2q : SDNode<"X86ISD::MOVDQ2Q", SDTypeProfile<1, 1,
228228
[SDTCisVT<0, x86mmx>, SDTCisVT<1, v2i64>]>>;
229+
230+
// Copies a 64-bit value from the low word of an XMM vector
231+
// to an MMX vector.
229232
def MMX_X86movq2dq : SDNode<"X86ISD::MOVQ2DQ", SDTypeProfile<1, 1,
230233
[SDTCisVT<0, v2i64>, SDTCisVT<1, x86mmx>]>>;
231234

llvm/lib/Target/X86/X86InstrRAOINT.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
def SDTRAOBinaryArith : SDTypeProfile<0, 2, [SDTCisPtrTy<0>, SDTCisInt<1>]>;
1818

19+
/// RAO arithmetic instructions.
20+
/// OUTCHAIN = AADD(INCHAIN, PTR, RHS)
1921
def X86rao_add : SDNode<"X86ISD::AADD", SDTRAOBinaryArith,
2022
[SDNPHasChain, SDNPMayStore, SDNPMemOperand]>;
2123
def X86rao_or : SDNode<"X86ISD::AOR", SDTRAOBinaryArith,

llvm/lib/Target/X86/X86InstrSSE.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5265,6 +5265,8 @@ multiclass SS41I_extract8<bits<8> opc, string OpcodeStr> {
52655265
let Predicates = [HasAVX, NoBWI] in
52665266
defm VPEXTRB : SS41I_extract8<0x14, "vpextrb">, VEX, WIG;
52675267

5268+
// Extract an 8-bit value from a vector and zero extend it to
5269+
// i32, corresponds to X86::PEXTRB.
52685270
defm PEXTRB : SS41I_extract8<0x14, "pextrb">;
52695271

52705272

llvm/lib/Target/X86/X86InstrTSX.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
//===----------------------------------------------------------------------===//
1515
// TSX instructions
1616

17+
// Test if in transactional execution.
1718
def X86xtest: SDNode<"X86ISD::XTEST", SDTypeProfile<1, 0, [SDTCisVT<0, i32>]>,
1819
[SDNPHasChain, SDNPSideEffect]>;
1920

0 commit comments

Comments
 (0)