AtomicExpand: Add NotAtomic lowering strategy
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 Apr 2022 20:38:19 +0000 (16:38 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 7 Apr 2022 02:34:35 +0000 (22:34 -0400)
commit7f14a1d46b8e2233cbfb959e55ac9b7d33449c7e
tree15f453b3ea2274321b52e41a5ebefd67fbdc6087
parentc4ea925f504850e521d1e9d7c54bb00a1f1d80c3
AtomicExpand: Add NotAtomic lowering strategy

Currently LowerAtomics exists as a separate pass which blindly
replaces all atomics. Add a new lowering strategy option to eliminate
the atomics which the target can control on a per-instruction level.
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/AtomicExpandPass.cpp