Separate builtins for x84-64 and i386; implement __mulh and __umulh
Summary: 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. Reviewers: thakis, majnemer, hans, rnk Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24598 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283264 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/BuiltinsX86_64.def 25 additions, 0 deletionsinclude/clang/Basic/BuiltinsX86_64.def
- include/clang/Basic/TargetBuiltins.h 8 additions, 4 deletionsinclude/clang/Basic/TargetBuiltins.h
- lib/Basic/Targets.cpp 16 additions, 8 deletionslib/Basic/Targets.cpp
- lib/CodeGen/CGBuiltin.cpp 24 additions, 0 deletionslib/CodeGen/CGBuiltin.cpp
- lib/Headers/intrin.h 3 additions, 6 deletionslib/Headers/intrin.h
- test/CodeGen/ms-intrinsics.c 6 additions, 1 deletiontest/CodeGen/ms-intrinsics.c
- test/Sema/implicit-ms-builtin-decl.c 28 additions, 3 deletionstest/Sema/implicit-ms-builtin-decl.c
Loading
Please register or sign in to comment