Albert Gutowski
727ab8a803
Add some MS aliases for existing intrinsics
...
Reviewers: thakis, compnerd, majnemer, rsmith, rnk
Subscribers: alexshap, cfe-commits
Differential Revision: https://reviews.llvm.org/D24330
llvm-svn: 281540
2016-09-14 21:19:43 +00:00
Albert Gutowski
9918cb6573
Reverse commit 281375 (breaks building Chromium)
...
llvm-svn: 281399
2016-09-13 21:24:51 +00:00
Albert Gutowski
ae3fb3113f
Add some MS aliases for existing intrinsics
...
Reviewers: thakis, compnerd, majnemer, rsmith, rnk
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D24330
llvm-svn: 281375
2016-09-13 19:26:42 +00:00
Michael Zuckerman
e54093fcc0
Adding front-end support to several intrinsics (bit scanning, conversion and state reading intrinsics)
...
Adding LLVM front-end support to two intrinsics dealing with bit scan: _bit_scan_forward and _bit_scan_reverse.
Their functionality is as described in Intel intrinsics guide:
https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_bit_scan_forward&expand=371,370
https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_bit_scan_reverse&expand=371,370
Furthermore, adding clang front-end support to these conversion intrinsics: _mm256_cvtsd_f64, _mm256_cvtsi256_si32 and _mm256_cvtss_f32.
Finally, adding tests to all of the above, as well as to the state reading intrinsics _rdpmc and _rdtsc.
Their functionality is also specified in the Intel intrinsics guide.
Commit on behalf of Omer Paparo Bivas
llvm-svn: 271387
2016-06-01 12:21:00 +00:00
David Majnemer
30f9bfd574
Reimplement __readeflags and __writeeflags on top of intrinsics
...
Lean on LLVM to provide this functionality now that it provides the
necessary intrinsics.
llvm-svn: 256686
2016-01-01 06:50:08 +00:00
Andrea Di Biagio
eb606a3c27
[x86] Add Clang support for intrinsic __rdpmc.
...
This patch adds intrinsic __rdpmc to header file 'ia32intrin.h'.
Intrinsic __rdmpc can be used to read performance monitoring counters. It is
implemented as a direct call to __builtin_ia32_rdpmc.
It takes as input a value representing the index of the performance counter to
read. The value of the performance counter is then returned as a unsigned
64-bit quantity.
llvm-svn: 212053
2014-06-30 18:23:58 +00:00
Andrea Di Biagio
7ceec07cf6
[X86] Add Clang support for intrinsics __rdtsc and __rdtscp.
...
This patch:
1. Adds a definition for two new GCCBuiltins in BuiltinsX86.def:
__builtin_ia32_rdtsc;
__builtin_ia32_rdtscp;
2. Replaces the already existing definition of intrinsic __rdtsc in
ia32intrin.h with a simple call to the new GCC builtin __builtin_ia32_rdtsc.
3. Adds a definition for the new intrinsic __rdtscp in ia32intrin.h
llvm-svn: 207132
2014-04-24 18:26:35 +00:00
Alexey Volkov
ae43aae96a
Added _rdtsc intrinsics by Robert Khasanov
...
Differential Revision: http://llvm-reviews.chandlerc.com/D3212
llvm-svn: 205172
2014-03-31 08:08:46 +00:00
Alexey Bataev
af02c1c003
Fix for r202778 - Implement __readeflags and __writeeflags intrinsics (renamed res to __res)
...
llvm-svn: 202784
2014-03-04 03:42:58 +00:00
Alexey Bataev
7cab007902
Implement __readeflags and __writeeflags intrinsics
...
llvm-svn: 202778
2014-03-04 03:03:03 +00:00