blob: f1cbc9aed8657e874a74d84f65346b385f818e8d [file] [log] [blame]
Matt Arsenault1ab0d9c2016-07-18 18:42:17 +00001declare void @llvm.r600.group.barrier() #0
Tom Stellard3a81b5d2013-07-08 17:26:39 +00002
Jan Vesely92357a22018-04-05 14:47:57 +00003target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
Jan Vesely66b32ad2017-10-20 21:00:31 +00004
Jan Veselye337b302017-09-04 15:52:05 +00005define void @barrier(i32 %flags) #1 {
6entry:
7 ; We should call mem_fence here, but that is not implemented for r600 yet
8 tail call void @llvm.r600.group.barrier()
Tom Stellard3a81b5d2013-07-08 17:26:39 +00009 ret void
10}
Matt Arsenaulta48e15c2016-02-13 01:01:59 +000011
12attributes #0 = { nounwind convergent }
Jan Veselye337b302017-09-04 15:52:05 +000013attributes #1 = { nounwind convergent alwaysinline }