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 | a348f55ec6008862d242a0df41baae4ec5ec5c27 (patch) | |
tree | 381737ff0c465b0d15beb72b35424956dcf7d62e /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | f4d55ec4e8456fcd52270d3aa5b7261c07b187ba (diff) | |
download | bcm5719-llvm-a348f55ec6008862d242a0df41baae4ec5ec5c27.tar.gz bcm5719-llvm-a348f55ec6008862d242a0df41baae4ec5ec5c27.zip |
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.
llvm-svn: 45654
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 52610cfaa4c..5a826cd0f18 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -317,6 +317,8 @@ SDNodeInfo::SDNodeInfo(Record *R) : Def(R) { Properties |= 1 << SDNPInFlag; } else if (PropList[i]->getName() == "SDNPOptInFlag") { Properties |= 1 << SDNPOptInFlag; + } else if (PropList[i]->getName() == "SDNPMayStore") { + Properties |= 1 << SDNPMayStore; } else { cerr << "Unknown SD Node property '" << PropList[i]->getName() << "' on node '" << R->getName() << "'!\n"; |