summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-08 23:17:26 +0000
committerChris Lattner <sabre@nondot.org>2005-09-08 23:17:26 +0000
commit4b09f3c6f50c948ea09d6c62ec351ce529ec00ac (patch)
tree649c531455664246949af4f7c4a129f61b78e23d /llvm/lib/Target
parentcee994b4642487c16c6adab8bfeaa42a2e39a16e (diff)
downloadbcm5719-llvm-4b09f3c6f50c948ea09d6c62ec351ce529ec00ac.tar.gz
bcm5719-llvm-4b09f3c6f50c948ea09d6c62ec351ce529ec00ac.zip
whitespace/comment changes, no functionality diffs
llvm-svn: 23283
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCInstrInfo.td7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td
index de7306c9d3a..a7dbe992312 100644
--- a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td
@@ -17,7 +17,8 @@ include "PowerPCInstrFormats.td"
//===----------------------------------------------------------------------===//
// Selection DAG Type Constraint definitions.
//
-// Note that the semantics of these constraints are hard coded into tblgen.
+// Note that the semantics of these constraints are hard coded into tblgen. To
+// modify or add constraints, you have to hack tblgen.
//
class SDTypeConstraint<int opnum> {
@@ -66,7 +67,9 @@ class SDTypeProfile<int numresults, int numoperands,
// Builtin profiles.
def SDTImm : SDTypeProfile<1, 0, [SDTCisInt<0>]>; // for 'imm'.
def SDTVT : SDTypeProfile<1, 0, [SDTCisVT<0, OtherVT>]>; // for 'vt'
-def SDTBinOp : SDTypeProfile<1, 2, [SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>]>;
+def SDTBinOp : SDTypeProfile<1, 2, [ // add, mul, etc.
+ SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>
+]>;
def SDTIntBinOp : SDTypeProfile<1, 2, [ // and, or, xor, udiv, etc.
SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisInt<0>
]>;
OpenPOWER on IntegriCloud