Initial stab at MachineInstr'ication
authorChris Lattner <sabre@nondot.org>
Mon, 28 Oct 2002 23:55:19 +0000 (23:55 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Oct 2002 23:55:19 +0000 (23:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4367 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/Printer.cpp
lib/Target/X86/X86.h
lib/Target/X86/X86AsmPrinter.cpp
lib/Target/X86/X86InstrInfo.h

index 88aa89c2eb71b58574523e0dd93ab9f2dd730a7c..1a42ed86f84058ca9bc73f4b3deef859c2cea7b4 100644 (file)
@@ -13,7 +13,7 @@
 /// the function is in SSA form or not, although when in SSA form, we obviously
 /// don't care about being consumable by an assembler.
 ///
-void X86PrintCode(const MFunction *MF, std::ostream &O) {
+void X86PrintCode(const MachineFunction *MF, std::ostream &O) {
   O << "x86 printing not implemented yet!\n";
 
   // This should use the X86InstructionInfo::print method to print assembly for
index 135e55a4dd56182c1f4a6f6d5f94af2e493a9683..aa4508a8394e640244757420e53f45e80a721b83 100644 (file)
 #define TARGET_X86_H
 
 #include <iosfwd>
-class MFunction;
+class MachineFunction;
 class Function;
 
 /// X86PrintCode - Print out the specified machine code function to the
 /// specified stream.  This function should work regardless of whether or not
 /// the function is in SSA form or not.
 ///
-void X86PrintCode(const MFunction *MF, std::ostream &O);
+void X86PrintCode(const MachineFunction *MF, std::ostream &O);
 
 /// X86SimpleInstructionSelection - This function converts an LLVM function into
 /// a machine code representation is a very simple peep-hole fashion.  The
 /// generated code sucks but the implementation is nice and simple.
 ///
-MFunction *X86SimpleInstructionSelection(Function &F);
+MachineFunction *X86SimpleInstructionSelection(Function &F);
 
 /// X86SimpleRegisterAllocation - This function converts the specified machine
 /// code function from SSA form to use explicit registers by spilling every
 /// register.  Wow, great policy huh?
 ///
-inline void X86SimpleRegisterAllocation(MFunction *MF) {}
+inline void X86SimpleRegisterAllocation(MachineFunction *MF) {}
 
 /// X86EmitCodeToMemory - This function converts a register allocated function
 /// into raw machine code in a dynamically allocated chunk of memory.  A pointer
 /// to the start of the function is returned.
 ///
-inline void *X86EmitCodeToMemory(MFunction *MF) { return 0; }
+inline void *X86EmitCodeToMemory(MachineFunction *MF) { return 0; }
 
 
 // Put symbolic names in a namespace to avoid causing these to clash with all
index 88aa89c2eb71b58574523e0dd93ab9f2dd730a7c..1a42ed86f84058ca9bc73f4b3deef859c2cea7b4 100644 (file)
@@ -13,7 +13,7 @@
 /// the function is in SSA form or not, although when in SSA form, we obviously
 /// don't care about being consumable by an assembler.
 ///
-void X86PrintCode(const MFunction *MF, std::ostream &O) {
+void X86PrintCode(const MachineFunction *MF, std::ostream &O) {
   O << "x86 printing not implemented yet!\n";
 
   // This should use the X86InstructionInfo::print method to print assembly for
index 116e6b1733ab32dcaeb871636af8f3a02860c8bc..95c292523e37f6e71d51882c9b67c86e1e2289f2 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef X86INSTRUCTIONINFO_H
 #define X86INSTRUCTIONINFO_H
 
-#include "llvm/Target/MInstructionInfo.h"
+#include "llvm/Target/InstructionInfo.h"
 #include "X86RegisterInfo.h"
 
 class X86InstructionInfo : public MInstructionInfo {