aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeGenDAGPatterns.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-06 05:36:50 +0000
committerChris Lattner <sabre@nondot.org>2008-01-06 05:36:50 +0000
commite67bde5bb1959dbd7085981cb0bcf6f7c749f724 (patch)
tree511e04e3480c2ba0f50f9170f02118d82dfaeb99 /utils/TableGen/CodeGenDAGPatterns.h
parente81cd881b165fd4197a25e21a88e25f781754e55 (diff)
set the 'isstore' flag for instructions whose pattern is an
intrinsic that writes to memory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenDAGPatterns.h')
-rw-r--r--utils/TableGen/CodeGenDAGPatterns.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h
index c40f46f459..d62b2798ad 100644
--- a/utils/TableGen/CodeGenDAGPatterns.h
+++ b/utils/TableGen/CodeGenDAGPatterns.h
@@ -203,14 +203,17 @@ public:
void setChild(unsigned i, TreePatternNode *N) {
Children[i] = N;
}
-
-
+
const std::string &getPredicateFn() const { return PredicateFn; }
void setPredicateFn(const std::string &Fn) { PredicateFn = Fn; }
Record *getTransformFn() const { return TransformFn; }
void setTransformFn(Record *Fn) { TransformFn = Fn; }
+ /// 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;
+
void print(std::ostream &OS) const;
void dump() const;