[libclc] r312493 - amdgcn,waitcnt: Add datalayout info

Jan Vesely via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 4 08:52:07 PDT 2017


Author: jvesely
Date: Mon Sep  4 08:52:07 2017
New Revision: 312493

URL: http://llvm.org/viewvc/llvm-project?rev=312493&view=rev
Log:
amdgcn,waitcnt: Add datalayout info

This file is only compiled for GCN which all share the same layout

Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Reviewed-by: Aaron Watry <awatry at gmail.com>

Modified:
    libclc/trunk/amdgcn/lib/mem_fence/waitcnt.ll

Modified: libclc/trunk/amdgcn/lib/mem_fence/waitcnt.ll
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/amdgcn/lib/mem_fence/waitcnt.ll?rev=312493&r1=312492&r2=312493&view=diff
==============================================================================
--- libclc/trunk/amdgcn/lib/mem_fence/waitcnt.ll (original)
+++ libclc/trunk/amdgcn/lib/mem_fence/waitcnt.ll Mon Sep  4 08:52:07 2017
@@ -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:




More information about the cfe-commits mailing list