summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-29 20:07:16 +0000
committerChris Lattner <sabre@nondot.org>2002-10-29 20:07:16 +0000
commit495fe2e087c5f4ec4372d8f6d2fdc27ff93c61c5 (patch)
tree44ad92e43c59368ce85877283e4cd64b04e3969d /include
parenta2bae305fb5a870c4ef753ed290a7ddea73ec82b (diff)
downloadllvm-495fe2e087c5f4ec4372d8f6d2fdc27ff93c61c5.tar.gz
llvm-495fe2e087c5f4ec4372d8f6d2fdc27ff93c61c5.tar.bz2
llvm-495fe2e087c5f4ec4372d8f6d2fdc27ff93c61c5.tar.xz
X86 merge is complete, eliminate unused code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MFunction.h70
1 files changed, 0 insertions, 70 deletions
diff --git a/include/llvm/CodeGen/MFunction.h b/include/llvm/CodeGen/MFunction.h
deleted file mode 100644
index 683f2dfbf5..0000000000
--- a/include/llvm/CodeGen/MFunction.h
+++ /dev/null
@@ -1,70 +0,0 @@
-//===-- llvm/CodeGen/MFunction.h - Machine Specific Function ----*- C++ -*-===//
-//
-// This class provides a way to represent a function in a machine-specific form.
-// A function is represented as a list of machine specific blocks along with a
-// list of registers that are used to receive arguments for the function.
-//
-// In the machine specific representation for a function, the function may
-// either be in SSA form or in a register based form. When in SSA form, the
-// register numbers are indexes into the RegDefMap that the MFunction contains.
-// This allows accessing SSA use-def information by using the source register
-// number for a use.
-//
-// After register allocation occurs, all of the register numbers in a function
-// refer to real hardware registers and the RegDefMap is cleared.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef CODEGEN_MFUNCTION_H
-#define CODEGEN_MFUNCTION_H
-
-#include "llvm/CodeGen/MBasicBlock.h"
-#include <iosfwd>
-class MInstructionInfo;
-
-class MFunction {
- iplist<MBasicBlock> BasicBlocks;
- // FIXME: This should contain a pointer to the LLVM function
-public:
-
- /// print - Provide a way to get a simple debugging dump. This dumps the
- /// machine code in a simple "assembly" language that is not really suitable
- /// for an assembler, but is useful for debugging. This is completely target
- /// independant.
- ///
- void print(std::ostream &OS, const MInstructionInfo &MII) const;
- void dump(const MInstructionInfo &MII) const;
-
- // Provide accessors for the MBasicBlock list...
- typedef iplist<MBasicBlock> BasicBlockListType;
- typedef BasicBlockListType::iterator iterator;
- typedef BasicBlockListType::const_iterator const_iterator;
- typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
- typedef std::reverse_iterator<iterator> reverse_iterator;
-
- // Provide accessors for basic blocks...
- const BasicBlockListType &getBasicBlockList() const { return BasicBlocks; }
- BasicBlockListType &getBasicBlockList() { return BasicBlocks; }
-
- //===--------------------------------------------------------------------===//
- // BasicBlock iterator forwarding functions
- //
- iterator begin() { return BasicBlocks.begin(); }
- const_iterator begin() const { return BasicBlocks.begin(); }
- iterator end () { return BasicBlocks.end(); }
- const_iterator end () const { return BasicBlocks.end(); }
-
- reverse_iterator rbegin() { return BasicBlocks.rbegin(); }
- const_reverse_iterator rbegin() const { return BasicBlocks.rbegin(); }
- reverse_iterator rend () { return BasicBlocks.rend(); }
- const_reverse_iterator rend () const { return BasicBlocks.rend(); }
-
- unsigned size() const { return BasicBlocks.size(); }
- bool empty() const { return BasicBlocks.empty(); }
- const MBasicBlock &front() const { return BasicBlocks.front(); }
- MBasicBlock &front() { return BasicBlocks.front(); }
- const MBasicBlock &back() const { return BasicBlocks.back(); }
- MBasicBlock &back() { return BasicBlocks.back(); }
-};
-
-#endif