[llvm] r314166 - [GlobalISel] Update the documentation and comments for G_EXTRACT

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 15:03:01 PDT 2017


Author: qcolombet
Date: Mon Sep 25 15:03:01 2017
New Revision: 314166

URL: http://llvm.org/viewvc/llvm-project?rev=314166&view=rev
Log:
[GlobalISel] Update the documentation and comments for G_EXTRACT

In r297100, G_EXTRACT changed from a multiple results instruction to a
single result one. Update the documentation accordingly.

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=314166&r1=314165&r2=314166&view=diff
==============================================================================
--- llvm/trunk/docs/GlobalISel.rst (original)
+++ llvm/trunk/docs/GlobalISel.rst Mon Sep 25 15:03:01 2017
@@ -307,7 +307,7 @@ validity of the intermediate code, instr
 * ``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,

Modified: llvm/trunk/include/llvm/Target/GenericOpcodes.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/GenericOpcodes.td?rev=314166&r1=314165&r2=314166&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/GenericOpcodes.td (original)
+++ llvm/trunk/include/llvm/Target/GenericOpcodes.td Mon Sep 25 15:03:01 2017
@@ -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);




More information about the llvm-commits mailing list