aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-07-28 04:20:33 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-07-28 04:20:33 +0000
commit2e4d1084954e79a0be1ea293d5cad4808f873ca4 (patch)
tree789fae610e13cf16bfd799c1d37707cc39474654
parent3c3b713d55da4f0d13578c38644607716bebcca0 (diff)
Remove redundant and unused functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/InstrForest.h31
1 files changed, 20 insertions, 11 deletions
diff --git a/include/llvm/CodeGen/InstrForest.h b/include/llvm/CodeGen/InstrForest.h
index 66b9583421..bbfd65d417 100644
--- a/include/llvm/CodeGen/InstrForest.h
+++ b/include/llvm/CodeGen/InstrForest.h
@@ -24,17 +24,27 @@
#ifndef LLVM_CODEGEN_INSTRFOREST_H
#define LLVM_CODEGEN_INSTRFOREST_H
-#include "llvm/Support/NonCopyable.h"
-#include "llvm/Instruction.h"
+//************************** System Include Files **************************/
+
#include <hash_map>
#include <hash_set>
+//*************************** User Include Files ***************************/
+
+#include "llvm/Support/NonCopyable.h"
+#include "llvm/Support/HashExtras.h"
+#include "llvm/Instruction.h"
+
+//************************* Opaque Declarations ****************************/
+
class ConstPoolVal;
class BasicBlock;
class Method;
class InstrTreeNode;
class InstrForest;
+/******************** Exported Data Types and Constants ********************/
+
//--------------------------------------------------------------------------
// OpLabel values for special-case nodes created for instruction selection.
// All op-labels not defined here are identical to the instruction
@@ -108,12 +118,8 @@ extern void printtree (BasicTreeNode*);
extern int treecost (BasicTreeNode*, int, int);
extern void printMatches (BasicTreeNode*);
-//************************ Exported Data Types *****************************/
-// Provide a hash function for arbitrary pointers...
-template <class T> struct hash<T *> {
- inline size_t operator()(T *Val) const { return (size_t)Val; }
-};
+//*********************** Public Class Declarations ************************/
//------------------------------------------------------------------------
// class InstrTreeNode
@@ -185,8 +191,10 @@ protected:
class InstructionNode: public InstrTreeNode {
public:
/*ctor*/ InstructionNode (Instruction* _instr);
- Instruction* getInstruction () const { return (Instruction*) val; }
- void reverseBinaryArgumentOrder();
+ Instruction* getInstruction () const {
+ assert(treeNodeType == NTInstructionNode);
+ return (Instruction*) val;
+ }
protected:
virtual void dumpNode (int indent) const;
};
@@ -282,6 +290,7 @@ private:
InstructionNode* buildTreeForInstruction(Instruction* instr);
};
-//---------------------------------------------------------------------------
-#endif /* #ifndef INSTRFOREST_H */
+/***************************************************************************/
+
+#endif