diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-28 00:22:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-28 00:22:30 +0000 |
| commit | e55ca2745f2d978ac00e7b726496712b319974e4 (patch) | |
| tree | 41d8015147c4cd21aef5d8dd3a57f4064a517bcf /utils/TableGen/CodeGenDAGPatterns.h | |
| parent | 66e432b718680f929ee490ac56401ffc0caf272a (diff) | |
| download | external_llvm-e55ca2745f2d978ac00e7b726496712b319974e4.zip external_llvm-e55ca2745f2d978ac00e7b726496712b319974e4.tar.gz external_llvm-e55ca2745f2d978ac00e7b726496712b319974e4.tar.bz2 | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenDAGPatterns.h')
| -rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index c246483..60898bc 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/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); } |
