[GlobalISel] Update the documentation and comment for G_[UN]MERGE_VALUES
authorQuentin Colombet <qcolombet@apple.com>
Mon, 25 Sep 2017 22:03:06 +0000 (22:03 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Mon, 25 Sep 2017 22:03:06 +0000 (22:03 +0000)
In r296921, we added the G_[UN]MERGE_VALUES node, but did not update the
documentation. Fixing that.

NFC.

llvm-svn: 314168

llvm/docs/GlobalISel.rst
llvm/include/llvm/Target/GenericOpcodes.td

index 52952d0..c124911 100644 (file)
@@ -304,6 +304,11 @@ As opposed to SelectionDAG, there are no legalization phases.  In particular,
 Legalization is iterative, and all state is contained in GMIR.  To maintain the
 validity of the intermediate code, instructions are introduced:
 
+* ``G_MERGE_VALUES`` --- concatenate multiple registers of the same
+  size into a single wider register.
+
+* ``G_UNMERGE_VALUES`` --- extract multiple registers of the same size
+  from a single wider register.
 
 * ``G_EXTRACT`` --- extract a simple register (as contiguous sequences of bits)
   from a single wider register.
index e3136b1..6e6b582 100644 (file)
@@ -511,6 +511,7 @@ def G_INSERT : Instruction {
   let hasSideEffects = 0;
 }
 
+/// Concatenante multiple registers of the same size into a wider register.
 def G_MERGE_VALUES : Instruction {
   let OutOperandList = (outs type0:$dst);
   let InOperandList = (ins variable_ops);