<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 1/20/2015 4:16 PM, Alexander
      Kornienko wrote:<br>
    </div>
    <blockquote class=" cite"
id="mid_CAOweq9_x8sAu4g1fHnAdbAyW4AZzqFNv05P2vw7Z_srnP0Vh9w_mail_gmail_com"
cite="mid:CAOweq9+x8sAu4g1fHnAdbAyW4AZzqFNv05P2vw7Z-srnP0Vh9w@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Tue, Jan 20, 2015 at 11:33 AM,
            Alexander Kornienko <span dir="ltr"><<a
                moz-do-not-send="true" href="mailto:alexfh@google.com"
                target="_blank">alexfh@google.com</a>></span> wrote:<br>
            <blockquote id="Cite_1233275" class="gmail_quote cite"
              style="margin:0 0 0 .8ex;border-left:1px #ccc
              solid;padding-left:1ex">
              <div dir="ltr"><br>
                <div class="gmail_extra">On Tue, Jan 20, 2015 at 7:44
                  AM, Sameer Sahasrabuddhe <span dir="ltr"><<a
                      moz-do-not-send="true"
                      href="mailto:sameer.sahasrabuddhe@amd.com"
                      target="_blank">sameer.sahasrabuddhe@amd.com</a>></span>
                  wrote:<br>
                  <div class="gmail_quote">
                    <div>
                      <div class="h5">
                        <blockquote id="Cite_7736214" class="gmail_quote
                          cite" style="margin:0 0 0 .8ex;border-left:1px
                          #ccc solid;padding-left:1ex"><br>
                          Added: cfe/trunk/test/CodeGenOpenCL/<a
                            moz-do-not-send="true"
                            href="http://spir-calling-conv.cl"
                            target="_blank">spir-calling-conv.cl</a><br>
                          URL: <a moz-do-not-send="true"
href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenOpenCL/spir-calling-conv.cl?rev=226548&view=auto"
                            target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenOpenCL/spir-calling-conv.cl?rev=226548&view=auto</a><br>
==============================================================================<br>
                          --- cfe/trunk/test/CodeGenOpenCL/<a
                            moz-do-not-send="true"
                            href="http://spir-calling-conv.cl"
                            target="_blank">spir-calling-conv.cl</a>
                          (added)<br>
                          +++ cfe/trunk/test/CodeGenOpenCL/<a
                            moz-do-not-send="true"
                            href="http://spir-calling-conv.cl"
                            target="_blank">spir-calling-conv.cl</a> Tue
                          Jan 20 00:44:32 2015<br>
                          @@ -0,0 +1,18 @@<br>
                          +// RUN: %clang_cc1 %s -triple
                          "spir-unknown-unknown" -emit-llvm -o - |
                          FileCheck %s<br>
                          +<br>
                          +int get_dummy_id(int D);<br>
                          +<br>
                          +kernel void bar(global int *A);<br>
                          +<br>
                          +kernel void foo(global int *A)<br>
                          +// CHECK: define spir_kernel void @foo(i32
                          addrspace(1)* %A)<br>
                          +{<br>
                          +  int id = get_dummy_id(0);<br>
                          +  // CHECK: %call = tail call spir_func i32
                          @get_dummy_id(i32 0)<br>
                        </blockquote>
                        <div><br>
                        </div>
                      </div>
                    </div>
                    <div>This <a moz-do-not-send="true"
href="http://lab.llvm.org:8080/green/job/clang-stage2-configure-Rlto_check/1183/"
                        target="_blank">test fails</a>. Please fix or
                      revert.</div>
                  </div>
                </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>Clarification: this test fails only in some
              configurations, thus it doesn't look like a trivial typo
              in the test which I could fix myself.</div>
            <div><br>
            </div>
            <div>This is blocking us, so I'm going to revert the
              revision.</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Okay, go ahead, then. Looking into it.<br>
    <br>
    Sameer.<br>
    <br>
    <blockquote class=" cite"
id="mid_CAOweq9_x8sAu4g1fHnAdbAyW4AZzqFNv05P2vw7Z_srnP0Vh9w_mail_gmail_com"
cite="mid:CAOweq9+x8sAu4g1fHnAdbAyW4AZzqFNv05P2vw7Z-srnP0Vh9w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div><br>
            </div>
            <div> </div>
            <blockquote id="Cite_6367106" class="gmail_quote cite"
              style="margin:0 0 0 .8ex;border-left:1px #ccc
              solid;padding-left:1ex">
              <div dir="ltr">
                <div class="gmail_extra">
                  <div class="gmail_quote">
                    <div><br>
                    </div>
                    <div>Thanks!</div>
                    <span class="">
                      <div> </div>
                      <blockquote id="Cite_8821057" class="gmail_quote
                        cite" style="margin:0 0 0 .8ex;border-left:1px
                        #ccc solid;padding-left:1ex">
                        +  A[id] = id;<br>
                        +  bar(A);<br>
                        +  // CHECK: tail call spir_kernel void @bar(i32
                        addrspace(1)* %A)<br>
                        +}<br>
                        +<br>
                        +// CHECK: declare spir_func i32
                        @get_dummy_id(i32)<br>
                        +// CHECK: declare spir_kernel void @bar(i32
                        addrspace(1)*)<br>
                        <br>
                        Modified: cfe/trunk/tools/libclang/CXType.cpp<br>
                        URL: <a moz-do-not-send="true"
href="http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXType.cpp?rev=226548&r1=226547&r2=226548&view=diff"
                          target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXType.cpp?rev=226548&r1=226547&r2=226548&view=diff</a><br>
==============================================================================<br>
                        --- cfe/trunk/tools/libclang/CXType.cpp
                        (original)<br>
                        +++ cfe/trunk/tools/libclang/CXType.cpp Tue Jan
                        20 00:44:32 2015<br>
                        @@ -527,6 +527,9 @@ CXCallingConv
                        clang_getFunctionTypeCalli<br>
                               TCALLINGCONV(AAPCS_VFP);<br>
                               TCALLINGCONV(PnaclCall);<br>
                               TCALLINGCONV(IntelOclBicc);<br>
                        +    case CC_SpirFunction: return
                        CXCallingConv_Unexposed;<br>
                        +    case CC_SpirKernel: return
                        CXCallingConv_Unexposed;<br>
                        +      break;<br>
                             }<br>
                         #undef TCALLINGCONV<br>
                           }<br>
                        <br>
                        <br>
                        _______________________________________________<br>
                        cfe-commits mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:cfe-commits@cs.uiuc.edu"
                          target="_blank">cfe-commits@cs.uiuc.edu</a><br>
                        <a moz-do-not-send="true"
                          href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits"
                          target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
                      </blockquote>
                    </span></div>
                  <br>
                </div>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
  </body>
</html>