summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.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/CodeGenDAGPatterns.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/CodeGenDAGPatterns.h')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h
index 40cfa88cd2f..50c39bcf169 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.h
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h
@@ -221,6 +221,10 @@ public:
/// getIntrinsicInfo - If this node corresponds to an intrinsic, return the
/// CodeGenIntrinsic information for it, otherwise return a null pointer.
const CodeGenIntrinsic *getIntrinsicInfo(const CodeGenDAGPatterns &CDP) const;
+
+ /// isCommutativeIntrinsic - Return true if the node is an intrinsic which is
+ /// marked isCommutative.
+ bool isCommutativeIntrinsic(const CodeGenDAGPatterns &CDP) const;
void print(std::ostream &OS) const;
void dump() const;
OpenPOWER on IntegriCloud