Add some comments on ISD::NodeType.
authorDan Gohman <gohman@apple.com>
Wed, 28 Jan 2009 21:13:08 +0000 (21:13 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 28 Jan 2009 21:13:08 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63234 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index c22b90ceedf7f4bc507d9c1c3cee83f5ddf33807..9f496d42afee601aabe6348694982ad8c7100358 100644 (file)
@@ -63,6 +63,13 @@ namespace ISD {
   /// ISD::NodeType enum - This enum defines all of the operators valid in a
   /// SelectionDAG.
   ///
+  /// These are sometimes called the target-independent operators; targets
+  /// may also define target-dependent operators. For example, on x86, these
+  /// are the enum values in the X86ISD namespace. Targets should aim to use
+  /// target-independent operators to model their instruction sets as much
+  /// as possible, and only use target-dependent operators when they have
+  /// special requirements.
+  ///
   enum NodeType {
     // DELETED_NODE - This is an illegal flag value that is used to catch
     // errors.  This opcode is not a legal opcode for any node.