aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/SelectionDAGNodes.h
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-08-16 07:39:52 +0000
committerNadav Rotem <nrotem@apple.com>2012-08-16 07:39:52 +0000
commit52b7ec68d221d65aacbe9b55de325c9b7370b59d (patch)
treea310d58bd2cb10736bab74ef9af979574257a80b /include/llvm/CodeGen/SelectionDAGNodes.h
parent2ff4e9d5afa2074b91940a601fba0a0c154f6a83 (diff)
downloadexternal_llvm-52b7ec68d221d65aacbe9b55de325c9b7370b59d.zip
external_llvm-52b7ec68d221d65aacbe9b55de325c9b7370b59d.tar.gz
external_llvm-52b7ec68d221d65aacbe9b55de325c9b7370b59d.tar.bz2
Add dump/dumpr methods to SDValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 0dfb394..db361ee 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -146,7 +146,8 @@ public:
inline bool isMachineOpcode() const;
inline unsigned getMachineOpcode() const;
inline const DebugLoc getDebugLoc() const;
-
+ inline void dump() const;
+ inline void dumpr() const;
/// reachesChainWithoutSideEffects - Return true if this operand (which must
/// be a chain) reaches the specified operand without crossing any
@@ -806,7 +807,12 @@ inline bool SDValue::hasOneUse() const {
inline const DebugLoc SDValue::getDebugLoc() const {
return Node->getDebugLoc();
}
-
+inline void SDValue::dump() const {
+ return Node->dump();
+}
+inline void SDValue::dumpr() const {
+ return Node->dumpr();
+}
// Define inline functions from the SDUse class.
inline void SDUse::set(const SDValue &V) {