[Libclc-dev] [PATCH 1/2] amdgcn,waitcnt: Add datalayout info
Jan Vesely via Libclc-dev
libclc-dev at lists.llvm.org
Tue Aug 15 15:23:41 PDT 2017
This file is only compiled for GCN which all share the same layout
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
amdgcn/lib/mem_fence/waitcnt.ll | 2 ++
1 file changed, 2 insertions(+)
diff --git a/amdgcn/lib/mem_fence/waitcnt.ll b/amdgcn/lib/mem_fence/waitcnt.ll
index 8be7f18..ccf016a 100644
--- a/amdgcn/lib/mem_fence/waitcnt.ll
+++ b/amdgcn/lib/mem_fence/waitcnt.ll
@@ -1,5 +1,7 @@
declare void @llvm.amdgcn.s.waitcnt(i32) #0
+target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5: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"
+
; Export waitcnt intrinsic for clang < 5
define void @__clc_amdgcn_s_waitcnt(i32 %flags) #1 {
entry:
--
2.13.5
More information about the Libclc-dev
mailing list