diff options
| author | Michel Danzer <michel.daenzer@amd.com> | 2013-07-10 16:36:57 +0000 |
|---|---|---|
| committer | Michel Danzer <michel.daenzer@amd.com> | 2013-07-10 16:36:57 +0000 |
| commit | 1f87df365f321acc499196f01145372ba7fa8adf (patch) | |
| tree | 7ca1f6d6642e8510fe955553721fb105039d2fdb /llvm/lib/Target | |
| parent | 8d69617b278448561f1f09a7d5cf151690cfc9b1 (diff) | |
| download | bcm5719-llvm-1f87df365f321acc499196f01145372ba7fa8adf.tar.gz bcm5719-llvm-1f87df365f321acc499196f01145372ba7fa8adf.zip | |
R600/SI: Add pattern for the AMDGPU.barrier.local intrinsic
lit test coverage to follow in the next commit.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 186011
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/R600/SIInstructions.td | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/SIInstructions.td b/llvm/lib/Target/R600/SIInstructions.td index 61755b47a03..30f2a4aa438 100644 --- a/llvm/lib/Target/R600/SIInstructions.td +++ b/llvm/lib/Target/R600/SIInstructions.td @@ -774,8 +774,17 @@ def S_CBRANCH_EXECNZ : SOPP < } // End isBranch = 1 } // End isTerminator = 1 -//def S_BARRIER : SOPP_ <0x0000000a, "S_BARRIER", []>; let hasSideEffects = 1 in { +def S_BARRIER : SOPP <0x0000000a, (ins), "S_BARRIER", + [(int_AMDGPU_barrier_local)] +> { + let SIMM16 = 0; + let isBarrier = 1; + let hasCtrlDep = 1; + let mayLoad = 1; + let mayStore = 1; +} + def S_WAITCNT : SOPP <0x0000000c, (ins i32imm:$simm16), "S_WAITCNT $simm16", [] >; |

