IR: add "cmpxchg weak" variant to support permitted failure.