<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Here is my LLVM version:</div>
<div>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">LLVM version 3.9.0svn</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  Optimized build with assertions.</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  Built Apr  5 2016 (15:33:13).</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  Default target: x86_64-unknown-linux-gnu</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  Host CPU: haswell</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
</div>
<div>I am able to ‘configure' and ‘make' libclc with llvm-config as well but I am getting a bunch of warnings like following during the make process by llvm-link:</div>
<div><br>
</div>
<div>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/integer/add_sat.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/integer/sub_sat.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/subnormal_helper_func.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/atomic/atomic_impl.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/integer/add_sat_impl.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/integer/clz_if.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/integer/clz_impl.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">WARNING: Linking two modules of different data layouts: 'nvptx--nvidiacl/lib/integer/sub_sat_impl.ll.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64'</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">WARNING: Linking two modules of different data layouts: 'generic--/lib/subnormal_use_default.bc' is '' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v32:32-n16:32:64’</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">Finally I am able to do ‘make install’ without any errors.</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">I am following steps in <a href="http://stackoverflow.com/questions/8795114/how-to-use-clang-to-compile-opencl-to-ptx-code" style="font-family: Calibri, sans-serif; font-size: 14px;">here</a> to generate
 a .bc file for OpenCL kernels; however, after disassembling the linked bc file I see that only the declarations of OpenCl functions has been added and no definition is there.</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">I suspect that libclc libraries are not compiled completely so that the .bc does not contain any definition from libclc.</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">Here is .ll version of my linked .bc file (which exactly matches the kernel.ll before linking with libclc):</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">; ModuleID = 'kernel.linked.bc'</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000">target datalayout =
</span>"e-p:32:32-i64:64-v16:16-v32:32-n16:32:64"</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000">target triple =
</span>"nvptx--nvidiacl"</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">; Function Attrs: noinline nounwind</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">define void @dataParallel(<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)*
 nocapture readonly %A, <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* nocapture readonly %B,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* nocapture %C) #<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">0</span>
 {</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">entry:</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">call</span> = tail
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">call</span> i32 @get_global_id(i32
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">0</span>) #<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">2</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">mul</span> = shl i32 %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">call</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">2</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %A, i32 %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">mul</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">0</span> = load
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx2 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %B, i32 %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">mul</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span> = load
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx2, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %add3 = fadd <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
float</span> %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">0</span>, %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx5 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %C, i32 %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">mul</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  store <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
float</span> %add3, <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx5, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %add6 = <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
or</span> i32 %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">mul</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx7 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %A, i32 %add6</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">2</span> = load
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx7, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx9 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %B, i32 %add6</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">3</span> = load
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx9, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">sub</span> = fsub
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">2</span>, %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">3</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx11 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %C, i32 %add6</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  store <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
float</span> %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">sub</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx11, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %add12 = <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
or</span> i32 %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">mul</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">2</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx13 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %A, i32 %add12</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span> = load
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx13, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx15 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %B, i32 %add12</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">5</span> = load
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx15, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %mul16 = fmul <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
float</span> %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">5</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx18 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %C, i32 %add12</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  store <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
float</span> %mul16, <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx18, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %add19 = <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
or</span> i32 %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">mul</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">3</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx20 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %A, i32 %add19</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">6</span> = load
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx20, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx22 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %B, i32 %add19</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">7</span> = load
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx22, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">div</span> = fdiv
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">6</span>, %<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">7</span>,
 !fpmath !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">13</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  %arrayidx24 = getelementptr inbounds
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %C, i32 %add19</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  store <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">
float</span> %<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">div</span>,
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924">float</span> addrspace(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span>)* %arrayidx24, align
<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">4</span>, !tbaa !<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">9</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">  ret void</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">}</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">declare i32 @get_global_id(i32) #<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">1</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000">attributes #</span>0<span style="font-variant-ligatures: no-common-ligatures; color: #000000"> = { noinline nounwind
</span>"disable-tail-calls"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"less-precise-fpmad"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"no-frame-pointer-elim"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"true"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"no-frame-pointer-elim-non-leaf"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"no-infs-fp-math"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"no-nans-fp-math"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"stack-protector-buffer-size"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"8"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"unsafe-fp-math"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"use-soft-float"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000"> }</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000">attributes #</span>1<span style="font-variant-ligatures: no-common-ligatures; color: #000000"> = {
</span>"disable-tail-calls"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"less-precise-fpmad"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"no-frame-pointer-elim"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"true"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"no-frame-pointer-elim-non-leaf"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"no-infs-fp-math"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"no-nans-fp-math"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"stack-protector-buffer-size"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"8"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"unsafe-fp-math"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">
</span>"use-soft-float"<span style="font-variant-ligatures: no-common-ligatures; color: #000000">=</span>"false"<span style="font-variant-ligatures: no-common-ligatures; color: #000000"> }</span></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;">attributes #<span style="font-variant-ligatures: no-common-ligatures; color: #c33720">2</span> = { nounwind }</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"></p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
<p style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</p>
</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:mats.o.petersson@googlemail.com">mats.o.petersson@googlemail.com</a>> on behalf of mats petersson <<a href="mailto:mats@planetcatfish.com">mats@planetcatfish.com</a>><br>
<span style="font-weight:bold">Date: </span>Friday, April 8, 2016 at 4:06 AM<br>
<span style="font-weight:bold">To: </span>Liu Xin <<a href="mailto:navy.xliu@gmail.com">navy.xliu@gmail.com</a>><br>
<span style="font-weight:bold">Cc: </span>Azin Heidarshenas <<a href="mailto:heidars2@illinois.edu">heidars2@illinois.edu</a>>, via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [llvm-dev] LIBCLC with LLVM 3.9 Trunk<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>It's not clear what is actually wrong from your original message, I think you need to give some more information as to what you are doing: Example source, what target GPU, compiler error messages or other evidence of "it's wrong" (llvm IR, disassembly,
 etc) ... <br>
<br>
--<br>
</div>
Mats<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 8 April 2016 at 09:55, Liu Xin via llvm-dev <span dir="ltr">
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I built it yesterday. it works. actually, you can only build libclc using llvm 3.9.
<div><br>
<div>yes, the interface of writeBitcodeToFile changed. make sure you delete old '*.o' files before. </div>
<span class="">
<div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px"><br>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">"so the generated GPU kernel code does not have the implementation of OpenCl API."</div>
</div>
</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">~~what's that mean? </div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5">On Fri, Apr 8, 2016 at 3:19 PM, Heidarshenas, Azin via llvm-dev <span dir="ltr">
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hello there,</div>
<div><br>
</div>
<div>Has anyone here used the recent LIBCLC (current git version) with the recent git version LLVM (3.9)?</div>
<div>It seems to me that the libraries are not compiled properly and so the generated GPU kernel code does not have the implementation of OpenCl API.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Azin</div>
<div>
<div></div>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=BQMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=p2pwXNeELP9EUTLxgrxKT2AuaJtLgOAJnwrQ2fUq8LU&m=_pWa85Q85UU31h6Ps2XgXez8ahUNhkraZw7LemHqTfE&s=WJiO7CteVbNhilii4FFLF6KpKbtkaB6dF06vmS5GIwk&e=" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=BQMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=p2pwXNeELP9EUTLxgrxKT2AuaJtLgOAJnwrQ2fUq8LU&m=_pWa85Q85UU31h6Ps2XgXez8ahUNhkraZw7LemHqTfE&s=WJiO7CteVbNhilii4FFLF6KpKbtkaB6dF06vmS5GIwk&e=" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>