[PATCH] D24598: Separate builtins for x84-64 and i386; implement __mulh and __umulh

Albert Gutowski via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 19:33:51 PDT 2016


agutowski created this revision.
agutowski added reviewers: rnk, thakis, majnemer.
agutowski added a subscriber: cfe-commits.

We need x86-64-specific builtins if we want to implement some of the MS intrinsics - winnt.h contains definitions of some functions for i386, but not for x86-64 (for example _InterlockedOr64), which means that we cannot treat them as builtins for both i386 and x86-64, because then we have definitions of builtin functions in winnt.h on i386.

https://reviews.llvm.org/D24598

Files:
  include/clang/Basic/BuiltinsX86_32.def
  include/clang/Basic/BuiltinsX86_64.def
  include/clang/Basic/TargetBuiltins.h
  lib/Basic/Targets.cpp
  lib/CodeGen/CGBuiltin.cpp
  lib/Headers/intrin.h
  test/CodeGen/ms-intrinsics.c
  test/Sema/implicit-ms-builtin-decl.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24598.71470.patch
Type: text/x-patch
Size: 11714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160915/5e098e38/attachment-0001.bin>


More information about the cfe-commits mailing list