[X86] Fix an unused variable warning in released builds.
[oota-llvm.git] / lib / Target / X86 / X86.h
1 //===-- X86.h - Top-level interface for X86 representation ------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the entry points for global functions defined in the x86
11 // target library, as used by the LLVM JIT.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_LIB_TARGET_X86_X86_H
16 #define LLVM_LIB_TARGET_X86_X86_H
17
18 #include "llvm/Support/CodeGen.h"
19
20 namespace llvm {
21
22 class FunctionPass;
23 class ImmutablePass;
24 class X86TargetMachine;
25
26 /// This pass converts a legalized DAG into a X86-specific DAG, ready for
27 /// instruction scheduling.
28 FunctionPass *createX86ISelDag(X86TargetMachine &TM,
29                                CodeGenOpt::Level OptLevel);
30
31 /// This pass initializes a global base register for PIC on x86-32.
32 FunctionPass* createX86GlobalBaseRegPass();
33
34 /// This pass combines multiple accesses to local-dynamic TLS variables so that
35 /// the TLS base address for the module is only fetched once per execution path
36 /// through the function.
37 FunctionPass *createCleanupLocalDynamicTLSPass();
38
39 /// This function returns a pass which converts floating-point register
40 /// references and pseudo instructions into floating-point stack references and
41 /// physical instructions.
42 FunctionPass *createX86FloatingPointStackifierPass();
43
44 /// This pass inserts AVX vzeroupper instructions before each call to avoid
45 /// transition penalty between functions encoded with AVX and SSE.
46 FunctionPass *createX86IssueVZeroUpperPass();
47
48 /// Return a pass that pads short functions with NOOPs.
49 /// This will prevent a stall when returning on the Atom.
50 FunctionPass *createX86PadShortFunctions();
51
52 /// Return a a pass that selectively replaces certain instructions (like add,
53 /// sub, inc, dec, some shifts, and some multiplies) by equivalent LEA
54 /// instructions, in order to eliminate execution delays in some processors.
55 FunctionPass *createX86FixupLEAs();
56
57 /// Return a pass that removes redundant address recalculations.
58 FunctionPass *createX86OptimizeLEAs();
59
60 /// Return a pass that optimizes the code-size of x86 call sequences. This is
61 /// done by replacing esp-relative movs with pushes.
62 FunctionPass *createX86CallFrameOptimization();
63
64 /// Return an IR pass that inserts EH registration stack objects and explicit
65 /// EH state updates. This pass must run after EH preparation, which does
66 /// Windows-specific but architecture-neutral preparation.
67 FunctionPass *createX86WinEHStatePass();
68
69 /// Return a Machine IR pass that expands X86-specific pseudo
70 /// instructions into a sequence of actual instructions. This pass
71 /// must run after prologue/epilogue insertion and before lowering
72 /// the MachineInstr to MC.
73 FunctionPass *createX86ExpandPseudoPass();
74 } // End llvm namespace
75
76 #endif