summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-28 00:22:30 +0000
committerChris Lattner <sabre@nondot.org>2010-02-28 00:22:30 +0000
commit99e53b3b334866cdb5efc32fe983901d43c7d779 (patch)
tree7effe8ed3a4e6a24c56d9606c1450a399374b01b /llvm/utils/TableGen/CodeGenDAGPatterns.h
parentbdd6405f29ddf975fca9b1cd9bd0121470c427d5 (diff)
downloadbcm5719-llvm-99e53b3b334866cdb5efc32fe983901d43c7d779.tar.gz
bcm5719-llvm-99e53b3b334866cdb5efc32fe983901d43c7d779.zip
Generalize my hack to use SDNodeInfo to find out when a
node is always guaranteed to have a particular type instead of hacking in ISD::STORE explicitly. This allows us to use implied types for a broad range of nodes, even target specific ones. llvm-svn: 97355
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.h')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h
index c246483acff..60898bc04ce 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.h
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h
@@ -125,6 +125,11 @@ public:
return TypeConstraints;
}
+ /// getKnownType - If the type constraints on this node imply a fixed type
+ /// (e.g. all stores return void, etc), then return it as an
+ /// MVT::SimpleValueType. Otherwise, return EEVT::isUnknown.
+ unsigned getKnownType() const;
+
/// hasProperty - Return true if this node has the specified property.
///
bool hasProperty(enum SDNP Prop) const { return Properties & (1 << Prop); }
OpenPOWER on IntegriCloud