From 812cf130b64de3a2cbf18cecc8b4995bc6459393 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Mon, 12 Dec 2016 10:16:58 -0600 Subject: [PATCH] Changed threadfences to match target parsing by hcc Change-Id: I28fcabbaacd13495b707f263fd09afaead0665fa --- 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 d0e2a879a3..21123dd7c0 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 void @__threadfence() #1 { +define linkonce_odr spir_func void @__threadfence() #1 { fence syncscope(2) seq_cst ret void } -define void @__threadfence_block() #1 { +define linkonce_odr spir_func void @__threadfence_block() #1 { fence syncscope(3) seq_cst ret void }