LLVM API Documentation
00001 //===- PPC64JITInfo.h - PowerPC/AIX impl. of the JIT interface -*- 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 // This file contains the PowerPC/AIX implementation of the TargetJITInfo class. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef POWERPC_AIX_JITINFO_H 00015 #define POWERPC_AIX_JITINFO_H 00016 00017 #include "PowerPCJITInfo.h" 00018 00019 namespace llvm { 00020 class TargetMachine; 00021 00022 class PPC64JITInfo : public PowerPCJITInfo { 00023 public: 00024 PPC64JITInfo(TargetMachine &tm) : PowerPCJITInfo(tm) {} 00025 00026 /// replaceMachineCodeForFunction - Make it so that calling the function 00027 /// whose machine code is at OLD turns into a call to NEW, perhaps by 00028 /// overwriting OLD with a branch to NEW. This is used for self-modifying 00029 /// code. 00030 /// 00031 virtual void replaceMachineCodeForFunction(void *Old, void *New); 00032 }; 00033 } 00034 00035 #endif