Move XForm instructions over to the auto-generated asm writer
[oota-llvm.git] / lib / Target / PowerPC / PPC64JITInfo.h
1 //===- PPC64JITInfo.h - PowerPC/AIX impl. of the JIT interface -*- C++ -*-===//
2 // 
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.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the PowerPC/AIX implementation of the TargetJITInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef POWERPC_AIX_JITINFO_H
15 #define POWERPC_AIX_JITINFO_H
16
17 #include "PowerPCJITInfo.h"
18
19 namespace llvm {
20   class TargetMachine;
21
22   class PPC64JITInfo : public PowerPCJITInfo {
23   public:
24     PPC64JITInfo(TargetMachine &tm) : PowerPCJITInfo(tm) {}
25
26     /// replaceMachineCodeForFunction - Make it so that calling the function
27     /// whose machine code is at OLD turns into a call to NEW, perhaps by
28     /// overwriting OLD with a branch to NEW.  This is used for self-modifying
29     /// code.
30     ///
31     virtual void replaceMachineCodeForFunction(void *Old, void *New);
32     
33     /// getJITStubForFunction - Create or return a stub for the specified
34     /// function.  This stub acts just like the specified function, except that
35     /// it allows the "address" of the function to be taken without having to
36     /// generate code for it.
37     virtual void *getJITStubForFunction(Function *F, MachineCodeEmitter &MCE);
38   };
39 }
40
41 #endif