stage2: fix "cmpxchg with ptr" test case

* Sema: fix atomic operand checking to allow pointers.
 * LLVM backend: implement pointer-like optional constants.
 * LLVM backend: fix `is_non_null` and `optional_payload` instructions
   to support pointer-like optionals.
 * Type: introduce `isPtrAtRuntime` method.
 * Type: fix `isPtrLikeOptional` to get the correct answer for allowzero
   pointers and slices.
d5c1d24964Andrew Kelley committed on 9/16/2021, 2:55:57 AMparentb67d181
5 files changedLine totals unavailable