Re: r249556 - [VFS] Port driver tool chains to VFS.

2015-10-07 Thread Jan Vesely via cfe-commits
This change breaks cmake build: undefined reference to `clang::DiagnosticIDs::DiagnosticIDs()' /home/jvesely/llvm/tools/clang/unittests/Driver/ToolChainTest.cpp:33: undefined reference to `clang::DiagnosticsEngine::DiagnosticsEngine(llvm::IntrusiveRefCntPtr const&, clang::DiagnosticOptions*,

Re: r248904 - clang-format: Use Rewriter again to write the output files.

2015-09-30 Thread Jan Vesely via cfe-commits
Hi, I think this change breaks cmake build. Please consider the attached fix (I can't push atm). thank you, Jan On Wed, Sep 30, 2015 at 8:59 AM, Daniel Jasper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: djasper > Date: Wed Sep 30 08:59:29 2015 > New Revision: 248904 > > URL:

Re: r271413 - Fixup list of available extensions

2016-06-03 Thread Jan Vesely via cfe-commits
OpenCL. :) > > Thanks, > Anastasia >   > -Original Message- > From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On > Behalf Of Jan Vesely via cfe-commits > Sent: 01 June 2016 19:05 > To: cfe-commits@lists.llvm.org > Subject: r271413 - Fixup list of availabl

Re: [PATCH] D20389: NVPTX: Add supported CL features

2016-06-09 Thread Jan Vesely via cfe-commits
jvesely marked 2 inline comments as done. jvesely added a comment. Repository: rL LLVM http://reviews.llvm.org/D20389 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20389: NVPTX: Add supported CL features

2016-06-09 Thread Jan Vesely via cfe-commits
jvesely updated this revision to Diff 60226. jvesely added a comment. Test all known extensions against expected nvptx outcome (add negative tests) Repository: rL LLVM http://reviews.llvm.org/D20389 Files: lib/Basic/Targets.cpp test/Misc/nvptx.languageOptsOpenCL.cl Index:

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-06-09 Thread Jan Vesely via cfe-commits
jvesely marked an inline comment as done. jvesely added a comment. Repository: rL LLVM http://reviews.llvm.org/D20388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-06-09 Thread Jan Vesely via cfe-commits
jvesely updated this revision to Diff 60259. jvesely added a comment. tests all extensions against expected outcome (add negative tests) enable cl_khr_icd (works ok with mesa) Repository: rL LLVM http://reviews.llvm.org/D20388 Files: lib/Basic/Targets.cpp

Re: [PATCH] D20389: NVPTX: Add supported CL features

2016-06-09 Thread Jan Vesely via cfe-commits
jvesely updated this revision to Diff 60257. jvesely added a comment. add back require registered target Repository: rL LLVM http://reviews.llvm.org/D20389 Files: lib/Basic/Targets.cpp test/Misc/nvptx.languageOptsOpenCL.cl Index: test/Misc/nvptx.languageOptsOpenCL.cl

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-05-31 Thread Jan Vesely via cfe-commits
jvesely added inline comments. Comment at: lib/Basic/Targets.cpp:2024-2025 @@ -2023,2 +2023,4 @@ Builder.defineMacro("__HAS_LDEXPF__"); +if (hasFP64) + Builder.defineMacro("__HAS_FP64__"); } arsenm wrote: > I don't think we need this. I want

Re: [PATCH] D20447: [OpenCL] Fixup extension list

2016-05-27 Thread Jan Vesely via cfe-commits
jvesely updated this revision to Diff 58806. jvesely added a comment. add detection of extensions in early CL versions to test. Repository: rL LLVM http://reviews.llvm.org/D20447 Files: include/clang/Basic/OpenCLExtensions.def test/SemaOpenCL/extension-version.cl Index:

Re: [PATCH] D20447: [OpenCL] Fixup extension list

2016-05-27 Thread Jan Vesely via cfe-commits
jvesely marked 7 inline comments as done. Comment at: test/SemaOpenCL/extension-version.cl:12 @@ +11,3 @@ +#ifndef cl_clang_storage_class_specifiers +#error "Missing cl_clang_storage_class_specifiers define" +#endif arsenm wrote: > When the AMD compiler added

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-05-27 Thread Jan Vesely via cfe-commits
jvesely updated the summary for this revision. jvesely added a subscriber: cfe-commits. jvesely updated this revision to Diff 58850. jvesely marked an inline comment as done. jvesely added a comment. report only exported extensions. int64 atomics, fp16, and 3d image writes are actually not

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-05-27 Thread Jan Vesely via cfe-commits
jvesely marked an inline comment as done. jvesely added a comment. Repository: rL LLVM http://reviews.llvm.org/D20388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20447: [OpenCL] Fixup extension list

