mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
R600/SI: Add a pattern for llvm.AMDGPU.barrier.global
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bae98b1b45
commit
ff8dc48da3
@ -65,6 +65,7 @@ let TargetPrefix = "AMDGPU", isTarget = 1 in {
|
|||||||
def int_AMDGPU_bfe_u32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
|
def int_AMDGPU_bfe_u32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
|
||||||
def int_AMDGPU_bfm : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
|
def int_AMDGPU_bfm : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>;
|
||||||
def int_AMDGPU_barrier_local : Intrinsic<[], [], []>;
|
def int_AMDGPU_barrier_local : Intrinsic<[], [], []>;
|
||||||
|
def int_AMDGPU_barrier_global : Intrinsic<[], [], []>;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Legacy names for compatability.
|
// Legacy names for compatability.
|
||||||
|
@ -348,7 +348,7 @@ def FLT_TO_UINT_eg : FLT_TO_UINT_Common<0x9A> {
|
|||||||
def UINT_TO_FLT_eg : UINT_TO_FLT_Common<0x9C>;
|
def UINT_TO_FLT_eg : UINT_TO_FLT_Common<0x9C>;
|
||||||
|
|
||||||
def GROUP_BARRIER : InstR600 <
|
def GROUP_BARRIER : InstR600 <
|
||||||
(outs), (ins), " GROUP_BARRIER", [(int_AMDGPU_barrier_local)], AnyALU>,
|
(outs), (ins), " GROUP_BARRIER", [(int_AMDGPU_barrier_local), (int_AMDGPU_barrier_global)], AnyALU>,
|
||||||
R600ALU_Word0,
|
R600ALU_Word0,
|
||||||
R600ALU_Word1_OP2 <0x54> {
|
R600ALU_Word1_OP2 <0x54> {
|
||||||
|
|
||||||
@ -377,6 +377,11 @@ def GROUP_BARRIER : InstR600 <
|
|||||||
let ALUInst = 1;
|
let ALUInst = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def : Pat <
|
||||||
|
(int_AMDGPU_barrier_global),
|
||||||
|
(GROUP_BARRIER)
|
||||||
|
>;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// LDS Instructions
|
// LDS Instructions
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
@ -1731,6 +1731,15 @@ def : Pat <
|
|||||||
(S_XOR_B64 $src0, $src1)
|
(S_XOR_B64 $src0, $src1)
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// SOPP Patterns
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
def : Pat <
|
||||||
|
(int_AMDGPU_barrier_global),
|
||||||
|
(S_BARRIER)
|
||||||
|
>;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// VOP2 Patterns
|
// VOP2 Patterns
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user