summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-13 15:12:29 +0000
committerDan Gohman <gohman@apple.com>2009-04-13 15:12:29 +0000
commit04b482227a65e2f7949cd5cd1939e1418fbe985a (patch)
treed8dfe2528b6466249636cda32828989ab2d4edbc
parent39aa13a401e48536a5650b8542fe52becd997a0c (diff)
downloadbcm5719-llvm-04b482227a65e2f7949cd5cd1939e1418fbe985a.tar.gz
bcm5719-llvm-04b482227a65e2f7949cd5cd1939e1418fbe985a.zip
Add comments to INSERT_SUBREG, EXTRACT_SURBEG, SUBREG_TO_REG,
and IMPLICIT_DEF. llvm-svn: 68949
-rw-r--r--llvm/include/llvm/Target/TargetInstrInfo.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetInstrInfo.h b/llvm/include/llvm/Target/TargetInstrInfo.h
index c8e90cf8792..6637424bf55 100644
--- a/llvm/include/llvm/Target/TargetInstrInfo.h
+++ b/llvm/include/llvm/Target/TargetInstrInfo.h
@@ -50,9 +50,29 @@ public:
EH_LABEL = 3,
GC_LABEL = 4,
DECLARE = 5,
+
+ /// EXTRACT_SUBREG - This instruction takes two operands: a register
+ /// that has subregisters, and a subregister index. It returns the
+ /// extracted subregister value. This is commonly used to implement
+ /// truncation operations on target architectures which support it.
EXTRACT_SUBREG = 6,
+
+ /// INSERT_SUBREG - This instruction takes three operands: a register
+ /// that has subregisters, a register providing an insert value, and a
+ /// subregister index. It returns the value of the first register with
+ /// the value of the second register inserted. The first register is
+ /// often defined by an IMPLICIT_DEF, as is commonly used to implement
+ /// anyext operations on target architectures which support it.
INSERT_SUBREG = 7,
+
+ /// IMPLICIT_DEF - This is the MachineInstr-level equivalent of undef.
IMPLICIT_DEF = 8,
+
+ /// SUBREG_TO_REG - This instruction is similar to INSERT_SUBREG except
+ /// that the first operand is an immediate integer constant. This constant
+ /// is often zero, as is commonly used to implement zext operations on
+ /// target architectures which support it, such as with x86-64 (with
+ /// zext from i32 to i64 via implicit zero-extension).
SUBREG_TO_REG = 9
};
OpenPOWER on IntegriCloud