OSDN Git Service

Reapply "AMDGPU: Add ds_gws_init / ds_gws_barrier intrinsics"
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 19 Jun 2019 19:55:27 +0000 (19:55 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 19 Jun 2019 19:55:27 +0000 (19:55 +0000)
commite1eedb66023d4f90b7a46d6703ddf8ef4574d47a
treec6c2484df7c964842552a6efafcb2940ed226efc
parent4368c1672052f456920c243ee65f9150b3546e43
Reapply "AMDGPU: Add ds_gws_init / ds_gws_barrier intrinsics"

This reapplies r363678, using the correct chain for the CopyToReg for
v0. glueCopyToM0 counterintuitively changes the operands of the
original node.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363870 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/IR/IntrinsicsAMDGPU.td
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
lib/Target/AMDGPU/DSInstructions.td
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIInsertWaitcnts.cpp
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIMachineFunctionInfo.h
test/CodeGen/AMDGPU/gws-hazards.mir [new file with mode: 0644]
test/CodeGen/AMDGPU/insert-skips-gws.mir [new file with mode: 0644]
test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.barrier.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/llvm.amdgcn.ds.gws.init.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/tail-duplication-convergent.ll