Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 1 | //===-- PPC64CodeEmitter.cpp - JIT Code Emitter for PPC64 -----*- C++ -*-=// |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 2 | // |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by the LLVM research group and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 7 | // |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 9 | // |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "PPC64JITInfo.h" |
| 14 | #include "PPC64TargetMachine.h" |
Chris Lattner | eea9b13 | 2004-11-16 04:47:33 +0000 | [diff] [blame] | 15 | using namespace llvm; |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 16 | |
| 17 | /// addPassesToEmitMachineCode - Add passes to the specified pass manager to get |
| 18 | /// machine code emitted. This uses a MachineCodeEmitter object to handle |
| 19 | /// actually outputting the machine code and resolving things like the address |
| 20 | /// of functions. This method should returns true if machine code emission is |
| 21 | /// not supported. |
| 22 | /// |
| 23 | bool PPC64TargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM, |
| 24 | MachineCodeEmitter &MCE) { |
| 25 | return true; |
| 26 | // It should go something like this: |
| 27 | // PM.add(new Emitter(MCE)); // Machine code emitter pass for PPC64 |
| 28 | // Delete machine code for this function after emitting it: |
| 29 | // PM.add(createMachineCodeDeleter()); |
| 30 | } |
| 31 | |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 32 | void PPC64JITInfo::replaceMachineCodeForFunction (void *Old, void *New) { |
| 33 | assert (0 && "PPC64JITInfo::replaceMachineCodeForFunction not implemented"); |
| 34 | } |
| 35 | |