Taints the non-acquire RMW's store address with the load part
[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 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 LEA instructions and redundant address
58 /// recalculations.
59 FunctionPass *createX86OptimizeLEAs();
60
61 /// Return a pass that optimizes the code-size of x86 call sequences. This is
62 /// done by replacing esp-relative movs with pushes.
63 FunctionPass *createX86CallFrameOptimization();
64
65 /// Return an IR pass that inserts EH registration stack objects and explicit
66 /// EH state updates. This pass must run after EH preparation, which does
67 /// Windows-specific but architecture-neutral preparation.
68 FunctionPass *createX86WinEHStatePass();
69
70 /// Return a Machine IR pass that expands X86-specific pseudo
71 /// instructions into a sequence of actual instructions. This pass
72 /// must run after prologue/epilogue insertion and before lowering
73 /// the MachineInstr to MC.
74 FunctionPass *createX86ExpandPseudoPass();
75 } // End llvm namespace
76
77 #endif