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 Pass *createX86SimpleInstructionSelector(TargetMachine &TM);
21 /// createX86PeepholeOptimizer - Create a pass to perform X86 specific peephole
24 Pass *createX86PeepholeOptimizerPass();
26 /// createX86FloatingPointStackifierPass - This function returns a pass which
27 /// converts floating point register references and pseudo instructions into
28 /// floating point stack references and physical instructions.
30 Pass *createX86FloatingPointStackifierPass();
32 /// createX86CodePrinterPass - Returns a pass that prints the X86
33 /// assembly code for a MachineFunction to the given output stream,
34 /// using the given target machine description. This should work
35 /// regardless of whether the function is in SSA form.
37 Pass *createX86CodePrinterPass(std::ostream &o, TargetMachine &tm);
39 /// X86EmitCodeToMemory - This function converts a register allocated function
40 /// into raw machine code in a dynamically allocated chunk of memory. A pointer
41 /// to the start of the function is returned.
43 Pass *createEmitX86CodeToMemory();
45 // Defines symbolic names for X86 registers. This defines a mapping from
46 // register name to register number.
48 #include "X86GenRegisterNames.inc"
50 /// X86 namespace - This namespace contains all of the register and opcode enums
51 /// used by the X86 backend.
54 // This defines a large number of symbolic names for X86 instruction opcodes.
56 #define I(ENUM, NAME, BASEOPCODE, FLAGS, TSFLAGS, IMPDEFS, IMPUSES) ENUM,
57 #include "X86InstrInfo.def"