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 //===----------------------------------------------------------------------===//
24 class IntrinsicLowering;
26 /// createX86SimpleInstructionSelector - This pass converts an LLVM function
27 /// into a machine code representation in a very simple peep-hole fashion. The
28 /// generated code sucks but the implementation is nice and simple.
30 FunctionPass *createX86SimpleInstructionSelector(TargetMachine &TM);
32 /// createX86ReallySimpleInstructionSelector - This pass converts an LLVM
33 /// function into a machine code representation in an even simpler fashion
36 FunctionPass *createX86ReallySimpleInstructionSelector(TargetMachine &TM);
38 /// createX86PatternInstructionSelector - This pass converts an LLVM function
39 /// into a machine code representation using pattern matching and a machine
42 FunctionPass *createX86PatternInstructionSelector(TargetMachine &TM);
44 /// createX86SSAPeepholeOptimizerPass - Create a pass to perform SSA-based X86
45 /// specific peephole optimizations.
47 FunctionPass *createX86SSAPeepholeOptimizerPass();
49 /// createX86PeepholeOptimizer - Create a pass to perform X86 specific peephole
52 FunctionPass *createX86PeepholeOptimizerPass();
54 /// createX86FloatingPointKiller - This function returns a pass which
55 /// kills every floating point register at the end of each basic block
56 /// because our FloatingPointStackifier cannot handle them.
58 FunctionPass *createX86FloatingPointKillerPass();
60 /// createX86FloatingPointStackifierPass - This function returns a pass which
61 /// converts floating point register references and pseudo instructions into
62 /// floating point stack references and physical instructions.
64 FunctionPass *createX86FloatingPointStackifierPass();
66 /// createX86CodePrinterPass - Returns a pass that prints the X86
67 /// assembly code for a MachineFunction to the given output stream,
68 /// using the given target machine description. This should work
69 /// regardless of whether the function is in SSA form.
71 FunctionPass *createX86CodePrinterPass(std::ostream &o,TargetMachine &tm);
73 /// createX86EmitCodeToMemory - Returns a pass that converts a register
74 /// allocated function into raw machine code in a dynamically
75 /// allocated chunk of memory.
77 FunctionPass *createEmitX86CodeToMemory();
79 // Defines symbolic names for X86 registers. This defines a mapping from
80 // register name to register number.
82 } // End llvm namespace
84 #include "X86GenRegisterNames.inc"
86 // Defines symbolic names for the X86 instructions.
88 #include "X86GenInstrNames.inc"