Eric Christopher
58b404398e
One more intrinsic.
...
llvm-svn: 200061
2014-01-25 01:38:30 +00:00
Eric Christopher
439137ea32
Add missing intrinsics, fix a couple of typos in intrinsic names,
...
and remove duplicate declarations.
llvm-svn: 199992
2014-01-24 12:13:47 +00:00
Hans Wennborg
74ca0c4105
Add implementations of __readfs{byte,word,dword,qword} to Intrin.h
...
Differential Revision: http://llvm-reviews.chandlerc.com/D2606
llvm-svn: 199958
2014-01-24 00:52:39 +00:00
Hans Wennborg
2ed8880346
Intrin.h: fix definitions of _Interlocked{In,De}crement16
...
The declarations seem correct, but the definitions were using
chars instead of shorts.
llvm-svn: 199923
2014-01-23 19:15:39 +00:00
Hans Wennborg
854f7d34ec
Add implementations of _cpuid and _xgetbv to Intrin.h
...
The _cpuid() implementation is the same as in lib/Headers/cpuid.h
with the parameter names adjusted to match the interface.
_xgetbv just does what the Intel manual says.
Differential Revision: http://llvm-reviews.chandlerc.com/D2564
llvm-svn: 199439
2014-01-16 23:39:35 +00:00
Reid Kleckner
00d33a5cb1
Add implementations of the MSVC barrier intrinsics
...
Summary:
These are deprecated in VS 2012 according to MSDN. They don't actually
compile down to any code. They prevent the compiler from reordering
memory accesses across the barrier, which is what a memory-clobbering
volatile asm does.
Reviewers: echristo
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1954
llvm-svn: 192860
2013-10-17 01:29:48 +00:00
Warren Hunt
2731e3e4ef
Fixing implementation of bittestandset in Intrin.h.
...
llvm-svn: 191783
2013-10-01 17:12:40 +00:00
Warren Hunt
3f98794718
Changing __X86_64__ to __x86_64__ in Intrin.h.
...
llvm-svn: 191700
2013-09-30 21:08:05 +00:00
Warren Hunt
41a993f6f8
Typo correction: _int64 -> __int64.
...
llvm-svn: 191592
2013-09-28 00:15:41 +00:00
Warren Hunt
d6ffae91d5
Implements some of the more commonly used intrinsics in Intrin.h
...
Differential Revision: http://llvm-reviews.chandlerc.com/D1766
llvm-svn: 191590
2013-09-27 23:57:26 +00:00
Reid Kleckner
f0e232287a
Fix ifdef ordering at the end of Intrin.h from r190965
...
Test that intrin.h at least parses in C++ TUs.
llvm-svn: 190978
2013-09-19 00:19:53 +00:00
Eric Christopher
cc87253f90
Fix closing brace around ifdef.
...
llvm-svn: 190965
2013-09-18 22:40:18 +00:00
Eric Christopher
0db88a7d7e
The intrinsics should all have C linkage.
...
llvm-svn: 190963
2013-09-18 22:24:01 +00:00
Eric Christopher
fb4b433bbb
Typo.
...
llvm-svn: 189710
2013-08-31 00:27:38 +00:00
Eric Christopher
d1428bf635
Add initial clang targeted compatible decls for Intrin.h. Step towards
...
a windows compatible builtin header.
Currently uses x86intrin.h for implementing intel intrinsics in a clang
specific manner.
llvm-svn: 189709
2013-08-31 00:22:48 +00:00