| commit | 66d9a752b9c4c7de32f21f921d1678799a254259 | [log] [tgz] |
|---|---|---|
| author | Alex Bradbury <asb@lowrisc.org> | Thu Nov 29 20:43:42 2018 +0000 |
| committer | Alex Bradbury <asb@lowrisc.org> | Thu Nov 29 20:43:42 2018 +0000 |
| tree | 883e834f03d6c63309867b074bdb2658180989b9 | |
| parent | 7eb1c2864fb3b3482432bb979f40c740ca99f023 [diff] |
[RISCV] Implement codegen for cmpxchg on RV32IA
Utilise a similar ('late') lowering strategy to D47882. The changes to
AtomicExpandPass allow this strategy to be utilised by other targets which
implement shouldExpandAtomicCmpXchgInIR.
All cmpxchg are lowered as 'strong' currently and failure ordering is ignored.
This is conservative but correct.
Differential Revision: https://reviews.llvm.org/D48131
llvm-svn: 347914