<div dir="ltr">OK.  IMO we should do what GCC does here.  Can you create an ia32intrin.h header and include it from x86intrin.h?  The existing inline asm implementation is fine.  Our Intrin.h header should pick it up from x86intrin.h automatically, and things should Just Work.<div>
<br></div><div>Sorry for the delay.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 5:20 AM, Alexey Volkov <span dir="ltr"><<a href="mailto:avolkov.intel@gmail.com" target="_blank">avolkov.intel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  These intrinsics in GCC are in ia32intrin.h header.<br>
  There are no such file in clang headers.<br>
  Looking through functions in GCC's ia32intrin.h I found similar ones in Clang's Intrin.h file and other headers included into x86intrin.h.<br>
  So we could use some file included into x86intrin.h or create a new header and include it into x86intrin.h.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D2468" target="_blank">http://llvm-reviews.chandlerc.com/D2468</a><br>
</blockquote></div><br></div>