1 //===-- X86.h - Top-level interface for X86 representation ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
10 // This file contains the entry points for global functions defined in the x86
11 // target library, as used by the LLVM JIT.
13 //===----------------------------------------------------------------------===//
25 /// createX86SimpleInstructionSelector - This pass converts an LLVM function
26 /// into a machine code representation in a very simple peep-hole fashion. The
27 /// generated code sucks but the implementation is nice and simple.
29 FunctionPass *createX86SimpleInstructionSelector(TargetMachine &TM);
31 /// createX86PatternInstructionSelector - This pass converts an LLVM function
32 /// into a machine code representation using pattern matching and a machine
35 FunctionPass *createX86PatternInstructionSelector(TargetMachine &TM);
37 /// createX86SSAPeepholeOptimizerPass - Create a pass to perform SSA-based X86
38 /// specific peephole optimizations.
40 FunctionPass *createX86SSAPeepholeOptimizerPass();
42 /// createX86PeepholeOptimizer - Create a pass to perform X86 specific peephole
45 FunctionPass *createX86PeepholeOptimizerPass();
47 /// createX86FloatingPointKiller - This function returns a pass which
48 /// kills every floating point register at the end of each basic block
49 /// because our FloatingPointStackifier cannot handle them.
51 FunctionPass *createX86FloatingPointKillerPass();
53 /// createX86FloatingPointStackifierPass - This function returns a pass which
54 /// converts floating point register references and pseudo instructions into
55 /// floating point stack references and physical instructions.
57 FunctionPass *createX86FloatingPointStackifierPass();
59 /// createX86CodePrinterPass - Returns a pass that prints the X86
60 /// assembly code for a MachineFunction to the given output stream,
61 /// using the given target machine description. This should work
62 /// regardless of whether the function is in SSA form.
64 FunctionPass *createX86CodePrinterPass(std::ostream &o,TargetMachine &tm);
66 /// createX86EmitCodeToMemory - Returns a pass that converts a register
67 /// allocated function into raw machine code in a dynamically
68 /// allocated chunk of memory.
70 FunctionPass *createEmitX86CodeToMemory();
72 // Defines symbolic names for X86 registers. This defines a mapping from
73 // register name to register number.
75 } // End llvm namespace
77 #include "X86GenRegisterNames.inc"
79 // Defines symbolic names for the X86 instructions.
81 #include "X86GenInstrNames.inc"