[llvm] Fix type mismatches in the implementation of the atomic opcodes.