Skip to content

Commit

Permalink
[GlobalISel] Update the documentation and comment for G_[UN]MERGE_VALUES
Browse files Browse the repository at this point in the history
In r296921, we added the G_[UN]MERGE_VALUES node, but did not update the
documentation. Fixing that.

NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314168 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Quentin Colombet committed Sep 25, 2017
1 parent 17f687f commit ae44772
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/GlobalISel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions include/llvm/Target/GenericOpcodes.td
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae44772

Please sign in to comment.