From 537dc7597b3469bddb5f5f8b35ccc0bc1842baf2 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Fri, 27 Jan 2017 08:42:26 -0600 Subject: [PATCH] fixed threadfence ir Change-Id: Ia3afb54bdb50864e678d849608d72a3c321edba1 --- hipamd/src/hip_ir.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hipamd/src/hip_ir.ll b/hipamd/src/hip_ir.ll index c68e9879f2..5a14266086 100644 --- a/hipamd/src/hip_ir.ll +++ b/hipamd/src/hip_ir.ll @@ -2,12 +2,12 @@ target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64: target triple = "amdgcn--amdhsa" -define linkonce_odr spir_func void @__threadfence() #1 { +define void @__threadfence() #1 { fence syncscope(2) seq_cst ret void } -define linkonce_odr spir_func void @__threadfence_block() #1 { +define void @__threadfence_block() #1 { fence syncscope(3) seq_cst ret void }