[clang] [CUDA][Win32] Add `fma(long double,..)` to math forward declares. (PR #73756)

2024-01-09 Thread Evgeny Mankov via cfe-commits
emankov wrote: Hello, @fodinabor and @blinkfrog > the #ifdef _MSC_VER check may not be effective because _MSC_VER is specific > to the MSVC compiler and is not defined when using Clang, even on Windows Does it mean that this fix doesn't solve https://github.com/AdaptiveCpp/AdaptiveCpp/issues

[clang] [CUDA][Win32] Add `fma(long double,..)` to math forward declares. (PR #73756)

2023-12-06 Thread Evgeny Mankov via cfe-commits
@@ -70,6 +70,9 @@ __DEVICE__ double floor(double); __DEVICE__ float floor(float); __DEVICE__ double fma(double, double, double); __DEVICE__ float fma(float, float, float); +#ifdef _MSC_VER +__DEVICE__ long double fma(long double, long double, long double); eman

[clang] [CUDA][Win32] Add `fma(long double,..)` to math forward declares. (PR #73756)

2023-12-05 Thread Evgeny Mankov via cfe-commits
@@ -70,6 +70,9 @@ __DEVICE__ double floor(double); __DEVICE__ float floor(float); __DEVICE__ double fma(double, double, double); __DEVICE__ float fma(float, float, float); +#ifdef _MSC_VER +__DEVICE__ long double fma(long double, long double, long double); eman

[clang] [CUDA][Win32] Add `fma(long double,..)` to math forward declares. (PR #73756)

2023-12-04 Thread Evgeny Mankov via cfe-commits
@@ -70,6 +70,9 @@ __DEVICE__ double floor(double); __DEVICE__ float floor(float); __DEVICE__ double fma(double, double, double); __DEVICE__ float fma(float, float, float); +#ifdef _MSC_VER +__DEVICE__ long double fma(long double, long double, long double); eman

[clang] c231471 - [clang][CUDA][Windows] Fix compilation error on Windows with `uint32_t __nvvm_get_smem_pointer`

2022-04-20 Thread Evgeny Mankov via cfe-commits
Author: Evgeny Mankov Date: 2022-04-21T00:41:20+03:00 New Revision: c23147106f7efc4b5e29c47a08951116b4d994ac URL: https://github.com/llvm/llvm-project/commit/c23147106f7efc4b5e29c47a08951116b4d994ac DIFF: https://github.com/llvm/llvm-project/commit/c23147106f7efc4b5e29c47a08951116b4d994ac.diff

r370123 - [preprocessor] Add an opportunity to retain excluded conditional blocks

2019-08-27 Thread Evgeny Mankov via cfe-commits
Author: emankov Date: Tue Aug 27 15:15:32 2019 New Revision: 370123 URL: http://llvm.org/viewvc/llvm-project?rev=370123&view=rev Log: [preprocessor] Add an opportunity to retain excluded conditional blocks It is handy for clang tooling, for instance, in source to source transformation. Reviewers

r358654 - [CUDA][Windows] Restrict long double device functions declarations to Windows

2019-04-18 Thread Evgeny Mankov via cfe-commits
Author: emankov Date: Thu Apr 18 03:08:55 2019 New Revision: 358654 URL: http://llvm.org/viewvc/llvm-project?rev=358654&view=rev Log: [CUDA][Windows] Restrict long double device functions declarations to Windows As agreed in D60220, make long double declarations unobservable on non-windows platf

r357779 - [CUDA][Windows] Last fix for the clang Bug 38811 "Clang fails to compile with CUDA-9.x on Windows" (https://bugs.llvm.org/show_bug.cgi?id=38811).

2019-04-05 Thread Evgeny Mankov via cfe-commits
Author: emankov Date: Fri Apr 5 09:51:10 2019 New Revision: 357779 URL: http://llvm.org/viewvc/llvm-project?rev=357779&view=rev Log: [CUDA][Windows] Last fix for the clang Bug 38811 "Clang fails to compile with CUDA-9.x on Windows" (https://bugs.llvm.org/show_bug.cgi?id=38811). [IMPORTANT] With

r356291 - [CUDA][Windows] Partial fix for bug 38811 (Step 2 of 3)

2019-03-15 Thread Evgeny Mankov via cfe-commits
Author: emankov Date: Fri Mar 15 12:04:46 2019 New Revision: 356291 URL: http://llvm.org/viewvc/llvm-project?rev=356291&view=rev Log: [CUDA][Windows] Partial fix for bug 38811 (Step 2 of 3) Partial fix for the clang Bug 38811 "Clang fails to compile with CUDA-9.x on Windows". [Synopsis] __sptr

r356255 - [CUDA][Windows] Partial fix for bug #38811 (Step 1 of 3)

2019-03-15 Thread Evgeny Mankov via cfe-commits
Author: emankov Date: Fri Mar 15 05:05:36 2019 New Revision: 356255 URL: http://llvm.org/viewvc/llvm-project?rev=356255&view=rev Log: [CUDA][Windows] Partial fix for bug #38811 (Step 1 of 3) Partial fix for the clang Bug https://bugs.llvm.org/show_bug.cgi?id=38811 "Clang fails to compile with CU