2016-06-01 Thread Jan Vesely via cfe-commits
jvesely marked 2 inline comments as done. Comment at: test/SemaOpenCL/extension-version.cl:73 @@ +72,3 @@ + +#endif + Anastasia wrote: > Could you put a comment to make it more readable, something like > > #endif // (__OPENCL_C_VERSION__ < 110) These large

Re: [PATCH] D20447: [OpenCL] Fixup extension list

2016-06-01 Thread Jan Vesely via cfe-commits
jvesely updated this revision to Diff 59240. jvesely added a comment. Fix typo: COre -> Core Repository: rL LLVM http://reviews.llvm.org/D20447 Files: include/clang/Basic/OpenCLExtensions.def test/SemaOpenCL/extension-version.cl Index: test/SemaOpenCL/extension-version.cl

r271414 - Disable warning about core features by default

2016-06-01 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Jun 1 13:04:53 2016 New Revision: 271414 URL: http://llvm.org/viewvc/llvm-project?rev=271414=rev Log: Disable warning about core features by default Reviewers: Anastasia, yaxunl Differential Revision: http://reviews.llvm.org/D20744 Modified:

r271413 - Fixup list of available extensions

2016-06-01 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Jun 1 13:04:50 2016 New Revision: 271413 URL: http://llvm.org/viewvc/llvm-project?rev=271413=rev Log: Fixup list of available extensions Reviewers: Anastasia Differential Revision: http://reviews.llvm.org/D20447 Added:

Re: [PATCH] D20447: [OpenCL] Fixup extension list

2016-06-01 Thread Jan Vesely via cfe-commits
This revision was automatically updated to reflect the committed changes. jvesely marked 5 inline comments as done. Closed by commit rL271413: Fixup list of available extensions (authored by jvesely). Changed prior to commit: http://reviews.llvm.org/D20447?vs=59240=59254#toc Repository: rL

Re: [PATCH] D20744: [OpenCL] Disable warning about core features by default

2016-06-01 Thread Jan Vesely via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271414: Disable warning about core features by default (authored by jvesely). Changed prior to commit: http://reviews.llvm.org/D20744?vs=59079=59255#toc Repository: rL LLVM

Re: [PATCH] D20389: NVPTX: Add supported CL features

2016-06-01 Thread Jan Vesely via cfe-commits
jvesely added inline comments. Comment at: test/Misc/nvptx.languageOptsOpenCL.cl:1 @@ +1,2 @@ +// REQUIRES: nvptx-registered-target +// RUN: %clang_cc1 -x cl -cl-std=CL %s -verify -triple nvptx-unknown-unknown Anastasia wrote: > Should we check for errors on

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-05-31 Thread Jan Vesely via cfe-commits
jvesely updated the summary for this revision. jvesely updated this revision to Diff 59080. jvesely added a comment. add has_fp64 macro Repository: rL LLVM http://reviews.llvm.org/D20388 Files: lib/Basic/Targets.cpp test/Misc/amdgcn.languageOptsOpenCL.cl

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-05-31 Thread Jan Vesely via cfe-commits
jvesely marked 2 inline comments as done. jvesely added a comment. Repository: rL LLVM http://reviews.llvm.org/D20388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20389: NVPTX: Add supported CL features

2016-05-27 Thread Jan Vesely via cfe-commits
jvesely updated the summary for this revision. jvesely added a subscriber: cfe-commits. jvesely updated this revision to Diff 58849. jvesely added a comment. Report only clinfo exported extensions. Repository: rL LLVM http://reviews.llvm.org/D20389 Files: lib/Basic/Targets.cpp

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-05-29 Thread Jan Vesely via cfe-commits
jvesely added inline comments. Comment at: test/Misc/r600.languageOptsOpenCL.cl:4 @@ +3,3 @@ +// RUN: %clang_cc1 -x cl -cl-std=CL %s -verify -triple r600-unknown-unknown -target-cpu cypress +// RUN: %clang_cc1 -x cl -cl-std=CL %s -verify -triple r600-unknown-unknown -target-cpu

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-06-16 Thread Jan Vesely via cfe-commits
jvesely added a comment. ping Repository: rL LLVM http://reviews.llvm.org/D20388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20389: NVPTX: Add supported CL features

2016-06-16 Thread Jan Vesely via cfe-commits
jvesely added a comment. ping @jholewinski, is the exported list of features OK with you? @Anastasia, are the tests OK now? Repository: rL LLVM http://reviews.llvm.org/D20389 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20389: NVPTX: Add supported CL features

2016-06-17 Thread Jan Vesely via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL273031: NVPTX: Add supported CL features (authored by jvesely). Changed prior to commit: http://reviews.llvm.org/D20389?vs=60257=61119#toc Repository: rL LLVM http://reviews.llvm.org/D20389 Files:

