summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenTarget.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-06 06:44:58 +0000
committerChris Lattner <sabre@nondot.org>2008-01-06 06:44:58 +0000
commita348f55ec6008862d242a0df41baae4ec5ec5c27 (patch)
tree381737ff0c465b0d15beb72b35424956dcf7d62e /llvm/utils/TableGen/CodeGenTarget.h
parentf4d55ec4e8456fcd52270d3aa5b7261c07b187ba (diff)
downloadbcm5719-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/CodeGenTarget.h')
-rw-r--r--llvm/utils/TableGen/CodeGenTarget.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.h b/llvm/utils/TableGen/CodeGenTarget.h
index f024c1d62aa..02afe955472 100644
--- a/llvm/utils/TableGen/CodeGenTarget.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud