diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-06 06:44:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-06 06:44:58 +0000 |
commit | c8478d8b12c2d7e4cea32d0c9940f5cac2baa4dd (patch) | |
tree | 26d074393ffc74b2550a4064726346825bb9878d /utils/TableGen/CodeGenTarget.h | |
parent | 13c6310866bc3ebfc8255a17d8ff2afb233f01cc (diff) |
Change the 'isStore' inferrer to look for 'SDNPMayStore'
instead of "ISD::STORE". This allows us to mark target-specific dag
nodes as storing (such as ppc byteswap stores). This allows us to remove
more explicit isStore flags from the .td files.
Finally, add a warning for when a .td file contains an explicit
isStore and tblgen is able to infer it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | utils/TableGen/CodeGenTarget.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index f024c1d62a..02afe95547 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -30,8 +30,15 @@ struct CodeGenRegister; class CodeGenTarget; // SelectionDAG node properties. -enum SDNP { SDNPCommutative, SDNPAssociative, SDNPHasChain, - SDNPOutFlag, SDNPInFlag, SDNPOptInFlag }; +enum SDNP { + SDNPCommutative, + SDNPAssociative, + SDNPHasChain, + SDNPOutFlag, + SDNPInFlag, + SDNPOptInFlag, + SDNPMayStore +}; /// getValueType - Return the MVT::ValueType that the specified TableGen record /// corresponds to. |