<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW " title="NEW --- - Regression: No target for triple spir-unknown-unknown" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24153&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=tGTBL5qAqfdgsjvFIMo4WZFQtC37LGXPqCmAW_Pwgsc&s=HF2bJRHjCimz1RfBlTYIL6OnRWioBNsh8do89nm13IE&e=">24153</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression: No target for triple spir-unknown-unknown
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.7
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>moritz.pflanzer14@imperial.ac.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14599" name="attach_14599" title="File from which the PCH should be generated">attachment 14599</a> <a href="attachment.cgi?id=14599&action=edit" title="File from which the PCH should be generated">[details]</a></span>
File from which the PCH should be generated

The target triples spir-unknown-unknown and spir64-unknown-unknown are
currently not recognised by clang.
The following command worked in 3.6.1 and up to some point in 3.7:

$ clang -cc1 -x cl -cl-std=CL1.2 -O0 -g -fno-builtin -emit-pch -triple
spir-unknown-unknown -relocatable-pch -isysroot . clc.h -o ./clc32.pch

$ clang -cc1 -version
LLVM (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=tGTBL5qAqfdgsjvFIMo4WZFQtC37LGXPqCmAW_Pwgsc&s=PANWfKyiVjIB-UFWZZFrABbMskOPDGJsgjpH8kYlKU8&e=">http://llvm.org/</a>):
  LLVM version 3.6.1
  DEBUG build with assertions.
  Built Jul 16 2015 (11:46:26).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: core-avx2

It does currently not work in 3.7 ([1]) and trunk. When it is executed the
following error is emitted:

fatal error: error in backend: No available targets are compatible with this
triple, see -version for the available targets.

$ clang -cc1 -version
LLVM (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=tGTBL5qAqfdgsjvFIMo4WZFQtC37LGXPqCmAW_Pwgsc&s=PANWfKyiVjIB-UFWZZFrABbMskOPDGJsgjpH8kYlKU8&e=">http://llvm.org/</a>):
  LLVM version 3.7.0
  DEBUG build with assertions.
  Built Jul 16 2015 (11:56:40).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: haswell


[1] For LLVM commit 3690da1 and clang commit 979403f it still works. Some
change after these commits must have broken the support for the spir triple.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>