Start adding to the meat of MachineCodeEmitter

llvm-svn: 4869
This commit is contained in:
Chris Lattner 2002-12-02 21:44:13 +00:00
parent 58743b9f78
commit d5eadf6aa4
1 changed files with 19 additions and 1 deletions

View File

@ -10,11 +10,29 @@
#ifndef LLVM_CODEGEN_MACHINE_CODE_EMITTER_H
#define LLVM_CODEGEN_MACHINE_CODE_EMITTER_H
class MachineFunction;
class MachineBasicBlock;
struct MachineCodeEmitter {
/// startFunction - This callback is invoked when the specified function is
/// about to be code generated.
///
virtual void startFunction(MachineFunction &F) {}
/// finishFunction - This callback is invoked when the specified function has
/// finished code generation.
///
virtual void finishFunction(MachineFunction &F) {}
/// startBasicBlock - This callback is invoked when a new basic block is about
/// to be emitted.
///
virtual void startBasicBlock(MachineBasicBlock &BB) {}
/// emitByte - This callback is invoked when a byte needs to be written to the
/// output stream.
virtual void emitByte(unsigned char B) {}
};
#endif