LLVM API Documentation
00001 //===-- PPC64CodeEmitter.cpp - JIT Code Emitter for PPC64 -----*- C++ -*-=// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file was developed by the LLVM research group and is distributed under 00006 // the University of Illinois Open Source License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // 00011 //===----------------------------------------------------------------------===// 00012 00013 #include "PPC64JITInfo.h" 00014 #include "PPC64TargetMachine.h" 00015 using namespace llvm; 00016 00017 /// addPassesToEmitMachineCode - Add passes to the specified pass manager to get 00018 /// machine code emitted. This uses a MachineCodeEmitter object to handle 00019 /// actually outputting the machine code and resolving things like the address 00020 /// of functions. This method should returns true if machine code emission is 00021 /// not supported. 00022 /// 00023 bool PPC64TargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM, 00024 MachineCodeEmitter &MCE) { 00025 return true; 00026 // It should go something like this: 00027 // PM.add(new Emitter(MCE)); // Machine code emitter pass for PPC64 00028 // Delete machine code for this function after emitting it: 00029 // PM.add(createMachineCodeDeleter()); 00030 } 00031 00032 void PPC64JITInfo::replaceMachineCodeForFunction (void *Old, void *New) { 00033 assert (0 && "PPC64JITInfo::replaceMachineCodeForFunction not implemented"); 00034 } 00035