r273031 - NVPTX: Add supported CL features

2016-06-17 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Jun 17 14:02:14 2016 New Revision: 273031 URL: http://llvm.org/viewvc/llvm-project?rev=273031=rev Log: NVPTX: Add supported CL features Fixes libclc compilation broken by r269670 Reviewers: jholewinsky Differential Revision: http://reviews.llvm.org/D20389 Added:

Re: [PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.

2016-06-23 Thread Jan Vesely via cfe-commits
jvesely added a comment. In http://reviews.llvm.org/D19932#465807, @yaxunl wrote: > > this is not true. as I pointed out earlier, take a look at libclc headers. > > a lot functions are defined for multiple types while maintaining type > > safety. > > > there is no problem having TYPE *

Re: [PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.

2016-06-23 Thread Jan Vesely via cfe-commits
jvesely added a comment. In http://reviews.llvm.org/D19932#465763, @cfe-commits wrote: > The returned pointer should point to the same pointee type as the argument. > Header file cannot guarantee that. > > Sam how come? is there a possibility to have two different types using the same name?

Re: [PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.

2016-06-23 Thread Jan Vesely via cfe-commits
jvesely added a comment. In http://reviews.llvm.org/D19932#465784, @yaxunl wrote: > In http://reviews.llvm.org/D19932#465781, @jvesely wrote: > > > In http://reviews.llvm.org/D19932#465763, @cfe-commits wrote: > > > > > The returned pointer should point to the same pointee type as the > > >

[libclc] r273044 - configure: Remove device specific defines

2016-06-17 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Jun 17 15:30:50 2016 New Revision: 273044 URL: http://llvm.org/viewvc/llvm-project?rev=273044=rev Log: configure: Remove device specific defines Signed-off-by: Jan Vesely Reviewed-by: Tom Stellard Modified:

[libclc] r273043 - nvptx: Drop feature defines.

2016-06-17 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Jun 17 15:30:49 2016 New Revision: 273043 URL: http://llvm.org/viewvc/llvm-project?rev=273043=rev Log: nvptx: Drop feature defines. This is now handled by clang Signed-off-by: Jan Vesely Reviewed-by: Tom Stellard Modified:

[libclc] r273042 - 64 bit integers are legal in full profile without an extension

2016-06-17 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Jun 17 15:30:41 2016 New Revision: 273042 URL: http://llvm.org/viewvc/llvm-project?rev=273042=rev Log: 64 bit integers are legal in full profile without an extension Signed-off-by: Jan Vesely Reviewed-by: Tom Stellard

Re: [PATCH] D20388: AMDGPU: Fix supported CL features

2016-06-16 Thread Jan Vesely via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272986: AMDGPU: Fix supported CL features (authored by jvesely). Changed prior to commit: http://reviews.llvm.org/D20388?vs=60259=61060#toc Repository: rL LLVM http://reviews.llvm.org/D20388

r272986 - AMDGPU: Fix supported CL features

2016-06-16 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Thu Jun 16 21:25:03 2016 New Revision: 272986 URL: http://llvm.org/viewvc/llvm-project?rev=272986=rev Log: AMDGPU: Fix supported CL features Reviewers: arsenm Differential Revision: http://reviews.llvm.org/D20388 Added: cfe/trunk/test/Misc/amdgcn.languageOptsOpenCL.cl

[libclc] r260303 - configure: Remove cl_khr_fp64 for device that don't support doubles

2016-02-09 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue Feb 9 16:17:46 2016 New Revision: 260303 URL: http://llvm.org/viewvc/llvm-project?rev=260303=rev Log: configure: Remove cl_khr_fp64 for device that don't support doubles Also remove definitions if provided by clang (3.7+) This halves the size of

[libclc] r260301 - math: Fix log2 vectorization on non-fp64 hw

2016-02-09 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue Feb 9 16:17:42 2016 New Revision: 260301 URL: http://llvm.org/viewvc/llvm-project?rev=260301=rev Log: math: Fix log2 vectorization on non-fp64 hw reviewer: tstellard Signed-off-by: Jan Vesely Modified: libclc/trunk/generic/lib/math/log2.cl

[libclc] r260302 - configure: Introduce per device defines

2016-02-09 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue Feb 9 16:17:45 2016 New Revision: 260302 URL: http://llvm.org/viewvc/llvm-project?rev=260302=rev Log: configure: Introduce per device defines Make cl_khr_fp64 define per-device. This patch does not change the generated Makefile (for llvm 3.6, 3.7) v2: Make the device

[libclc] r260304 - configure: Remove llvm 3.6 defines

2016-02-09 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue Feb 9 16:17:48 2016 New Revision: 260304 URL: http://llvm.org/viewvc/llvm-project?rev=260304=rev Log: configure: Remove llvm 3.6 defines we require llvm 3.7 reviewer: tstellard Signed-off-by: Jan Vesely Modified: libclc/trunk/configure.py

Re: [PATCH] D20447: [OpenCL] Fixup extension list

2016-05-23 Thread Jan Vesely via cfe-commits
jvesely retitled this revision from "[OpenCL] cl_khr_msaa_sharing is OpenCL1.2 extension" to "[OpenCL] Fixup extension list". jvesely added a subscriber: cfe-commits. jvesely updated this revision to Diff 58130. jvesely added a comment. I went through the specs and fixed up all I could find.

Re: [PATCH] D20447: [OpenCL] Fixup extension list

2016-05-24 Thread Jan Vesely via cfe-commits
jvesely added inline comments. Comment at: test/SemaOpenCL/extension-version.cl:11 @@ +10,3 @@ +#endif +#pragma OPENCL EXTENSION cl_clang_storage_class_specifiers: enable + Anastasia wrote: > Could you use standard diagnostic check please: >

[libclc] r269807 - math: Use single precision fmax in sp path

2016-05-17 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue May 17 14:44:01 2016 New Revision: 269807 URL: http://llvm.org/viewvc/llvm-project?rev=269807=rev Log: math: Use single precision fmax in sp path Fixes fdim piglit on Turks v2: use CL fmax instead of __builtin Signed-off-by: Jan Vesely

[libclc] r268766 - math: Add erf ported from amd-builtins

2016-05-06 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri May 6 13:02:30 2016 New Revision: 268766 URL: http://llvm.org/viewvc/llvm-project?rev=268766=rev Log: math: Add erf ported from amd-builtins The scalar float/double function bodies are a direct copy/paste, aside from the removed (optional) code in float function body

Re: [PATCH] D20447: [OpenCL] Fixup extension list

2016-05-24 Thread Jan Vesely via cfe-commits
jvesely added inline comments. Comment at: test/SemaOpenCL/extension-version.cl:11 @@ +10,3 @@ +#endif +#pragma OPENCL EXTENSION cl_clang_storage_class_specifiers: enable + Anastasia wrote: > jvesely wrote: > > Anastasia wrote: > > > Could you use standard

[libclc] r276423 - ptx: Fix builtin names after clang r274770

2016-07-22 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Jul 22 10:00:08 2016 New Revision: 276423 URL: http://llvm.org/viewvc/llvm-project?rev=276423=rev Log: ptx: Fix builtin names after clang r274770 Signed-off-by: Jan Vesely Acked-By: Aaron Watry Modified:

[libclc] r276704 - Make min follow the OCL 1.0 specs

2016-07-25 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Jul 25 17:36:22 2016 New Revision: 276704 URL: http://llvm.org/viewvc/llvm-project?rev=276704=rev Log: Make min follow the OCL 1.0 specs OpenCL 1.0: "Returns y if y < x, otherwise it returns x. If x *and* y are infinite or NaN, the return values are undefined." OpenCL

[libclc] r276442 - AMDGPU: Use clang intrinsics for workitem builtins

2016-07-22 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Jul 22 12:24:20 2016 New Revision: 276442 URL: http://llvm.org/viewvc/llvm-project?rev=276442=rev Log: AMDGPU: Use clang intrinsics for workitem builtins v2: split into 2 patches use clang builtins for other intrinsics as well v3: Fix warnings Switch r600 to

[libclc] r276443 - AMDGPU: Implement get_global_offset builtin

2016-07-22 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Jul 22 12:24:24 2016 New Revision: 276443 URL: http://llvm.org/viewvc/llvm-project?rev=276443=rev Log: AMDGPU: Implement get_global_offset builtin Also fix get_global_id to consider offset No idea how to add this for ptx, so they are stuck with the old get_global_id

r275030 - AMDGPU: Export workitem builtins

2016-07-10 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sun Jul 10 17:38:04 2016 New Revision: 275030 URL: http://llvm.org/viewvc/llvm-project?rev=275030=rev Log: AMDGPU: Export workitem builtins Reviewers: tstellardAMD Differential Revision: http://reviews.llvm.org/D20299 Modified:

Re: [PATCH] D21031: [OpenCL] Allow -cl-std and other standard -cl- options in driver

2016-07-01 Thread Jan Vesely via cfe-commits
jvesely added a subscriber: jvesely. Comment at: cfe/trunk/include/clang/Driver/Options.td:381 @@ +380,3 @@ +def cl_unsafe_math_optimizations : Flag<["-"], "cl-unsafe-math-optimizations">, Group, Flags<[CC1Option]>, + HelpText<"OpenCL only. Allow unsafe floating-point

[libclc] r278962 - Implement vstore_half{,n}

2016-08-17 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Aug 17 15:02:11 2016 New Revision: 278962 URL: http://llvm.org/viewvc/llvm-project?rev=278962=rev Log: Implement vstore_half{,n} Signed-off-by: Jan Vesely Added: libclc/trunk/generic/lib/shared/vstore_half.inc Modified:

r295843 - [OpenCL] r600 needs OpenCL kernel calling convention

2017-02-22 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Feb 22 09:01:42 2017 New Revision: 295843 URL: http://llvm.org/viewvc/llvm-project?rev=295843=rev Log: [OpenCL] r600 needs OpenCL kernel calling convention Differential Revision: https://reviews.llvm.org/D30236 Modified: cfe/trunk/lib/Sema/SemaType.cpp

r296241 - AMDGPU: export s_sendmsg{halt} instrinsics

2017-02-24 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Feb 24 22:20:24 2017 New Revision: 296241 URL: http://llvm.org/viewvc/llvm-project?rev=296241=rev Log: AMDGPU: export s_sendmsg{halt} instrinsics Differential Revision: https://reviews.llvm.org/D30366 Modified: cfe/trunk/include/clang/Basic/BuiltinsAMDGPU.def

r296239 - AMDGPU: export s_waitcnt builtin

2017-02-24 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Feb 24 22:20:20 2017 New Revision: 296239 URL: http://llvm.org/viewvc/llvm-project?rev=296239=rev Log: AMDGPU: export s_waitcnt builtin Differential Revision: https://reviews.llvm.org/D30359 Modified: cfe/trunk/include/clang/Basic/BuiltinsAMDGPU.def

r296240 - AMDGPU: export l1 cache invalidation intrinsics

2017-02-24 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Feb 24 22:20:22 2017 New Revision: 296240 URL: http://llvm.org/viewvc/llvm-project?rev=296240=rev Log: AMDGPU: export l1 cache invalidation intrinsics Differential Revision: https://reviews.llvm.org/D30360 Modified: cfe/trunk/include/clang/Basic/BuiltinsAMDGPU.def

[libclc] r296233 - math: Implement sinh function

2017-02-24 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Feb 24 20:46:53 2017 New Revision: 296233 URL: http://llvm.org/viewvc/llvm-project?rev=296233=rev Log: math: Implement sinh function mostly copied form amd_builtins Added: libclc/trunk/generic/include/clc/math/sinh.h

[libclc] r296164 - .gitignore: Ignore amdgcn-mesa object directory

2017-02-24 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Feb 24 14:32:18 2017 New Revision: 296164 URL: http://llvm.org/viewvc/llvm-project?rev=296164=rev Log: .gitignore: Ignore amdgcn-mesa object directory Modified: libclc/trunk/.gitignore Modified: libclc/trunk/.gitignore URL:

Re: r295843 - [OpenCL] r600 needs OpenCL kernel calling convention

2017-02-22 Thread Jan Vesely via cfe-commits
Hi Hans, I'd like this commit to make it to 4.0. I'm not sure if it falls under OpenCL or AMDGPU so I've added both Matt and Anastasia to cc. thank you, Jan On Wed, 2017-02-22 at 15:01 +, Jan Vesely via cfe-commits wrote: > Author: jvesely > Date: Wed Feb 22 09:01:42 2017 > New

Re: [PATCH] D24113: Allow implicit conversions between incompatible pointer types in overload resolution in C.

2016-09-06 Thread Jan Vesely via cfe-commits
jvesely added a subscriber: jvesely. jvesely added a comment. This change breaks OpenCL(libclc). CLC expects signed/unsigned overloads to be non-ambiguous. For example: atomic_max(global int *p, int val); atomic_max(global unsigned int *p, unsigned int val); need to work and be unambiguous

Re: [PATCH] D24113: Allow implicit conversions between incompatible pointer types in overload resolution in C.

2016-09-06 Thread Jan Vesely via cfe-commits
jvesely added a comment. In https://reviews.llvm.org/D24113#535255, @george.burgess.iv wrote: > Thanks for the heads-up! > > I'm assuming that below is an example of code that this patch broke? > > void foo(int *a, int) __attribute__((overloadable)); > void foo(unsigned int *a, unsigned int)

[libclc] r280871 - Avoid ambiguity in calling atom_add functions.

2016-09-07 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Sep 7 17:11:02 2016 New Revision: 280871 URL: http://llvm.org/viewvc/llvm-project?rev=280871=rev Log: Avoid ambiguity in calling atom_add functions. clang (since r280553) allows pointer casts in function overloads, so we need to disambiguate the second argument. clang

[libclc] r282106 - Provide vstore_half helper to workaround clc restrictions

2016-09-21 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Sep 21 15:15:55 2016 New Revision: 282106 URL: http://llvm.org/viewvc/llvm-project?rev=282106=rev Log: Provide vstore_half helper to workaround clc restrictions clang won't accept half precision loads and stores without cl_khr_fp16 since r281904 Added:

[libclc] r310968 - configure.py: Drop explicit import of int builtin

2017-08-15 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue Aug 15 15:24:05 2017 New Revision: 310968 URL: http://llvm.org/viewvc/llvm-project?rev=310968=rev Log: configure.py: Drop explicit import of int builtin I can't reproduce the error that made me add this. Reported-by: Kim Gräsman Signed-off-by:

[libclc] r309820 - configure.py: Make python3 friendly

2017-08-02 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Aug 2 08:00:59 2017 New Revision: 309820 URL: http://llvm.org/viewvc/llvm-project?rev=309820=rev Log: configure.py: Make python3 friendly mostly prints and exceptions. Few behavioral changes are documented in the text Generated Makefile is identical between python2 and

[libclc] r309358 - add __kernel_exec macros

2017-07-27 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Thu Jul 27 20:39:03 2017 New Revision: 309358 URL: http://llvm.org/viewvc/llvm-project?rev=309358=rev Log: add __kernel_exec macros also consolidate macros into one file, and rename to clcmacros.h Signed-off-by: Jan Vesely Reviewed-by: Aaron Watry

[libclc] r311021 - amdgcn: Implement {read_, write_, }mem_fence builtin

2017-08-16 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Aug 16 10:08:56 2017 New Revision: 311021 URL: http://llvm.org/viewvc/llvm-project?rev=311021=rev Log: amdgcn: Implement {read_,write_,}mem_fence builtin v2: add more detailed comment about waitcnt instruction Signed-off-by: Jan Vesely

[libclc] r311022 - amdgcn: rewrite barrier() using fence and clang __builtin_amdgcn_s_barrier

2017-08-16 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Aug 16 10:09:00 2017 New Revision: 311022 URL: http://llvm.org/viewvc/llvm-project?rev=311022=rev Log: amdgcn: rewrite barrier() using fence and clang __builtin_amdgcn_s_barrier Specs require using fences when barrier() is invoked: "The barrier function will either

[libclc] r304556 - generic: add missing get_work_dim include

2017-06-02 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Jun 2 10:58:35 2017 New Revision: 304556 URL: http://llvm.org/viewvc/llvm-project?rev=304556=rev Log: generic: add missing get_work_dim include Fixes few piglits since clang r304193 Signed-off-by: Jan Vesely Reviewed-by: Aaron Watry

[libclc] r313773 - Add travis CI configuration file

2017-09-20 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Sep 20 10:28:58 2017 New Revision: 313773 URL: http://llvm.org/viewvc/llvm-project?rev=313773=rev Log: Add travis CI configuration file Signed-off-by: Jan Vesely Added: libclc/trunk/.travis.yml Added: libclc/trunk/.travis.yml URL:

[libclc] r313810 - Implement cl_khr_int64_base_atomics builtins

2017-09-20 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Sep 20 13:42:14 2017 New Revision: 313810 URL: http://llvm.org/viewvc/llvm-project?rev=313810=rev Log: Implement cl_khr_int64_base_atomics builtins Signed-off-by: Jan Vesely Reviewed-by: Aaron Watry Tested-by: Aaron Watry

[libclc] r313811 - Implement cl_khr_int64_extended_atomics builtins

2017-09-20 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Wed Sep 20 13:42:19 2017 New Revision: 313811 URL: http://llvm.org/viewvc/llvm-project?rev=313811=rev Log: Implement cl_khr_int64_extended_atomics builtins Signed-off-by: Jan Vesely Reviewed-by: Aaron Watry Tested-by: Aaron Watry

[libclc] r315170 - ldexp: Fix double precision function return type

2017-10-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sat Oct 7 23:56:14 2017 New Revision: 315170 URL: http://llvm.org/viewvc/llvm-project?rev=315170=rev Log: ldexp: Fix double precision function return type Fixes ~1200 external calls from nvtpx library. Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely

[libclc] r315189 - math/nextafter: Use custom declaration inc file

2017-10-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sun Oct 8 12:33:55 2017 New Revision: 315189 URL: http://llvm.org/viewvc/llvm-project?rev=315189=rev Log: math/nextafter: Use custom declaration inc file Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely Added:

[libclc] r315191 - ptx: Use __clc_nextafter to implement nextafter

2017-10-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sun Oct 8 12:34:00 2017 New Revision: 315191 URL: http://llvm.org/viewvc/llvm-project?rev=315191=rev Log: ptx: Use __clc_nextafter to implement nextafter using clang builtin results in external library call Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely

[libclc] r315190 - Do not include clc_nextafter header globally

2017-10-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sun Oct 8 12:33:58 2017 New Revision: 315190 URL: http://llvm.org/viewvc/llvm-project?rev=315190=rev Log: Do not include clc_nextafter header globally Drop unused clc/math/clc_nextafter.h header Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely

[libclc] r315188 - math/binary_decl.inc: Do not declare mixed float/double functions

2017-10-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sun Oct 8 12:33:53 2017 New Revision: 315188 URL: http://llvm.org/viewvc/llvm-project?rev=315188=rev Log: math/binary_decl.inc: Do not declare mixed float/double functions fmin/fmax only need vector/scalar mix Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely

[libclc] r315193 - travis: Make sure we report failure even if only earlier checked files fail

2017-10-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sun Oct 8 13:07:58 2017 New Revision: 315193 URL: http://llvm.org/viewvc/llvm-project?rev=315193=rev Log: travis: Make sure we report failure even if only earlier checked files fail for loop would only report status of the last command v2: return '1' call test instead

[libclc] r315192 - check_external_calls.sh: Print number of calls in tested file.

2017-10-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Sun Oct 8 13:07:56 2017 New Revision: 315192 URL: http://llvm.org/viewvc/llvm-project?rev=315192=rev Log: check_external_calls.sh: Print number of calls in tested file. Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely Modified:

[libclc] r315341 - Make image builtins r600/llvm-3.9 only

2017-10-10 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue Oct 10 11:10:21 2017 New Revision: 315341 URL: http://llvm.org/viewvc/llvm-project?rev=315341=rev Log: Make image builtins r600/llvm-3.9 only The implementation uses r600 sepcific intrinsics LLVM-4 switched to _ro_t and _rw_t image types Portions of the code can be

[libclc] r315343 - travis: enable checks of nvptx libraries

2017-10-10 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue Oct 10 11:10:25 2017 New Revision: 315343 URL: http://llvm.org/viewvc/llvm-project?rev=315343=rev Log: travis: enable checks of nvptx libraries Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely Modified: libclc/trunk/.travis.yml Modified:

[libclc] r315342 - travis: Enable external function call checks on llvm-{4, 5}

2017-10-10 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue Oct 10 11:10:24 2017 New Revision: 315342 URL: http://llvm.org/viewvc/llvm-project?rev=315342=rev Log: travis: Enable external function call checks on llvm-{4,5} Reviewer: Aaron Watry Signed-off-by: Jan Vesely Modified:

[libclc] r312839 - Implement vload_half{,n} and vload(half)

2017-09-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Sep 8 16:59:00 2017 New Revision: 312839 URL: http://llvm.org/viewvc/llvm-project?rev=312839=rev Log: Implement vload_half{,n} and vload(half) v2: add vload(half) as well make helpers amdgpu specific (NVPTX uses different private AS numbering) use clang builtin

[libclc] r312838 - vstore: Cleanup and add vstore(half)

2017-09-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Sep 8 16:58:57 2017 New Revision: 312838 URL: http://llvm.org/viewvc/llvm-project?rev=312838=rev Log: vstore: Cleanup and add vstore(half) Add missing undefs Make helpers amdgpu specific (NVPTX uses different numbering for private AS) Use clang builtins on clang >= 6

[libclc] r312837 - configure.py: Simplify compatibility sources

2017-09-08 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Sep 8 16:58:53 2017 New Revision: 312837 URL: http://llvm.org/viewvc/llvm-project?rev=312837=rev Log: configure.py: Simplify compatibility sources Just add the SOURCE_X.Y list to the list of sources if X.Y is the current llvm version. Signed-off-by: Jan Vesely

r312742 - [OpenCL] Add half load and store builtins

2017-09-07 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Thu Sep 7 12:39:10 2017 New Revision: 312742 URL: http://llvm.org/viewvc/llvm-project?rev=312742=rev Log: [OpenCL] Add half load and store builtins This enables load/stores of half type, without half being a legal type. Differential Revision:

[libclc] r314261 - Add missing HAVE_LLVM define to fix build with latest llvm

2017-09-26 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue Sep 26 16:15:54 2017 New Revision: 314261 URL: http://llvm.org/viewvc/llvm-project?rev=314261=rev Log: Add missing HAVE_LLVM define to fix build with latest llvm Broken since r314111 V2: pointed out by Jan Vesely - Use format() instead of % formating Patch-by:

[libclc] r314111 - prepare_builtins: Fix compile breakage with older LLVM

2017-09-25 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Sep 25 09:04:37 2017 New Revision: 314111 URL: http://llvm.org/viewvc/llvm-project?rev=314111=rev Log: prepare_builtins: Fix compile breakage with older LLVM Fixes r314050 reviewer: Tom Stellard Signed-off-by: Jan Vesely Modified:

[libclc] r314112 - Rework atomic ops to use clang builtins rather than llvm asm

2017-09-25 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Sep 25 09:07:34 2017 New Revision: 314112 URL: http://llvm.org/viewvc/llvm-project?rev=314112=rev Log: Rework atomic ops to use clang builtins rather than llvm asm reviewer: Aaron Watry Signed-off-by: Jan Vesely Added:

[libclc] r314703 - integer/sub_sat: Use clang builtin instead of llvm asm

2017-10-02 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Oct 2 11:39:03 2017 New Revision: 314703 URL: http://llvm.org/viewvc/llvm-project?rev=314703=rev Log: integer/sub_sat: Use clang builtin instead of llvm asm reviewer: Tom Stellard Signed-off-by: Jan Vesely Removed:

[libclc] r314702 - integer/add_sat: Use clang builtin instead of llvm asm

2017-10-02 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Oct 2 11:39:00 2017 New Revision: 314702 URL: http://llvm.org/viewvc/llvm-project?rev=314702=rev Log: integer/add_sat: Use clang builtin instead of llvm asm reviewer: Tom Stellard Signed-off-by: Jan Vesely Removed:

[libclc] r314701 - integer/clz: Use clang builtin instead of llvm asm

2017-10-02 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Oct 2 11:38:57 2017 New Revision: 314701 URL: http://llvm.org/viewvc/llvm-project?rev=314701=rev Log: integer/clz: Use clang builtin instead of llvm asm The generated llvm IR mostly identical. char/uchar case is a bit worse. reviewer: Tom Stellard Signed-off-by: Jan

[libclc] r314546 - Add script to check for unresolved function calls

2017-09-29 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Sep 29 12:06:48 2017 New Revision: 314546 URL: http://llvm.org/viewvc/llvm-project?rev=314546=rev Log: Add script to check for unresolved function calls v2: add shell shebang improve error checks and reporting v3: fix typo Signed-off-by: Jan Vesely

[libclc] r314543 - Restore support for llvm-3.9

2017-09-29 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Sep 29 12:06:41 2017 New Revision: 314543 URL: http://llvm.org/viewvc/llvm-project?rev=314543=rev Log: Restore support for llvm-3.9 Signed-off-by: Jan Vesely Acked-by: Aaron Watry Added:

[libclc] r314544 - travis: add build using llvm-3.9

2017-09-29 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Sep 29 12:06:45 2017 New Revision: 314544 URL: http://llvm.org/viewvc/llvm-project?rev=314544=rev Log: travis: add build using llvm-3.9 Signed-off-by: Jan Vesely Acked-by: Aaron Watry Modified: libclc/trunk/.travis.yml

[libclc] r314545 - geometric: geometric functions are only supported for vector lengths <=4

2017-09-29 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Sep 29 12:06:47 2017 New Revision: 314545 URL: http://llvm.org/viewvc/llvm-project?rev=314545=rev Log: geometric: geometric functions are only supported for vector lengths <=4 Signed-off-by: Jan Vesely Reviewed-by: Aaron Watry

[libclc] r314548 - Fix amdgcn-amdhsa on llvm-3.9

2017-09-29 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Sep 29 12:06:52 2017 New Revision: 314548 URL: http://llvm.org/viewvc/llvm-project?rev=314548=rev Log: Fix amdgcn-amdhsa on llvm-3.9 Signed-off-by: Jan Vesely Acked-by: Aaron Watry Added:

[libclc] r314547 - travis: Check built libraries on llvm-3.9

2017-09-29 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Sep 29 12:06:50 2017 New Revision: 314547 URL: http://llvm.org/viewvc/llvm-project?rev=314547=rev Log: travis: Check built libraries on llvm-3.9 Signed-off-by: Jan Vesely Acked-by: Aaron Watry Modified:

[libclc] r312492 - r600: Cleanup barrier implementation.

2017-09-04 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Sep 4 08:52:05 2017 New Revision: 312492 URL: http://llvm.org/viewvc/llvm-project?rev=312492=rev Log: r600: Cleanup barrier implementation. We don't have memory fences for r600 so just call group barrier directly Make sure that barrier is called even with 0 flags

[libclc] r312493 - amdgcn,waitcnt: Add datalayout info

2017-09-04 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Sep 4 08:52:07 2017 New Revision: 312493 URL: http://llvm.org/viewvc/llvm-project?rev=312493=rev Log: amdgcn,waitcnt: Add datalayout info This file is only compiled for GCN which all share the same layout Signed-off-by: Jan Vesely Reviewed-by:

  1   2   3   >