]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/nvptx/nvptx.md
[nvptx] Generalize bar.sync instruction
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Dec 2018 10:17:01 +0000 (10:17 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Dec 2018 10:17:01 +0000 (10:17 +0000)
commitb1a50cddd415522ab3e4adaaff5d63dbcd725176
tree819d7d0613f2f27c82e00fcf8178b5235c86cbef
parent1fba3b6ec43c5046cb5e4602c629a3ae2d50004b
[nvptx] Generalize bar.sync instruction

Allow the logical barrier operand of nvptx_barsync to be a register, and add a
thread count operand.

Build and reg-tested on x86_64 with nvptx accelerator.

2018-12-19  Tom de Vries  <tdevries@suse.de>

* config/nvptx/nvptx.md (nvptx_barsync): Add and handle operand.
* config/nvptx/nvptx.c (nvptx_wsync): Update call to gen_nvptx_barsync.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267258 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/nvptx/nvptx.c
gcc/config/nvptx/nvptx.md