Eliminate support for the llvm.unwind intrinisic, using the Unwind instruction instead
[oota-llvm.git] / lib / Target / X86 / X86.h
1 //===-- X86.h - Top-level interface for X86 representation ------*- C++ -*-===//
2 //
3 // This file contains the entry points for global functions defined in the x86
4 // target library, as used by the LLVM JIT.
5 //
6 //===----------------------------------------------------------------------===//
7
8 #ifndef TARGET_X86_H
9 #define TARGET_X86_H
10
11 #include <iosfwd>
12 class TargetMachine;
13 class FunctionPass;
14
15 /// createX86SimpleInstructionSelector - This pass converts an LLVM function
16 /// into a machine code representation in a very simple peep-hole fashion.  The
17 /// generated code sucks but the implementation is nice and simple.
18 ///
19 FunctionPass *createX86SimpleInstructionSelector(TargetMachine &TM);
20
21 /// createX86PatternInstructionSelector - This pass converts an LLVM function
22 /// into a machine code representation using pattern matching and a machine
23 /// description file.
24 ///
25 FunctionPass *createX86PatternInstructionSelector(TargetMachine &TM);
26
27 /// createX86PeepholeOptimizer - Create a pass to perform X86 specific peephole
28 /// optimizations.
29 ///
30 FunctionPass *createX86PeepholeOptimizerPass();
31
32 /// createX86FloatingPointStackifierPass - This function returns a pass which
33 /// converts floating point register references and pseudo instructions into
34 /// floating point stack references and physical instructions.
35 ///
36 FunctionPass *createX86FloatingPointStackifierPass();
37
38 /// createX86CodePrinterPass - Returns a pass that prints the X86
39 /// assembly code for a MachineFunction to the given output stream,
40 /// using the given target machine description.  This should work
41 /// regardless of whether the function is in SSA form.
42 ///
43 FunctionPass *createX86CodePrinterPass(std::ostream &o,TargetMachine &tm);
44
45 /// createX86EmitCodeToMemory - Returns a pass that converts a register
46 /// allocated function into raw machine code in a dynamically
47 /// allocated chunk of memory.
48 ///
49 FunctionPass *createEmitX86CodeToMemory();
50
51 // Defines symbolic names for X86 registers.  This defines a mapping from
52 // register name to register number.
53 //
54 #include "X86GenRegisterNames.inc"
55
56 // Defines symbolic names for the X86 instructions.
57 //
58 #include "X86GenInstrNames.inc"
59
60 #endif