Add SynchronizationScope enum
Add function to create AtomicCmpXchg instructions