[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)

2024-10-29 Thread Kelvin Li via cfe-commits
https://github.com/kkwli closed https://github.com/llvm/llvm-project/pull/113215 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)

2024-10-24 Thread Kelvin Li via cfe-commits
https://github.com/kkwli updated https://github.com/llvm/llvm-project/pull/113215 >From 3c57a70bf075d17bf9001bd6ec505170179ace9b Mon Sep 17 00:00:00 2001 From: Kelvin Li Date: Fri, 18 Oct 2024 23:25:27 -0400 Subject: [PATCH 1/3] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX --

[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)

2024-10-24 Thread Kelvin Li via cfe-commits
@@ -203,6 +203,33 @@ void Flang::AddAArch64TargetArgs(const ArgList &Args, } } +void Flang::AddPPCTargetArgs(const ArgList &Args, + ArgStringList &CmdArgs) const { + const Driver &D = getToolChain().getDriver(); + bool VecExtabi = false; + + if

[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)

2024-10-24 Thread Kelvin Li via cfe-commits
@@ -0,0 +1,15 @@ +! RUN: not %flang -### -c --target=powerpc64le-unknown-linux -mabi=vec-extabi %s 2>&1 | FileCheck --check-prefix=INVALID1 %s +! RUN: not %flang -### -c --target=x86_64-unknown-linux -mabi=vec-extabi %s 2>&1 | FileCheck --check-prefix=INVALID2 %s +! RUN: not %fl

[clang] [flang] [flang] Add UNSIGNED (PR #113504)

2024-10-24 Thread Kelvin Li via cfe-commits
@@ -0,0 +1,116 @@ + + +# Fortran Extensions supported by Flang + +```{contents} +--- +local: +--- +``` + +For better compatibility with GNU Fortran and Sun Fortran, +this compiler supports an option (`-funsigned`) that enables +the `UNSIGNED` data type, constants, intrinsic functi

[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)

2024-10-23 Thread Kelvin Li via cfe-commits
@@ -203,6 +203,30 @@ void Flang::AddAArch64TargetArgs(const ArgList &Args, } } +void Flang::AddPPCTargetArgs(const ArgList &Args, + ArgStringList &CmdArgs) const { + bool VecExtabi = false; + for (const Arg *A : Args.filtered(options::OPT_mabi_E

[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)

2024-10-23 Thread Kelvin Li via cfe-commits
https://github.com/kkwli updated https://github.com/llvm/llvm-project/pull/113215 >From 3c57a70bf075d17bf9001bd6ec505170179ace9b Mon Sep 17 00:00:00 2001 From: Kelvin Li Date: Fri, 18 Oct 2024 23:25:27 -0400 Subject: [PATCH 1/2] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX --

[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)

2024-10-21 Thread Kelvin Li via cfe-commits
https://github.com/kkwli created https://github.com/llvm/llvm-project/pull/113215 This option is to enable the AIX extended and default vector ABIs. >From 3c57a70bf075d17bf9001bd6ec505170179ace9b Mon Sep 17 00:00:00 2001 From: Kelvin Li Date: Fri, 18 Oct 2024 23:25:27 -0400 Subject: [PATCH] [f

[clang] [flang] [flang] Add -rtlib flag (PR #99058)

2024-07-16 Thread Kelvin Li via cfe-commits
kkwli wrote: The linker-flags test fails on AIX too. https://github.com/llvm/llvm-project/pull/99058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang] Re-enable -print-resource-dir compiler option (PR #96799)

2024-06-28 Thread Kelvin Li via cfe-commits
https://github.com/kkwli approved this pull request. LG. Thanks. https://github.com/llvm/llvm-project/pull/96799 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [lld] [flang] Generate main only when a Fortran program statement is present (PR #89938)

2024-04-25 Thread Kelvin Li via cfe-commits
kkwli wrote: This change will also break backward compatibility that the old object file that contain `main` can no longer use the new compiler to link with other objects. I think we can put a warning in the release note or something like that to warn users. https://github.com/llvm/llvm-proje

[clang] [flang] [lld] [flang] Generate main only when a Fortran program statement is present (PR #89938)

2024-04-24 Thread Kelvin Li via cfe-commits
@@ -24,6 +24,7 @@ add_flang_library(FIRBuilder Runtime/Inquiry.cpp Runtime/Intrinsics.cpp Runtime/Numeric.cpp + Runtime/Main.cpp kkwli wrote: I think this list is in alphabetical order? https://github.com/llvm/llvm-project/pull/89938 __

[clang] [flang] [lld] [flang] Generate main only when a Fortran program statement is present (PR #89938)

2024-04-24 Thread Kelvin Li via cfe-commits
https://github.com/kkwli approved this pull request. LG https://github.com/llvm/llvm-project/pull/89938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [lld] [flang] Generate main only when a Fortran program statement is present (PR #89938)

2024-04-24 Thread Kelvin Li via cfe-commits
https://github.com/kkwli edited https://github.com/llvm/llvm-project/pull/89938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][Frontend] Implement printing defined macros via -dM (PR #87627)

2024-04-10 Thread Kelvin Li via cfe-commits
kkwli wrote: @kparzysz Is it supposed to also print the predefined macros? Or only the user-defined macros? https://github.com/llvm/llvm-project/pull/87627 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[flang] [clang] [flang][driver] deprecate manual usage of -lFortran_main (PR #79016)

2024-01-22 Thread Kelvin Li via cfe-commits
https://github.com/kkwli approved this pull request. LG. Thanks https://github.com/llvm/llvm-project/pull/79016 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][driver] Allow explicit specification of -lFortran_main (PR #78152)

2024-01-17 Thread Kelvin Li via cfe-commits
kkwli wrote: > > How would `flang-new -fno-fortran-main t.f -lFortran_main` work? > > This works because I only remove `-lFortran_main` when it is going to be > added implicitly. `-fno-fortran-main` ensures that we never reach this > branch. I've added a test to verify this. I don't know what

[clang] [flang] [flang][driver] Add support for -isysroot in the frontend (PR #77365)

2024-01-17 Thread Kelvin Li via cfe-commits
kkwli wrote: > My plan is the following: > > * Try to fix isysroot.f90 test by making DEFAULT_SYSROOT a LIT "feature". > > * Keep using -isysroot on Flang's tests, on Darwin, as it seems to be the > recommended way to select an SDK. > > * Add support for -sysroot. > > > Does it

[flang] [clang] [flang][driver] Allow explicit specification of -lFortran_main (PR #78152)

2024-01-15 Thread Kelvin Li via cfe-commits
kkwli wrote: > > How would `flang-new -fno-fortran-main t.f -lFortran_main` work? > > Good question. This won't work with this patch but currently should work. > I'll have to fix this. > > Do you agree that `flang-new -lFortran_main` is something we want to make > work? In my opinion, we sho

[clang] [flang] [flang][driver] Allow explicit specification of -lFortran_main (PR #78152)

2024-01-15 Thread Kelvin Li via cfe-commits
kkwli wrote: How would `flang-new -fno-fortran-main t.f -lFortran_main` work? https://github.com/llvm/llvm-project/pull/78152 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][driver] Add support for -isysroot in the frontend (PR #77365)

2024-01-13 Thread Kelvin Li via cfe-commits
kkwli wrote: If the compiler is built with `DEFAULT_SYSROOT`, the `-isysroot` option is ignored. Is that the expected behavior? My local MacOS build (with `-DDEFAULT_SYSROOT="$(xcrun --show-sdk-path)"`) has `isysroot.f90` failed. https://github.com/llvm/llvm-project/pull/77365

[clang-tools-extra] [flang] [llvm] [Flang] make ppc unsupported for x86_64 test case (NFC) (PR #73903)

2024-01-04 Thread Kelvin Li via cfe-commits
https://github.com/kkwli approved this pull request. LG. Thanks https://github.com/llvm/llvm-project/pull/73903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [flang] [llvm] [Flang] make ppc unsupported for x86_64 test case (NFC) (PR #73903)

2024-01-04 Thread Kelvin Li via cfe-commits
@@ -7,7 +7,7 @@ ! ! This test is for x86_64, where exponent-letter 'q' is for ! 10-byte extended precision -! UNSUPPORTED: system-windows +! UNSUPPORTED: system-windows, system-aix kkwli wrote: Ok https://github.com/llvm/llvm-project/pull/73903 __

[llvm] [clang-tools-extra] [flang] [Flang] make ppc unsupported for x86_64 test case (NFC) (PR #73903)

2024-01-03 Thread Kelvin Li via cfe-commits
@@ -7,7 +7,7 @@ ! ! This test is for x86_64, where exponent-letter 'q' is for ! 10-byte extended precision -! UNSUPPORTED: system-windows +! UNSUPPORTED: system-windows, system-aix kkwli wrote: Why not `target=powerpc{{.*}}` as PPC is non-x86_64 regardless of

[clang] 00769d6 - [flang] Add -fppc-native-vector-element-order option to control the element order in PowerPC vector types

2023-08-04 Thread Kelvin Li via cfe-commits
Author: Kelvin Li Date: 2023-08-04T17:11:30-04:00 New Revision: 00769d69fbaa39ecdcbbaf826a35ad999bdc951e URL: https://github.com/llvm/llvm-project/commit/00769d69fbaa39ecdcbbaf826a35ad999bdc951e DIFF: https://github.com/llvm/llvm-project/commit/00769d69fbaa39ecdcbbaf826a35ad999bdc951e.diff LOG

[clang] 8ea4aed - [OpenMP] Add search path for llvm-strip

2022-02-04 Thread Kelvin Li via cfe-commits
Author: Kelvin Li Date: 2022-02-04T22:15:14-05:00 New Revision: 8ea4aed50a9f84d9617219ccc936c005c5f31c24 URL: https://github.com/llvm/llvm-project/commit/8ea4aed50a9f84d9617219ccc936c005c5f31c24 DIFF: https://github.com/llvm/llvm-project/commit/8ea4aed50a9f84d9617219ccc936c005c5f31c24.diff LOG

[clang] ac43033 - [OpenMP] [DOCS] Update OMP5.0 feature status table [NFC]

2020-02-03 Thread Kelvin Li via cfe-commits
Author: Kelvin Li Date: 2020-02-03T18:30:36-05:00 New Revision: ac430336318a1abe6e4726e8df49ee0e6b779691 URL: https://github.com/llvm/llvm-project/commit/ac430336318a1abe6e4726e8df49ee0e6b779691 DIFF: https://github.com/llvm/llvm-project/commit/ac430336318a1abe6e4726e8df49ee0e6b779691.diff LOG

[clang] 427ffa2 - [OpenMP] diagnose zero-length array section in the depend clause

2020-01-03 Thread Kelvin Li via cfe-commits
Author: Kelvin Li Date: 2020-01-03T11:55:37-05:00 New Revision: 427ffa2cdbbc7337d903ba71823a7830fa92568d URL: https://github.com/llvm/llvm-project/commit/427ffa2cdbbc7337d903ba71823a7830fa92568d DIFF: https://github.com/llvm/llvm-project/commit/427ffa2cdbbc7337d903ba71823a7830fa92568d.diff LOG

[clang] 0c7a1c0 - [OPENMP] [DOCS] correct status for use_device_addr clause

2019-11-22 Thread Kelvin Li via cfe-commits
Author: Kelvin Li Date: 2019-11-22T15:32:40-05:00 New Revision: 0c7a1c0cfc2a4e5b8b7f3920b2797c12963b8384 URL: https://github.com/llvm/llvm-project/commit/0c7a1c0cfc2a4e5b8b7f3920b2797c12963b8384 DIFF: https://github.com/llvm/llvm-project/commit/0c7a1c0cfc2a4e5b8b7f3920b2797c12963b8384.diff LOG

[clang] 9f10cc2 - [OPENMP] [DOCS] fix section formatting issues [NFC]

2019-11-06 Thread Kelvin Li via cfe-commits
Author: Kelvin Li Date: 2019-11-06T22:03:09-05:00 New Revision: 9f10cc2d124c275f2e7a6764e168f6b75527e78f URL: https://github.com/llvm/llvm-project/commit/9f10cc2d124c275f2e7a6764e168f6b75527e78f DIFF: https://github.com/llvm/llvm-project/commit/9f10cc2d124c275f2e7a6764e168f6b75527e78f.diff LOG

r353186 - [OPENMP] issue error messages for multiple teams contructs in a target construct

2019-02-05 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Feb 5 08:43:00 2019 New Revision: 353186 URL: http://llvm.org/viewvc/llvm-project?rev=353186&view=rev Log: [OPENMP] issue error messages for multiple teams contructs in a target construct The fix is to issue error messages if there are more than one teams construct inside

r351580 - [OPENMP][DOCS] Release notes/OpenMP support updates, NFC.

2019-01-18 Thread Kelvin Li via cfe-commits
Author: kli Date: Fri Jan 18 11:57:37 2019 New Revision: 351580 URL: http://llvm.org/viewvc/llvm-project?rev=351580&view=rev Log: [OPENMP][DOCS] Release notes/OpenMP support updates, NFC. Differential Revision: https://reviews.llvm.org/D56733 Modified: cfe/trunk/docs/OpenMPSupport.rst cf

r349551 - [OPENMP] parsing and sema support for 'close' map-type-modifier

2018-12-18 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Dec 18 14:18:41 2018 New Revision: 349551 URL: http://llvm.org/viewvc/llvm-project?rev=349551&view=rev Log: [OPENMP] parsing and sema support for 'close' map-type-modifier A map clause with the close map-type-modifier is a hint to prefer that the variables are mapped using

r347723 - [OPENMP] remove redundant ColonExpected flag in ParseOpenMP.cpp (NFC)

2018-11-27 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Nov 27 16:51:08 2018 New Revision: 347723 URL: http://llvm.org/viewvc/llvm-project?rev=347723&view=rev Log: [OPENMP] remove redundant ColonExpected flag in ParseOpenMP.cpp (NFC) The flag ColonExpected is not changed after being initialized to false at declaration. Patch by

r347411 - [OPENMP] Refactor code for parsing omp declare target directive and its clauses (NFC)

2018-11-21 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Nov 21 12:15:57 2018 New Revision: 347411 URL: http://llvm.org/viewvc/llvm-project?rev=347411&view=rev Log: [OPENMP] Refactor code for parsing omp declare target directive and its clauses (NFC) This patch refactor the code for parsing omp declare target directive and it

r347408 - [OPENMP] remove redundant MapTypeModifierSpecified flag in ParseOpenMP.cpp (NFC)

2018-11-21 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Nov 21 11:38:53 2018 New Revision: 347408 URL: http://llvm.org/viewvc/llvm-project?rev=347408&view=rev Log: [OPENMP] remove redundant MapTypeModifierSpecified flag in ParseOpenMP.cpp (NFC) Whether the map type modifier is specified or not, the flag MapTypeModifierSpecif

r347405 - [OPENMP] Support relational-op != (not-equal) as one of the canonical

2018-11-21 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Nov 21 11:10:48 2018 New Revision: 347405 URL: http://llvm.org/viewvc/llvm-project?rev=347405&view=rev Log: [OPENMP] Support relational-op != (not-equal) as one of the canonical forms of random access iterator In OpenMP 4.5, only 4 relational operators are supported: <,

r343063 - [OPENMP] Add support for OMP5 requires directive + unified_address clause

2018-09-25 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Sep 25 21:28:39 2018 New Revision: 343063 URL: http://llvm.org/viewvc/llvm-project?rev=343063&view=rev Log: [OPENMP] Add support for OMP5 requires directive + unified_address clause Add support for OMP5.0 requires directive and unified_address clause. Patches to follow will

r342322 - [OPENMP] Move OMPClauseReader/Writer classes to ASTReader/Writer (NFC)

2018-09-15 Thread Kelvin Li via cfe-commits
Author: kli Date: Sat Sep 15 06:54:15 2018 New Revision: 342322 URL: http://llvm.org/viewvc/llvm-project?rev=342322&view=rev Log: [OPENMP] Move OMPClauseReader/Writer classes to ASTReader/Writer (NFC) Move declarations for OMPClauseReader, OMPClauseWriter to ASTReader.h and ASTWriter.h and move

r341766 - [OpenMP] Add support for nested 'declare target' directives

2018-09-09 Thread Kelvin Li via cfe-commits
Author: kli Date: Sun Sep 9 19:07:09 2018 New Revision: 341766 URL: http://llvm.org/viewvc/llvm-project?rev=341766&view=rev Log: [OpenMP] Add support for nested 'declare target' directives Add the capability to nest multiple declare target directives - including header files within a declare ta

r320521 - [OpenMP] Diagnose function name on the link clause

2017-12-12 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Dec 12 12:08:12 2017 New Revision: 320521 URL: http://llvm.org/viewvc/llvm-project?rev=320521&view=rev Log: [OpenMP] Diagnose function name on the link clause This patch is to add diagnose when a function name is specified on the link clause. According to the OpenMP spec, o

r320506 - Add --cuda-path to mock a CUDA Toolkit installation to avoid

2017-12-12 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Dec 12 10:33:39 2017 New Revision: 320506 URL: http://llvm.org/viewvc/llvm-project?rev=320506&view=rev Log: Add --cuda-path to mock a CUDA Toolkit installation to avoid unexpected error messages for incompatibility between the default SM level and the support in the installed

r319458 - [OpenMP] Diagnose undeclared variables on declare target clause

2017-11-30 Thread Kelvin Li via cfe-commits
Author: kli Date: Thu Nov 30 10:52:06 2017 New Revision: 319458 URL: http://llvm.org/viewvc/llvm-project?rev=319458&view=rev Log: [OpenMP] Diagnose undeclared variables on declare target clause Clang asserts on undeclared variables on the to or link clause in the declare target directive. The pat

r291583 - [OpenMP] Remove outdated comments. NFC.

2017-01-10 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Jan 10 12:57:07 2017 New Revision: 291583 URL: http://llvm.org/viewvc/llvm-project?rev=291583&view=rev Log: [OpenMP] Remove outdated comments. NFC. Modified: cfe/trunk/include/clang/Basic/OpenMPKinds.def Modified: cfe/trunk/include/clang/Basic/OpenMPKinds.def URL: http

r291540 - [OpenMP] Support the 'is_device_ptr' clause with 'target parallel for' pragma

2017-01-09 Thread Kelvin Li via cfe-commits
Author: kli Date: Mon Jan 9 23:15:35 2017 New Revision: 291540 URL: http://llvm.org/viewvc/llvm-project?rev=291540&view=rev Log: [OpenMP] Support the 'is_device_ptr' clause with 'target parallel for' pragma This patch is to add support of the 'is_device_ptr' clause with the 'target parallel for

r291537 - [OpenMP] Support the 'is_device_ptr' clause with 'target parallel for simd' pragma

2017-01-09 Thread Kelvin Li via cfe-commits
Author: kli Date: Mon Jan 9 22:26:44 2017 New Revision: 291537 URL: http://llvm.org/viewvc/llvm-project?rev=291537&view=rev Log: [OpenMP] Support the 'is_device_ptr' clause with 'target parallel for simd' pragma This patch is to add support of the 'is_device_ptr' clause with the 'target parall

r291260 - [OpenMP] fix typo - the standalone 'distribute' pragma should be 'teams distribute' pragma

2017-01-06 Thread Kelvin Li via cfe-commits
Author: kli Date: Fri Jan 6 12:49:49 2017 New Revision: 291260 URL: http://llvm.org/viewvc/llvm-project?rev=291260&view=rev Log: [OpenMP] fix typo - the standalone 'distribute' pragma should be 'teams distribute' pragma Modified: cfe/trunk/test/OpenMP/teams_distribute_collapse_messages.cpp

r290813 - [OpenMP] Add test cases for the proc_bind and schedule clauses with 'teams distribute parallel for' pragma.

2017-01-02 Thread Kelvin Li via cfe-commits
Author: kli Date: Mon Jan 2 10:42:11 2017 New Revision: 290813 URL: http://llvm.org/viewvc/llvm-project?rev=290813&view=rev Log: [OpenMP] Add test cases for the proc_bind and schedule clauses with 'teams distribute parallel for' pragma. https://reviews.llvm.org/D28205 Added: cfe/trunk/test

r290795 - Fix typo in test case. NFC

2016-12-31 Thread Kelvin Li via cfe-commits
Author: kli Date: Sat Dec 31 17:36:47 2016 New Revision: 290795 URL: http://llvm.org/viewvc/llvm-project?rev=290795&view=rev Log: Fix typo in test case. NFC Modified: cfe/trunk/test/OpenMP/teams_distribute_parallel_for_simd_collapse_messages.cpp Modified: cfe/trunk/test/OpenMP/teams_distr

r290673 - Fix format. NFC

2016-12-28 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Dec 28 11:57:07 2016 New Revision: 290673 URL: http://llvm.org/viewvc/llvm-project?rev=290673&view=rev Log: Fix format. NFC Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/tr

r289989 - [OpenMP] support the 'is_device_ptr' clause with 'target parallel' pragma

2016-12-16 Thread Kelvin Li via cfe-commits
Author: kli Date: Fri Dec 16 14:50:46 2016 New Revision: 289989 URL: http://llvm.org/viewvc/llvm-project?rev=289989&view=rev Log: [OpenMP] support the 'is_device_ptr' clause with 'target parallel' pragma This patch is to add support of the 'is_device_ptr' clause in the 'target parallel' pragma.

r289897 - Fix typo in error messages. NFC.

2016-12-15 Thread Kelvin Li via cfe-commits
Author: kli Date: Thu Dec 15 18:15:54 2016 New Revision: 289897 URL: http://llvm.org/viewvc/llvm-project?rev=289897&view=rev Log: Fix typo in error messages. NFC. Modified: cfe/trunk/test/OpenMP/teams_distribute_parallel_for_simd_loop_messages.cpp Modified: cfe/trunk/test/OpenMP/teams_distr

r289836 - Fix typo in comment. NFC.

2016-12-15 Thread Kelvin Li via cfe-commits
Author: kli Date: Thu Dec 15 11:55:32 2016 New Revision: 289836 URL: http://llvm.org/viewvc/llvm-project?rev=289836&view=rev Log: Fix typo in comment. NFC. Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp URL: http://llvm.org/viewvc/llvm-pro

r289657 - Fix assert message. NFC.

2016-12-14 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Dec 14 09:39:58 2016 New Revision: 289657 URL: http://llvm.org/viewvc/llvm-project?rev=289657&view=rev Log: Fix assert message. NFC. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/tr

r288862 - [OpenMP] Fix typo in the run command in the test case. NFC.

2016-12-06 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Dec 6 17:18:06 2016 New Revision: 288862 URL: http://llvm.org/viewvc/llvm-project?rev=288862&view=rev Log: [OpenMP] Fix typo in the run command in the test case. NFC. Modified: cfe/trunk/test/OpenMP/teams_distribute_parallel_for_simd_ast_print.cpp Modified: cfe/trunk/t

r288838 - [OpenMP] Fix typo in the test case. NFC.

2016-12-06 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Dec 6 12:50:20 2016 New Revision: 288838 URL: http://llvm.org/viewvc/llvm-project?rev=288838&view=rev Log: [OpenMP] Fix typo in the test case. NFC. Modified: cfe/trunk/test/OpenMP/teams_distribute_parallel_for_simd_if_messages.cpp Modified: cfe/trunk/test/OpenMP/teams

Re: [PATCH] D23528: [OpenMP] Sema and parsing for 'teams distribute simd' pragma

2016-10-25 Thread Kelvin Li via cfe-commits
The failure cannot be reproduced. I re-apply r279045. Committed revision 285066. Thanks, Kelvin On Thu, Aug 18, 2016 at 5:46 AM, Diana Picus wrote: > Hi, > > I had to revert this (r279045) because it breaks some of our buildbots > (e.g. > clang-cmake-aarch64-quick, clang-x86_64-linux-selfhost

[PATCH] D24615: [OpenMP] clang doesnt diagnose if there is a lexical block around a for stmt for OpenMP loops. It is technically not allowed in the OpenMP standard

2016-10-04 Thread Kelvin Li via cfe-commits
kkwli0 added a comment. Should we issue a warning message in this case? https://reviews.llvm.org/D24615 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23189: [OpenMP] Sema and parsing for 'teams distribute' pragma

2016-08-05 Thread Kelvin Li via cfe-commits
kkwli0 added a comment. Thanks. I will update it when I commit the patch. https://reviews.llvm.org/D23189 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r276726 - [OpenMP] diagnose orphaned teams construct

2016-07-25 Thread Kelvin Li via cfe-commits
Author: kli Date: Mon Jul 25 23:32:50 2016 New Revision: 276726 URL: http://llvm.org/viewvc/llvm-project?rev=276726&view=rev Log: [OpenMP] diagnose orphaned teams construct The OpenMP spec mandates that 'a teams construct must be contained within a target construct'. Currently, this scenario is

Re: [PATCH] D22785: [OpenMP] diagnose orphaned teams construct

2016-07-25 Thread Kelvin Li via cfe-commits
kkwli0 added a comment. Will add the braces. Thanks. https://reviews.llvm.org/D22785 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22785: [OpenMP] diagnose orphaned teams construct

2016-07-25 Thread Kelvin Li via cfe-commits
kkwli0 created this revision. kkwli0 added reviewers: ABataev, sfantao, carlo.bertolli, arpith-jacob, hfinkel. kkwli0 added a subscriber: cfe-commits. The spec mandates that 'a teams construct must be contained within a target construct'. Currently, this scenario is not diagnosed. This patch is

r276177 - [OpenMP] Allow negative lower bound in array sections based on pointers

2016-07-20 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Jul 20 15:45:29 2016 New Revision: 276177 URL: http://llvm.org/viewvc/llvm-project?rev=276177&view=rev Log: [OpenMP] Allow negative lower bound in array sections based on pointers OpenMP 4.5 removed the restriction that array section lower bound must be non negative. This c

r276167 - [OpenMP] Ignore parens in atomic capture

2016-07-20 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Jul 20 14:41:17 2016 New Revision: 276167 URL: http://llvm.org/viewvc/llvm-project?rev=276167&view=rev Log: [OpenMP] Ignore parens in atomic capture Clang misdiagnoses atomic captures cases that contains parens. i.e. int v, int *p; #pragma omp atomic capture { v = (*p); (

r275926 - [OpenMP] Fix incorrect diagnostics in map clause

2016-07-18 Thread Kelvin Li via cfe-commits
Author: kli Date: Mon Jul 18 17:49:16 2016 New Revision: 275926 URL: http://llvm.org/viewvc/llvm-project?rev=275926&view=rev Log: [OpenMP] Fix incorrect diagnostics in map clause Having the following code pattern will result in incorrect diagnostic int main() { int arr[10]; #pragma omp target

r275805 - [OpenMP] update test cases for -std=c++11 compile

2016-07-18 Thread Kelvin Li via cfe-commits
Author: kli Date: Mon Jul 18 11:09:53 2016 New Revision: 275805 URL: http://llvm.org/viewvc/llvm-project?rev=275805&view=rev Log: [OpenMP] update test cases for -std=c++11 compile target_parallel_for_simd_collapse_messages.cpp and target_parallel_for_simd_ordered_messages.cpp give different diag

Re: [PATCH] D22417: [OpenMP] update test cases for -std=c++11 compile

2016-07-17 Thread Kelvin Li via cfe-commits
kkwli0 added a subscriber: cfe-commits. kkwli0 added a comment. Add cfe-commits https://reviews.llvm.org/D22417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22096: [OpenMP] Sema and parsing for 'target parallel for simd' pragma

2016-07-15 Thread Kelvin Li via cfe-commits
kkwli0 added a comment. I update the test cases in https://reviews.llvm.org/D22417. Repository: rL LLVM https://reviews.llvm.org/D22096 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D22096: [OpenMP] Sema and parsing for 'target parallel for simd' pragma

2016-07-15 Thread Kelvin Li via cfe-commits
I will take a look and put up a patch for it. Kelvin On Fri, Jul 15, 2016 at 2:46 AM, Alexey Bataev wrote: > Kelvin, > Please look at these messages and fix the tests. Or tell me and I will > fix them > > Best regards, > Alexey Bataev > = > Software Engineer > Intel Compiler Team >

r275529 - [OpenMP] add check for both simdlen and safelen clauses specified

2016-07-14 Thread Kelvin Li via cfe-commits
Author: kli Date: Thu Jul 14 23:39:07 2016 New Revision: 275529 URL: http://llvm.org/viewvc/llvm-project?rev=275529&view=rev Log: [OpenMP] add check for both simdlen and safelen clauses specified This patch adds the check for specifying both simdlen and safelen clauses on the 'distribute simd' o

[PATCH] D22384: [OpenMP] add check for both simdlen and safelen clauses specified

2016-07-14 Thread Kelvin Li via cfe-commits
kkwli0 created this revision. kkwli0 added reviewers: ABataev, sfantao, carlo.bertolli, arpith-jacob, hfinkel. kkwli0 added a subscriber: cfe-commits. This patch adds the check for specifying both simdlen and safelen clauses on the 'distribute simd' or 'distribute parallel for simd' constructs.

r275323 - [OpenMP] remove duplicate code in ActOnOpenMPRegionStart

2016-07-13 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Jul 13 16:51:49 2016 New Revision: 275323 URL: http://llvm.org/viewvc/llvm-project?rev=275323&view=rev Log: [OpenMP] remove duplicate code in ActOnOpenMPRegionStart This patch is to remove duplicate code in ActOnOpenMPRegionStart. (NFC) Differential Revision: http://reviews

r275315 - [OpenMP] add more tests for 'distribute parallel for simd' pragma

2016-07-13 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Jul 13 15:40:32 2016 New Revision: 275315 URL: http://llvm.org/viewvc/llvm-project?rev=275315&view=rev Log: [OpenMP] add more tests for 'distribute parallel for simd' pragma This patch is to add two additional tests for testing 'distribute parallel for simd' pragma with dis

r275306 - [OpenMP] add more tests for 'distribute simd' pragma

2016-07-13 Thread Kelvin Li via cfe-commits
Author: kli Date: Wed Jul 13 14:16:56 2016 New Revision: 275306 URL: http://llvm.org/viewvc/llvm-project?rev=275306&view=rev Log: [OpenMP] add more tests for 'distribute simd' pragma This patch is to add two additional tests for testing 'distribute simd' pragma with disallowed clauses and loops.

[PATCH] D22176: [OpenMP] add more tests for 'distribute simd' pragma

2016-07-08 Thread Kelvin Li via cfe-commits
kkwli0 created this revision. kkwli0 added reviewers: ABataev, sfantao, carlo.bertolli, hfinkel, arpith-jacob. kkwli0 added a subscriber: cfe-commits. This patch is to add two additional tests for testing 'distribute simd' pragma with disallowed clauses and loops. http://reviews.llvm.org/D22176

[PATCH] D22169: [OpenMP] add more tests for 'distribute parallel for simd' pragma

2016-07-08 Thread Kelvin Li via cfe-commits
kkwli0 created this revision. kkwli0 added reviewers: ABataev, sfantao, carlo.bertolli, arpith-jacob, hfinkel. kkwli0 added a subscriber: cfe-commits. This patch is to add two additional tests for testing 'distribute parallel for simd' pragma with disallowed clauses and loops. http://reviews.llv

r274577 - [OpenMP] remove outdated comment (NFC)

2016-07-05 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Jul 5 16:38:53 2016 New Revision: 274577 URL: http://llvm.org/viewvc/llvm-project?rev=274577&view=rev Log: [OpenMP] remove outdated comment (NFC) Modified: cfe/trunk/lib/Basic/OpenMPKinds.cpp Modified: cfe/trunk/lib/Basic/OpenMPKinds.cpp URL: http://llvm.org/viewvc/ll

r274352 - [OpenMP] Issue warning if a simd construct nested inside another simd

2016-07-01 Thread Kelvin Li via cfe-commits
Author: kli Date: Fri Jul 1 09:30:25 2016 New Revision: 274352 URL: http://llvm.org/viewvc/llvm-project?rev=274352&view=rev Log: [OpenMP] Issue warning if a simd construct nested inside another simd construct Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td cfe/trunk/lib/Se

Re: [PATCH] D21904: [OpenMP] Initial implementation of parse+sema for clause use_device_ptr of 'target data'

2016-06-30 Thread Kelvin Li via cfe-commits
kkwli0 added inline comments. Comment at: lib/Sema/SemaOpenMP.cpp:11377 @@ +11376,3 @@ +// item should be a pointer or array +if (!Type.getNonReferenceType()->isPointerType()) { + Diag(ELoc, diag::err_omp_usedeviceptr_not_a_pointer) sfantao wrote: > A

Re: [PATCH] D21617: [OpenMP] Diagnose missing cases of statements between target and teams directives

2016-06-27 Thread Kelvin Li via cfe-commits
kkwli0 closed this revision. kkwli0 added a comment. At revision: 273908 http://reviews.llvm.org/D21617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r273908 - [OpenMP] Diagnose missing cases of statements between target and teams directives

2016-06-27 Thread Kelvin Li via cfe-commits
Author: kli Date: Mon Jun 27 14:15:43 2016 New Revision: 273908 URL: http://llvm.org/viewvc/llvm-project?rev=273908&view=rev Log: [OpenMP] Diagnose missing cases of statements between target and teams directives Clang fails to diagnose cases such as #pragma omp target while(0) { #pragma om

Re: [PATCH] D21617: [OpenMP] Diagnose missing cases of statements between target and teams directives

2016-06-22 Thread Kelvin Li via cfe-commits
kkwli0 added a comment. The changes look fine to me. Thanks. http://reviews.llvm.org/D21617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r273369 - [OpenMP] Add the depend clause to target update construct (sema and parsing)

2016-06-21 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Jun 21 22:10:32 2016 New Revision: 273369 URL: http://llvm.org/viewvc/llvm-project?rev=273369&view=rev Log: [OpenMP] Add the depend clause to target update construct (sema and parsing) Differential Revision: http://reviews.llvm.org/D21532 Added: cfe/trunk/test/OpenMP/t

r273190 - [OpenMP] Add the nowait clause to target update construct.

2016-06-20 Thread Kelvin Li via cfe-commits
Author: kli Date: Mon Jun 20 14:16:34 2016 New Revision: 273190 URL: http://llvm.org/viewvc/llvm-project?rev=273190&view=rev Log: [OpenMP] Add the nowait clause to target update construct. Differential Revision: http://reviews.llvm.org/D21477 Added: cfe/trunk/test/OpenMP/target_update_nowait

Re: [PATCH] D15944: [OpenMP] Parsing and sema support for target update directive

2016-03-25 Thread Kelvin Li via cfe-commits
kkwli0 added a comment. Patch for the to and from clauses is in http://reviews.llvm.org/D18488. http://reviews.llvm.org/D15944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15944: [OpenMP] Parsing and sema support for target update directive

2016-03-25 Thread Kelvin Li via cfe-commits
kkwli0 added a comment. Thanks for the review. As request, I will split this patch into two: 1. to and from clause (without test cases) 2. target update directive (with test cases) I will use this review for the target update directive. http://reviews.llvm.org/D15944 __

Re: [PATCH] D15944: [OpenMP] Parsing and sema support for target update directive

2016-03-15 Thread Kelvin Li via cfe-commits
kkwli0 updated this revision to Diff 50774. kkwli0 marked 5 inline comments as done. kkwli0 added a comment. Addressed the comments from the last review: added assert calls and outline the common code in ActOnOpenMPToClause, ActOnOpenMPFromClause and ActOnOpenMPMapClause to a static function.

Re: [PATCH] D15944: [OpenMP] Parsing and sema support for target update directive

2016-03-07 Thread Kelvin Li via cfe-commits
kkwli0 updated this revision to Diff 50024. kkwli0 marked 2 inline comments as done. kkwli0 added a comment. I rebase the patch to the latest trunk and make use of the infrastructure form parsing and sema. http://reviews.llvm.org/D15944 Files: include/clang-c/Index.h include/clang/AST/Open

Re: [PATCH] D15944: [OpenMP] Parsing and sema support for target update directive

2016-03-07 Thread Kelvin Li via cfe-commits
kkwli0 marked 3 inline comments as done. Comment at: include/clang/AST/OpenMPClause.h:3196 @@ -3195,1 +3195,3 @@ +/// \brief This represents clause 'from' in the '#pragma omp ...' +/// directives. ABataev wrote: > New clauses must be added in separate patches af

[PATCH] D15944: [OpenMP] Parsing and sema support for target update directive

2016-01-06 Thread Kelvin Li via cfe-commits
kkwli0 created this revision. kkwli0 added reviewers: ABataev, rsmith, fraggamuffin, sfantao, hfinkel, carlo.bertolli. kkwli0 added a subscriber: cfe-commits. This patch is to add parsing and sema support for target update directive. It also includes the to and from clause as it is required to

Re: [PATCH] D15125: [OPENMP] 'omp distribute' directive basic support.

2015-12-02 Thread Kelvin Li via cfe-commits
kkwli0 added inline comments. Comment at: include/clang/AST/OpenMPClause.h:708 @@ -707,3 +707,3 @@ public: - /// \brief Build 'schedule' clause with schedule kind \a Kind and chunk size - /// expression \a ChunkSize. + /// \brief Build 'dist_schedule' clause with schedule kind

Re: [PATCH] D15029: [OpenMP] Parsing and sema support for thread_limit clause

2015-11-27 Thread Kelvin Li via cfe-commits
kkwli0 closed this revision. kkwli0 added a comment. Committed revision 254207. http://reviews.llvm.org/D15029 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r254207 - [OpenMP] Parsing and sema support for thread_limit clause.

2015-11-27 Thread Kelvin Li via cfe-commits
Author: kli Date: Fri Nov 27 12:47:36 2015 New Revision: 254207 URL: http://llvm.org/viewvc/llvm-project?rev=254207&view=rev Log: [OpenMP] Parsing and sema support for thread_limit clause. http://reviews.llvm.org/D15029 Added: cfe/trunk/test/OpenMP/teams_thread_limit_messages.cpp Modified:

Re: [PATCH] D15029: [OpenMP] Parsing and sema support for thread_limit clause

2015-11-26 Thread Kelvin Li via cfe-commits
kkwli0 added inline comments. Comment at: lib/Sema/SemaOpenMP.cpp:5220-5242 @@ -5216,2 +5219,25 @@ +static bool IsNonNegativeIntegerValue(Expr *&ValExpr, Sema &SemaRef, + OpenMPClauseKind CKind) { + if (!ValExpr->isTypeDependent() && !ValExp

[PATCH] D15029: [OpenMP] Parsing and sema support for thread_limit clause

2015-11-26 Thread Kelvin Li via cfe-commits
kkwli0 created this revision. kkwli0 added reviewers: ABataev, hfinkel, sfantao, fraggamuffin, rsmith. kkwli0 added a subscriber: cfe-commits. This patch is to add parsing and sema support for thread_limit clause. http://reviews.llvm.org/D15029 Files: include/clang/AST/OpenMPClause.h include

r254019 - [OpenMP] Parsing and sema support for num_teams clause

2015-11-24 Thread Kelvin Li via cfe-commits
Author: kli Date: Tue Nov 24 14:50:12 2015 New Revision: 254019 URL: http://llvm.org/viewvc/llvm-project?rev=254019&view=rev Log: [OpenMP] Parsing and sema support for num_teams clause http://reviews.llvm.org/D14802 Added: cfe/trunk/test/OpenMP/teams_num_teams_messages.cpp Modified: cfe/

Re: [PATCH] D14134: [OpenMP] Parsing and sema support for map clause

2015-11-22 Thread Kelvin Li via cfe-commits
kkwli0 closed this revision. kkwli0 added a comment. Committed revision 253849. Committed revision 253850. http://reviews.llvm.org/D14134 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

r253850 - [OpenMP] Parsing and sema support for map clause - add test case

2015-11-22 Thread Kelvin Li via cfe-commits
Author: kli Date: Sun Nov 22 23:36:37 2015 New Revision: 253850 URL: http://llvm.org/viewvc/llvm-project?rev=253850&view=rev Log: [OpenMP] Parsing and sema support for map clause - add test case http://reviews.llvm.org/D14134 Added: cfe/trunk/test/OpenMP/target_map_messages.cpp Added: cfe

r253849 - [OpenMP] Parsing and sema support for map clause

2015-11-22 Thread Kelvin Li via cfe-commits
Author: kli Date: Sun Nov 22 23:32:03 2015 New Revision: 253849 URL: http://llvm.org/viewvc/llvm-project?rev=253849&view=rev Log: [OpenMP] Parsing and sema support for map clause http://reviews.llvm.org/D14134 Modified: cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h cfe/trunk/inc

Re: [PATCH] D14134: [OpenMP] Parsing and sema support for map clause

2015-11-18 Thread Kelvin Li via cfe-commits
kkwli0 updated this revision to Diff 40537. kkwli0 added a comment. Updated patch with the 2nd review comments addressed. http://reviews.llvm.org/D14134 Files: include/clang/AST/DataRecursiveASTVisitor.h include/clang/AST/OpenMPClause.h include/clang/AST/RecursiveASTVisitor.h include/cl

  1   2   >