<div dir="ltr">We need to come up with a solution that allows syntax-only tools that don't link in any LLVM backends to semantically analyze files with MS inline asm.<div><br></div><div>For a semantic tool, encountering opaque inline asm is probably only worthy of a warning, since skipping inline asm semantic analysis should only lead to a few false positives. In this case, we're in a system header and they will probably be suppressed. For a tool that generates IR, unparseable inline asm should definitely be an error.<div><br></div><div>I'm not exactly sure how to rig up the severity level modification, though.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 18, 2016 at 5:36 PM, Daniel Dilts via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-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"><div>I have a custom tool that is built using clang 3.8.0.  When I #include <atomic> the tool fails and gives this error message:</div><div><br></div><div>1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\atomic:19:<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(98,<wbr>2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(117,<wbr>2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(140,<wbr>2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(163,<wbr>2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(186,<wbr>2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>  5 errors generated.</div><div><br></div><div><br></div><div><br></div><div><br></div><div>When I run clang-cl against the same file it compiles without a complaint.  What would I need to do to get this to work?</div></div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>