[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineCodeEmitter.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 6 12:24:01 PST 2003
Changes in directory llvm/include/llvm/CodeGen:
MachineCodeEmitter.h updated: 1.5 -> 1.6
---
Log message:
Add new methods for constant pool support
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/MachineCodeEmitter.h
diff -u llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.5 llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.6
--- llvm/include/llvm/CodeGen/MachineCodeEmitter.h:1.5 Wed Dec 4 00:44:27 2002
+++ llvm/include/llvm/CodeGen/MachineCodeEmitter.h Mon Jan 6 12:23:45 2003
@@ -12,6 +12,7 @@
class MachineFunction;
class MachineBasicBlock;
+class MachineConstantPool;
class Value;
class GlobalValue;
@@ -28,6 +29,10 @@
///
virtual void finishFunction(MachineFunction &F) {}
+ /// emitConstantPool - This callback is invoked to output the constant pool
+ /// for the function.
+ virtual void emitConstantPool(MachineConstantPool *MCP) {}
+
/// startBasicBlock - This callback is invoked when a new basic block is about
/// to be emitted.
///
@@ -50,6 +55,13 @@
///
virtual void emitGlobalAddress(GlobalValue *V) {}
+ /// emitFunctionConstantValueAddress - This callback is invoked when the
+ /// address of a constant, which was spilled to memory, needs to be addressed.
+ /// This is used for constants which cannot be directly specified as operands
+ /// to instructions, such as large integer values on the sparc, or floating
+ /// point constants on the X86.
+ ///
+ virtual void emitFunctionConstantValueAddress(unsigned ConstantNum) {}
/// createDebugMachineCodeEmitter - Return a dynamically allocated machine
/// code emitter, which just prints the opcodes and fields out the cout. This
More information about the llvm-commits
mailing list