X86: expand atomics in IR instead of as MachineInstrs.
[oota-llvm.git] / lib / Target / X86 / X86.h
index 64e8ea834f47e39bd4f7b44a1eb53718c54e956f..d5522ed95eb472d5ae38a3b0603747877a86481d 100644 (file)
@@ -24,6 +24,10 @@ class ImmutablePass;
 class JITCodeEmitter;
 class X86TargetMachine;
 
+/// createX86AtomicExpandPass - This pass expands atomic operations that cannot
+/// be handled natively in terms of a loop using cmpxchg.
+FunctionPass *createX86AtomicExpandPass(const X86TargetMachine *TM);
+
 /// createX86ISelDag - This pass converts a legalized DAG into a
 /// X86-specific DAG, ready for instruction scheduling.
 ///