aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-07-21 10:20:31 +0000
committerDuncan Sands <baldrick@free.fr>2008-07-21 10:20:31 +0000
commitd038e04188047eca4749d025ef1f05f7ae660bca (patch)
treed325f4f744978ef06da9fc4fe8a8bbd093aa0879 /include
parent41c08405839c49fc6d981c024fc03efb0309acc6 (diff)
downloadexternal_llvm-d038e04188047eca4749d025ef1f05f7ae660bca.zip
external_llvm-d038e04188047eca4749d025ef1f05f7ae660bca.tar.gz
external_llvm-d038e04188047eca4749d025ef1f05f7ae660bca.tar.bz2
Add VerifyNode, a place to put sanity checks on
generic SDNode's (nodes with their own constructors should do sanity checking in the constructor). Add sanity checks for BUILD_VECTOR and fix all the places that were producing bogus BUILD_VECTORs, as found by "make check". My favorite is the BUILD_VECTOR with only two operands that was being used to build a vector with four elements! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index f530f33..32c02ba 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -64,6 +64,9 @@ class SelectionDAG {
/// SelectionDAG.
BumpPtrAllocator Allocator;
+ /// VerifyNode - Sanity check the given node. Aborts if it is invalid.
+ void VerifyNode(SDNode *N);
+
public:
SelectionDAG(TargetLowering &tli, MachineFunction &mf,
FunctionLoweringInfo &fli, MachineModuleInfo *mmi,