summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenIntrinsics.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-16 20:29:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-16 20:29:38 +0000
commit49bad4c9e1a5d09a374febfc042c9e4b8e07bf66 (patch)
tree3af35f7d1a7ca9779a1c80c4764930770c46162b /llvm/utils/TableGen/CodeGenIntrinsics.h
parentb90be27f8cae17d5da15095c1eae7f6a68dc107e (diff)
downloadbcm5719-llvm-49bad4c9e1a5d09a374febfc042c9e4b8e07bf66.tar.gz
bcm5719-llvm-49bad4c9e1a5d09a374febfc042c9e4b8e07bf66.zip
- Add "Commutative" property to intrinsics. This allows tblgen to generate the commuted variants for dagisel matching code.
- Mark lots of X86 intrinsics as "Commutative" to allow load folding. llvm-svn: 52353
Diffstat (limited to 'llvm/utils/TableGen/CodeGenIntrinsics.h')
-rw-r--r--llvm/utils/TableGen/CodeGenIntrinsics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenIntrinsics.h b/llvm/utils/TableGen/CodeGenIntrinsics.h
index a66c30b6cb8..4de93864a8a 100644
--- a/llvm/utils/TableGen/CodeGenIntrinsics.h
+++ b/llvm/utils/TableGen/CodeGenIntrinsics.h
@@ -49,6 +49,10 @@ namespace llvm {
// types.
bool isOverloaded;
+ // isCommutative - True if the intrinsic is commutative.
+ //
+ bool isCommutative;
+
CodeGenIntrinsic(Record *R);
};
OpenPOWER on IntegriCloud