[llvm] r314168 - [GlobalISel] Update the documentation and comment for G_[UN]MERGE_VALUES
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 15:03:06 PDT 2017
Author: qcolombet
Date: Mon Sep 25 15:03:06 2017
New Revision: 314168
URL: http://llvm.org/viewvc/llvm-project?rev=314168&view=rev
Log:
[GlobalISel] Update the documentation and comment for G_[UN]MERGE_VALUES
In r296921, we added the G_[UN]MERGE_VALUES node, but did not update the
documentation. Fixing that.
NFC.
Modified:
llvm/trunk/docs/GlobalISel.rst
llvm/trunk/include/llvm/Target/GenericOpcodes.td
Modified: llvm/trunk/docs/GlobalISel.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/GlobalISel.rst?rev=314168&r1=314167&r2=314168&view=diff
==============================================================================
--- llvm/trunk/docs/GlobalISel.rst (original)
+++ llvm/trunk/docs/GlobalISel.rst Mon Sep 25 15:03:06 2017
@@ -304,6 +304,11 @@ As opposed to SelectionDAG, there are no
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.
Modified: llvm/trunk/include/llvm/Target/GenericOpcodes.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/GenericOpcodes.td?rev=314168&r1=314167&r2=314168&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/GenericOpcodes.td (original)
+++ llvm/trunk/include/llvm/Target/GenericOpcodes.td Mon Sep 25 15:03:06 2017
@@ -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);
More information about the llvm-commits
mailing list