#
887c569b |
| 25-Apr-2018 |
Yaxun Liu <Yaxun.Liu@amd.com> |
[HIP] Add hip input kind and codegen for kernel launching
HIP is a language similar to CUDA (https://github.com/ROCm-Developer-Tools/HIP/blob/master/docs/markdown/hip_kernel_language.md ). The langu
[HIP] Add hip input kind and codegen for kernel launching
HIP is a language similar to CUDA (https://github.com/ROCm-Developer-Tools/HIP/blob/master/docs/markdown/hip_kernel_language.md ). The language syntax is very similar, which allows a hip program to be compiled as a CUDA program by Clang. The main difference is the host API. HIP has a set of vendor neutral host API which can be implemented on different platforms. Currently there is open source implementation of HIP runtime on amdgpu target (https://github.com/ROCm-Developer-Tools/HIP).
This patch adds support of input kind and language standard hip.
When hip file is compiled, both LangOpts.CUDA and LangOpts.HIP is turned on. This allows compilation of hip program as CUDA in most cases and only special handling of hip program is needed LangOpts.HIP is checked.
This patch also adds support of kernel launching of HIP program using HIP host API.
When -x hip is not specified, there is no behaviour change for CUDA.
Patch by Greg Rodgers. Revised and lit test added by Yaxun Liu.
Differential Revision: https://reviews.llvm.org/D44984
llvm-svn: 330790
show more ...
|
Revision tags: llvmorg-6.0.1-rc1 |
|
#
c645f61a |
| 12-Apr-2018 |
Anastasia Stulova <anastasia.stulova@arm.com> |
[OpenCL] Added -std/-cl-std=c++
This is std option for OpenCL C++ v1.0.
Differential Revision: https://reviews.llvm.org/D45363
llvm-svn: 329911
|
Revision tags: llvmorg-5.0.2, llvmorg-5.0.2-rc2, llvmorg-5.0.2-rc1, llvmorg-6.0.0, llvmorg-6.0.0-rc3, llvmorg-6.0.0-rc2, llvmorg-6.0.0-rc1 |
|
#
cec95ec1 |
| 15-Jan-2018 |
Erich Keane <erich.keane@intel.com> |
Revert 319303: Add _Float128 as alias to __float128 to enable compilations on Fedora27/glibc2
Differential Revision: https://reviews.llvm.org/D40673
llvm-svn: 322518
|
#
e927ca74 |
| 29-Dec-2017 |
Alexey Bataev <a.bataev@hotmail.com> |
[OPENMP] Initial support for `-fopenmp-simd` option.
Added basic support for `-fopenmp-simd` options.
llvm-svn: 321558
|
#
6c483597 |
| 11-Dec-2017 |
Erich Keane <erich.keane@intel.com> |
Revert 320391: Certain targets are failing, pulling back to diagnose.
llvm-svn: 320398
|
#
bb322555 |
| 11-Dec-2017 |
Erich Keane <erich.keane@intel.com> |
For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available
As reported in llvm bugzilla 32377. Here’s a patch to add preinclude of stdc-predef.h.
The gcc documentation says “O
For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available
As reported in llvm bugzilla 32377. Here’s a patch to add preinclude of stdc-predef.h.
The gcc documentation says “On GNU/Linux, <stdc-predef.h> is pre-included.” See https://gcc.gnu.org/gcc-4.8/porting_to.html;
The preinclude is inhibited with –ffreestanding.
Basically I fixed the failing test cases by adding –ffreestanding which inhibits this behavior.
I fixed all the failing tests, including some in extra/test, there's a separate patch for that which is linked here
Note: this is a recommit after a test failure took down the original (r318669)
Patch By: mibintc Differential Revision: https://reviews.llvm.org/D34158
llvm-svn: 320391
show more ...
|
#
29dc5ded |
| 07-Dec-2017 |
Aaron Ballman <aaron@aaronballman.com> |
Correct line endings that got mixed up in r320089; NFC.
llvm-svn: 320113
|
#
5b6c0f75 |
| 07-Dec-2017 |
Aaron Ballman <aaron@aaronballman.com> |
Add new language mode flags for C17.
This adds -std=c17, -std=gnu17, and -std=iso9899:2017 as language mode flags for C17 and updates the value of __STDC_VERSION__ to the value based on the C17 FDIS
Add new language mode flags for C17.
This adds -std=c17, -std=gnu17, and -std=iso9899:2017 as language mode flags for C17 and updates the value of __STDC_VERSION__ to the value based on the C17 FDIS. Given that this ballot cannot succeed until 2018, it is expected that we (and GCC) will add c18 flags as aliases once the ballot passes.
llvm-svn: 320089
show more ...
|
#
6cdef0ef |
| 07-Dec-2017 |
Alex Lorenz <arphaman@gmail.com> |
[driver] Set the 'simulator' environment for Darwin when compiling for iOS/tvOS/watchOS simulator
rdar://35135215
Differential Revision: https://reviews.llvm.org/D40682
llvm-svn: 320073
|
Revision tags: llvmorg-5.0.1, llvmorg-5.0.1-rc3 |
|
#
1382a32a |
| 05-Dec-2017 |
Ed Schouten <ed@nuxi.nl> |
Add __WINT_MAX__.
This definition is similar to __WCHAR_MAX__, except that it applies to wint_t. It's also documented as being supported by GCC 4.5 and later.
llvm-svn: 319746
|
#
45cf85b4 |
| 04-Dec-2017 |
Erich Keane <erich.keane@intel.com> |
Add _Float128 as alias to __float128 to enable compilations on Fedora27/glibc2-26
Fedora27 is using a new version of glibc that refers to the _Float128 type. This patch adds that name as an alias to
Add _Float128 as alias to __float128 to enable compilations on Fedora27/glibc2-26
Fedora27 is using a new version of glibc that refers to the _Float128 type. This patch adds that name as an alias to float128. I also added some predefined macro values for the digits, mantissa, epilon, etc (FloatMacros). For the test case, I copied an existing float128 test. This functionality needs work long term, but it should be sufficient to tread water for a while. At Intel we have test servers running our LLVM compiler with various open source workloads, the server has been upgraded to Fedora27 so many workloads are failing due to _Float128.
Patch-By: mibintc Differential Revision: https://reviews.llvm.org/D40673
llvm-svn: 319703
show more ...
|
#
c351fba6 |
| 04-Dec-2017 |
Aaron Ballman <aaron@aaronballman.com> |
Now that C++17 is official (https://www.iso.org/standard/68564.html), start changing the C++1z terminology over to C++17. NFC intended, these are all mechanical changes.
llvm-svn: 319688
|
#
d141e480 |
| 04-Dec-2017 |
Sven van Haastregt <sven.vanhaastregt@arm.com> |
[OpenCL] Define __IMAGE_SUPPORT__ macro for SPIR
Add #define __IMAGE_SUPPORT__ 1 for SPIR targets to indicate that SPIR supports images.
Patch by Dmitry Borisenkov.
Differential Revision: https://
[OpenCL] Define __IMAGE_SUPPORT__ macro for SPIR
Add #define __IMAGE_SUPPORT__ 1 for SPIR targets to indicate that SPIR supports images.
Patch by Dmitry Borisenkov.
Differential Revision: https://reviews.llvm.org/D40252
llvm-svn: 319658
show more ...
|
#
c950c651 |
| 29-Nov-2017 |
Martell Malone <martellmalone@gmail.com> |
Toolchain: Normalize dwarf, sjlj and seh eh
This is a re-apply of r319294.
adds -fseh-exceptions and -fdwarf-exceptions flags
clang will check if the user has specified an exception model flag, in
Toolchain: Normalize dwarf, sjlj and seh eh
This is a re-apply of r319294.
adds -fseh-exceptions and -fdwarf-exceptions flags
clang will check if the user has specified an exception model flag, in the absense of specifying the exception model clang will then check the driver default and append the model flag for that target to cc1
-fno-exceptions has a higher priority then specifying the model
move __SEH__ macro definitions out of Targets into InitPreprocessor behind the -fseh-exceptions flag
move __ARM_DWARF_EH__ macrodefinitions out of verious targets and into InitPreprocessor behind the -fdwarf-exceptions flag and arm|thumb check
remove unused USESEHExceptions from the MinGW Driver
fold USESjLjExceptions into a new GetExceptionModel function that gives the toolchain classes more flexibility with eh models
Reviewers: rnk, mstorsjo
Differential Revision: https://reviews.llvm.org/D39673
llvm-svn: 319297
show more ...
|
#
2fa25706 |
| 29-Nov-2017 |
Martell Malone <martellmalone@gmail.com> |
Revert "Toolchain: Normalize dwarf, sjlj and seh eh"
This reverts rL319294. The windows sanitizer does not like seh on x86. Will re apply with None type for x86
llvm-svn: 319295
|
#
390cfcb0 |
| 29-Nov-2017 |
Martell Malone <martellmalone@gmail.com> |
Toolchain: Normalize dwarf, sjlj and seh eh
adds -fseh-exceptions and -fdwarf-exceptions flags
clang will check if the user has specified an exception model flag, in the absense of specifying the e
Toolchain: Normalize dwarf, sjlj and seh eh
adds -fseh-exceptions and -fdwarf-exceptions flags
clang will check if the user has specified an exception model flag, in the absense of specifying the exception model clang will then check the driver default and append the model flag for that target to cc1
clang cc1 assumes dwarf is the default if none is passed and -fno-exceptions has a higher priority then specifying the model
move __SEH__ macro definitions out of Targets into InitPreprocessor behind the -fseh-exceptions flag
move __ARM_DWARF_EH__ macrodefinitions out of verious targets and into InitPreprocessor behind the -fdwarf-exceptions flag and arm|thumb check
remove unused USESEHExceptions from the MinGW Driver
fold USESjLjExceptions into a new GetExceptionModel function that gives the toolchain classes more flexibility with eh models
Reviewers: rnk, mstorsjo
Differential Revision: https://reviews.llvm.org/D39673
llvm-svn: 319294
show more ...
|
Revision tags: llvmorg-5.0.1-rc2 |
|
#
523edb0a |
| 20-Nov-2017 |
Erich Keane <erich.keane@intel.com> |
Revert r318669/318694
Broke some libclang tests, so reverting for now.
llvm-svn: 318698
|
#
5c086c76 |
| 20-Nov-2017 |
Erich Keane <erich.keane@intel.com> |
For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available
As reported in llvm bugzilla 32377. Here’s a patch to add preinclude of stdc-predef.h.
The gcc documentation says “O
For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available
As reported in llvm bugzilla 32377. Here’s a patch to add preinclude of stdc-predef.h.
The gcc documentation says “On GNU/Linux, <stdc-predef.h> is pre-included.” See https://gcc.gnu.org/gcc-4.8/porting_to.html;
The preinclude is inhibited with –ffreestanding.
Basically I fixed the failing test cases by adding –ffreestanding which inhibits this behavior.
I fixed all the failing tests, including some in extra/test, there's a separate patch for that which is linked here
Patch By: mibintc
Differential Revision: https://reviews.llvm.org/D34158
llvm-svn: 318669
show more ...
|
Revision tags: llvmorg-5.0.1-rc1 |
|
#
c05609ca |
| 13-Sep-2017 |
Sjoerd Meijer <sjoerd.meijer@arm.com> |
This adds the _Float16 preprocessor macro definitions.
Differential Revision: https://reviews.llvm.org/D34695
llvm-svn: 313152
|
Revision tags: llvmorg-5.0.0, llvmorg-5.0.0-rc5, llvmorg-5.0.0-rc4, llvmorg-5.0.0-rc3 |
|
#
0c6374e5 |
| 16-Aug-2017 |
Yaxun Liu <Yaxun.Liu@amd.com> |
Fix comments about __OPENCL_MEMORY_SCOPE_* macros
llvm-svn: 310986
|
#
30d652a4 |
| 15-Aug-2017 |
Yaxun Liu <Yaxun.Liu@amd.com> |
[OpenCL] Support variable memory scope in atomic builtins
Differential Revision: https://reviews.llvm.org/D36580
llvm-svn: 310924
|
#
9d07ae77 |
| 11-Aug-2017 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Implement latest feature test macro recommendations, P0096R4.
llvm-svn: 310694
|
Revision tags: llvmorg-5.0.0-rc2 |
|
#
39195062 |
| 04-Aug-2017 |
Yaxun Liu <Yaxun.Liu@amd.com> |
Add OpenCL 2.0 atomic builtin functions as Clang builtin
OpenCL 2.0 atomic builtin functions have a scope argument which is ideally represented as synchronization scope argument in LLVM atomic instr
Add OpenCL 2.0 atomic builtin functions as Clang builtin
OpenCL 2.0 atomic builtin functions have a scope argument which is ideally represented as synchronization scope argument in LLVM atomic instructions.
Clang supports translating Clang atomic builtin functions to LLVM atomic instructions. However it currently does not support synchronization scope of LLVM atomic instructions. Without this, users have to use LLVM assembly code to implement OpenCL atomic builtin functions.
This patch adds OpenCL 2.0 atomic builtin functions as Clang builtin functions, which supports generating LLVM atomic instructions with synchronization scope operand.
Currently only constant memory scope argument is supported. Support of non-constant memory scope argument will be added later.
Differential Revision: https://reviews.llvm.org/D28691
llvm-svn: 310082
show more ...
|
Revision tags: llvmorg-5.0.0-rc1 |
|
#
5f475b98 |
| 16-Jul-2017 |
Faisal Vali <faisalv@yahoo.com> |
[c++2a] Add option -std=c++2a to enable support for potential/transitional C++2a features
- as usual C++2a implies all the C++'s that came before it.
Thank you Aaron for the feedback here: https://
[c++2a] Add option -std=c++2a to enable support for potential/transitional C++2a features
- as usual C++2a implies all the C++'s that came before it.
Thank you Aaron for the feedback here: https://reviews.llvm.org/D35454
llvm-svn: 308118
show more ...
|
#
59d7b77b |
| 29-Jun-2017 |
Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> |
[OpenMP] Add support for auxiliary triple specification
Summary: Device offloading requires the specification of an additional flag containing the triple of the //other// architecture the code is be
[OpenMP] Add support for auxiliary triple specification
Summary: Device offloading requires the specification of an additional flag containing the triple of the //other// architecture the code is being compiled on if such an architecture exists. If compiling for the host, the auxiliary triple flag will contain the triple describing the device and vice versa.
Reviewers: arpith-jacob, sfantao, caomhin, carlo.bertolli, ABataev, Hahnfeld, jlebar, hfinkel, tstellar
Reviewed By: Hahnfeld
Subscribers: rengolin, cfe-commits
Differential Revision: https://reviews.llvm.org/D29339
llvm-svn: 306689
show more ...
|