- Add "Commutative" property to intrinsics. This allows tblgen to generate the commut...
[oota-llvm.git] / utils / TableGen / CodeGenDAGPatterns.h
index 40cfa88cd2f75b11cb807633fd24389dd8b42df3..50c39bcf1695a01037108fc04c014c1a98dcd57d 100644 (file)
@@ -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;