1 //===-- X86.h - Top-level interface for X86 representation ------*- C++ -*-===//
3 // This file contains the entry points for global functions defined in the x86
4 // target library, as used by the LLVM JIT.
6 //===----------------------------------------------------------------------===//
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.
19 FunctionPass *createX86SimpleInstructionSelector(TargetMachine &TM);
21 /// createX86PatternInstructionSelector - This pass converts an LLVM function
22 /// into a machine code representation using pattern matching and a machine
25 FunctionPass *createX86PatternInstructionSelector(TargetMachine &TM);
27 /// createX86PeepholeOptimizer - Create a pass to perform X86 specific peephole
30 FunctionPass *createX86PeepholeOptimizerPass();
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.
36 FunctionPass *createX86FloatingPointStackifierPass();
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.
43 FunctionPass *createX86CodePrinterPass(std::ostream &o,TargetMachine &tm);
45 /// createX86EmitCodeToMemory - Returns a pass that converts a register
46 /// allocated function into raw machine code in a dynamically
47 /// allocated chunk of memory.
49 FunctionPass *createEmitX86CodeToMemory();
51 // Defines symbolic names for X86 registers. This defines a mapping from
52 // register name to register number.
54 #include "X86GenRegisterNames.inc"
56 // Defines symbolic names for the X86 instructions.
58 #include "X86GenInstrNames.inc"