HomePhabricator

[X86] Use the generic AtomicExpandPass instead of X86AtomicExpandPass

Description

[X86] Use the generic AtomicExpandPass instead of X86AtomicExpandPass

This required a new hook called hasLoadLinkedStoreConditional to know whether
to expand atomics to LL/SC (ARM, AArch64, in a future patch Power) or to
CmpXchg (X86).

Apart from that, the new code in AtomicExpandPass is mostly moved from
X86AtomicExpandPass. The main result of this patch is to get rid of that
pass, which had lots of code duplicated with AtomicExpandPass.

Details

Committed
morissetSep 16 2014, 5:06 PM
Parents
rL217927: More categories could be added, and having an explicit list in this test caseā€¦
Branches
Unknown
Tags
Unknown

Event Timeline