]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: intrinsify sync/atomic for amd64
authorKeith Randall <khr@golang.org>
Tue, 30 Aug 2016 03:28:20 +0000 (20:28 -0700)
committerKeith Randall <khr@golang.org>
Tue, 30 Aug 2016 15:23:23 +0000 (15:23 +0000)
commitd6098e4277bab633c2df752ed90e1e826918ca67
treebd46336b292a33dce204bb23313850b9da1c82bf
parentadb1e67f02fa58b13d1baf60c84556f375f6ceeb
cmd/compile: intrinsify sync/atomic for amd64

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: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/ssa.go
src/sync/atomic/asm_amd64.s
src/sync/atomic/asm_amd64p32.s
src/sync/atomic/atomic_test.go