OSDN Git Service

[GlobalISel] Update the documentation and comments for G_EXTRACT
authorQuentin Colombet <qcolombet@apple.com>
Mon, 25 Sep 2017 22:03:01 +0000 (22:03 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Mon, 25 Sep 2017 22:03:01 +0000 (22:03 +0000)
In r297100, G_EXTRACT changed from a multiple results instruction to a
single result one. Update the documentation accordingly.

NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314166 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 52ca9a0..ecdfc6d 100644 (file)
@@ -307,7 +307,7 @@ validity of the intermediate code, instructions are introduced:
 * ``G_SEQUENCE`` --- concatenate multiple registers into a single wider
   register.
 
-* ``G_EXTRACT`` --- extract multiple registers (as contiguous sequences of bits)
+* ``G_EXTRACT`` --- extract a simple register (as contiguous sequences of bits)
   from a single wider register.
 
 As they are expected to be temporary byproducts of the legalization process,
index 557c1dc..e3136b1 100644 (file)
@@ -486,8 +486,8 @@ def G_STORE : Instruction {
 // Variadic ops
 //------------------------------------------------------------------------------
 
-// Extract multiple registers specified size, starting from blocks given by
-// indexes. This will almost certainly be mapped to sub-register COPYs after
+// Extract a register of the specified size, starting from the block given by
+// index. This will almost certainly be mapped to sub-register COPYs after
 // register banks have been selected.
 def G_EXTRACT : Instruction {
   let OutOperandList = (outs type0:$res);