cmd/compile: intrinsify sync/atomic for amd64
Keith Randall authored
Uses the same implementation as runtime/internal/atomic.

Reorganize the intrinsic detector to make it more table-driven.

Also works on amd64p32.

Change-Id: I7a5238951d6018d7d5d1bc01f339f6ee9282b2d0
Reviewed-on: https://go-review.googlesource.com/28076

Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
d6098e42