summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/docs/GlobalISel.rst2
-rw-r--r--llvm/include/llvm/Target/GenericOpcodes.td4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/GlobalISel.rst b/llvm/docs/GlobalISel.rst
index 52ca9a02ba5..ecdfc6dc2bd 100644
--- a/llvm/docs/GlobalISel.rst
+++ b/llvm/docs/GlobalISel.rst
@@ -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,
diff --git a/llvm/include/llvm/Target/GenericOpcodes.td b/llvm/include/llvm/Target/GenericOpcodes.td
index 557c1dc15c6..e3136b13809 100644
--- a/llvm/include/llvm/Target/GenericOpcodes.td
+++ b/llvm/include/llvm/Target/GenericOpcodes.td
@@ -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);
OpenPOWER on IntegriCloud