r270822 - [OPENMP] Set '_OPENMP' macro to '201511' value to reflect support for

2016-05-25 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Wed May 25 23:56:05 2016 New Revision: 270822 URL: http://llvm.org/viewvc/llvm-project?rev=270822=rev Log: [OPENMP] Set '_OPENMP' macro to '201511' value to reflect support for OpenMP 4.5. According to OpenMP 4.5 the _OPENMP macro name is defined to have the decimal value

Re: [PATCH] D20660: Remove `auto_ptr` in C++17.

2016-05-25 Thread Eric Fiselier via cfe-commits
EricWF added a comment. A couple of comments. 1. there's probably a better way to state `_LIBCPP_STD_VER <= 14 || defined(_LIBCPP_NO_REMOVE_AUTO_PTR)`. Maybe `_LIBCPP_HAS_NO_AUTO_PTR` which `__config` defines if `_LIBCPP_STD_VER > 14 && !defined(_LIBCPP_NO_REMOVE_AUTO_PTR)`. 2. `// XFAIL

[PATCH] D20660: Remove `auto_ptr` in C++17.

2016-05-25 Thread Marshall Clow via cfe-commits
mclow.lists created this revision. mclow.lists added a reviewer: EricWF. mclow.lists added a subscriber: cfe-commits. [[ http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4190 | N4190 ]] removed `auto_ptr` from C++1z. (and other stuff) Wrap all the auto_ptr bits in an #ifdef so they

Re: [PATCH] D20617: [X86][SSE] _mm_store1_ps/_mm_store1_pd should require an aligned pointer

2016-05-25 Thread David Majnemer via cfe-commits
majnemer added a subscriber: majnemer. Comment at: lib/Headers/emmintrin.h:598 @@ -594,3 +597,3 @@ static __inline__ void __DEFAULT_FN_ATTRS -_mm_store_pd(double *__dp, __m128d __a) +_mm_store_pd1(double *__dp, __m128d __a) { You could use

Re: [PATCH] D18488: [OpenMP] Parsing and sema support for the from clause

2016-05-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D18488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20650: [OpenMP] Codegen for target update directive.

2016-05-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D20650 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20617: [X86][SSE] _mm_store1_ps/_mm_store1_pd should require an aligned pointer

2016-05-25 Thread Craig Topper via cfe-commits
craig.topper accepted this revision. craig.topper added a comment. This revision is now accepted and ready to land. Given that its documented as being aligned. I'm ok with it. LGTM Repository: rL LLVM http://reviews.llvm.org/D20617 ___

Re: [PATCH] D18597: [OpenMP] Parsing and sema support for the to clause

2016-05-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG, with a small nit. Comment at: lib/Sema/SemaOpenMP.cpp:10214 @@ +10213,3 @@ +// expressions. +struct MappableVarListInfo { + // The list of expressions.

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

2016-05-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D15944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20632: clang-format: [JS] Support shebang lines on the very first line.

2016-05-25 Thread Alex Eagle via cfe-commits
alexeagle added a subscriber: alexeagle. Comment at: lib/Format/FormatTokenLexer.cpp:23 @@ -22,1 +22,3 @@ +#include "llvm/Support/Debug.h" + revert this file Comment at: lib/Format/TokenAnnotator.cpp:698 @@ +697,3 @@ + +if (Style.Language

Re: [PATCH] D20112: [OpenMP] Add support for the 'private pointer' flag to signal variables captured in target regions and used in first-private clauses.

2016-05-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D20112 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20111: [OpenMP] Adjust map type bits according to latest spec and use zero size array sections for pointers.

2016-05-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D20111 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r270817 - Don't feed standard error to FileCheck.

2016-05-25 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Wed May 25 21:32:10 2016 New Revision: 270817 URL: http://llvm.org/viewvc/llvm-project?rev=270817=rev Log: Don't feed standard error to FileCheck. This is an attempt to fix the buildbot that started failing after r270808.

Re: [PATCH] D15421: [Feature] Add a builtin for indexing into parameter packs

2016-05-25 Thread Louis Dionne via cfe-commits
ldionne added a comment. No problem for the delay; we're all busy :-). Unfortunately, the patch does not apply cleanly on `master` anymore, so I'll rebase it and someone can then commit it for me. http://reviews.llvm.org/D15421 ___ cfe-commits

Re: [PATCH] D20270: libc++abi: build with -fvisibility=hidden

2016-05-25 Thread Saleem Abdulrasool via cfe-commits
compnerd closed this revision. compnerd added a comment. SVN r270816 with the changes. Repository: rL LLVM http://reviews.llvm.org/D20270 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[libcxxabi] r270816 - libc++abi: build with -fvisibility=hidden

2016-05-25 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed May 25 21:12:20 2016 New Revision: 270816 URL: http://llvm.org/viewvc/llvm-project?rev=270816=rev Log: libc++abi: build with -fvisibility=hidden Enable building libc++abi with hidden visibility by default. The ABI mandated interfaces (and a few extra) are already set

Re: [PATCH] D20336: [AMDGPU] Remove individual debugger options + update features

2016-05-25 Thread Tom Stellard via cfe-commits
tstellarAMD accepted this revision. tstellarAMD added a comment. This revision is now accepted and ready to land. LGTM. http://reviews.llvm.org/D20336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r270808 - [ObjC] Remove _Atomic from return type and parameter type of

2016-05-25 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Wed May 25 19:37:30 2016 New Revision: 270808 URL: http://llvm.org/viewvc/llvm-project?rev=270808=rev Log: [ObjC] Remove _Atomic from return type and parameter type of objective-c properties. This fixes an assert in CodeGen that fires when the getter and setter functions

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread Akira Hatanaka via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL270808: [ObjC] Remove _Atomic from return type and parameter type of (authored by ahatanak). Changed prior to commit: http://reviews.llvm.org/D20407?vs=58544=58549#toc Repository: rL LLVM

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 58544. ahatanak added a comment. Thanks for the review. I've removed parameter ASTContext that was unused. http://reviews.llvm.org/D20407 Files: include/clang/AST/Type.h lib/AST/Type.cpp lib/CodeGen/CGObjC.cpp lib/Sema/SemaObjCProperty.cpp

Re: [PATCH] D20383: PCH + Module: make sure we write out macros associated with builtin identifiers

2016-05-25 Thread Manman Ren via cfe-commits
manmanren added a comment. Doug and Richard, Can you take a look at this when you have time? Thanks, Manman http://reviews.llvm.org/D20383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread John McCall via cfe-commits
rjmccall added a comment. One minor improvement to the API and LGTM. Comment at: include/clang/AST/Type.h:1084 @@ +1083,3 @@ + /// Remove all qualifiers including _Atomic. + QualType getAtomicUnqualifiedType(const ASTContext ) const; + This doesn't need an

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread John McCall via cfe-commits
rjmccall added a comment. In http://reviews.llvm.org/D20407#440050, @ahatanak wrote: > In http://reviews.llvm.org/D20407#439951, @rjmccall wrote: > > > The C standard is poorly-written in this area, but I think it would be > > reasonable for CheckFunctionReturnType to just silently remove

Re: [PATCH] D19843: Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-05-25 Thread Eric Niebler via cfe-commits
eric_niebler added a comment. > Please add some tests for the FixItHint replacement text. See test/FixIt for > examples of how to do this. Thanks for the suggestion. After adding tests for this, I noticed badness with the path separators in the FixIt hint when running on Windows. I'm working

Re: [PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

2016-05-25 Thread Pirama Arumuga Nainar via cfe-commits
pirama updated this revision to Diff 58537. pirama added a comment. Renamed diagnostic to use ext_ prefix. http://reviews.llvm.org/D20602 Files: include/clang/AST/Type.h include/clang/Basic/DiagnosticSemaKinds.td lib/AST/Expr.cpp lib/Sema/SemaExprMember.cpp test/CodeGen/ext-vector.c

Re: [PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

2016-05-25 Thread Pirama Arumuga Nainar via cfe-commits
pirama updated this revision to Diff 58535. pirama added a comment. Switched to ExtWarn, updated warning's message and made the version check strict w.r.t. 2.2. http://reviews.llvm.org/D20602 Files: include/clang/AST/Type.h include/clang/Basic/DiagnosticSemaKinds.td lib/AST/Expr.cpp

[PATCH] D20650: [OpenMP] Codegen for target update directive.

2016-05-25 Thread Samuel Antao via cfe-commits
sfantao created this revision. sfantao added reviewers: ABataev, hfinkel, carlo.bertolli, arpith-jacob, kkwli0. sfantao added subscribers: cfe-commits, caomhin. This patch implements the code generation for the `target update` directive. The implemntation relies on the logic already in place for

Re: [PATCH] D20632: clang-format: [JS] Support shebang lines on the very first line.

2016-05-25 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 58529. mprobst added a comment. - use #include style shebang parsing. http://reviews.llvm.org/D20632 Files: lib/Format/FormatTokenLexer.cpp lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatTestJS.cpp

r270784 - [Sema] Use the failure bits introduced by r270781.

2016-05-25 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Wed May 25 17:38:36 2016 New Revision: 270784 URL: http://llvm.org/viewvc/llvm-project?rev=270784=rev Log: [Sema] Use the failure bits introduced by r270781. r270781 introduced the ability to track whether or not we might have had unmodeled side-effects during constant

[PATCH] D20647: Add flag to add InlineHint attribute on implicitly inline functions

2016-05-25 Thread Rudy Pons via cfe-commits
Ilod created this revision. Ilod added a subscriber: cfe-commits. Add two flags (-finline-implicit-hint and -fno-inline-implicit-hint) to allow to add InlineHint on implicitly inline functions (constexpr and member functions of class that was defined in the class body). This is needed to add

r270781 - [Sema] Note when we encounter a problem in ExprConstant.

2016-05-25 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Wed May 25 17:31:54 2016 New Revision: 270781 URL: http://llvm.org/viewvc/llvm-project?rev=270781=rev Log: [Sema] Note when we encounter a problem in ExprConstant. Currently, the constexpr evaluator is very conservative about unmodeled side-effects when we're evaluating an

Re: [PATCH] D18540: [Sema] Note when we've actually encountered a failure in ExprConstant, and take that into account when looking up objects.

2016-05-25 Thread George Burgess IV via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL270781: [Sema] Note when we encounter a problem in ExprConstant. (authored by gbiv). Changed prior to commit: http://reviews.llvm.org/D18540?vs=52834=58526#toc Repository: rL LLVM

Re: [PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

2016-05-25 Thread Richard Smith via cfe-commits
rsmith added a comment. Looks good other than the recent information about the version of OpenCL that actually specifies this. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7899 @@ +7898,3 @@ +// OpenCL v2.2 s2.1.2.3 - Vector Component Access +def

Re: [PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

2016-05-25 Thread Pirama Arumuga Nainar via cfe-commits
pirama added a comment. > > > I'm not suggesting it be treated as invalid. This extension is part of at > > > least OpenCL 2.1, but it's not part of OpenCL 1.0. `ext_vector_type` is > > > Clang's implementation of the OpenCL vector type. Therefore if the user > > > asks us to support OpenCL

Re: [PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

2016-05-25 Thread Pirama Arumuga Nainar via cfe-commits
pirama updated this revision to Diff 58525. pirama added a comment. Added warnings when rgba is used with OpenCL http://reviews.llvm.org/D20602 Files: include/clang/AST/Type.h include/clang/Basic/DiagnosticSemaKinds.td lib/AST/Expr.cpp lib/Sema/SemaExprMember.cpp

Re: [PATCH] D18035: [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-05-25 Thread Richard Smith via cfe-commits
rsmith added a comment. In http://reviews.llvm.org/D18035#437715, @rengolin wrote: > The 3.8.1 deadline is tomorrow and I'd really like to see these two patches > (plus the related fixes) in it, Realistically, this seems unlikely to make it in time. > or some LTS Linux distributions will

Re: [PATCH] D19708: [CGDebugInfo] Generate debug info for member calls in the context of the callee expression

2016-05-25 Thread Hal Finkel via cfe-commits
- Original Message - > From: "David Blaikie" > To: "Hal Finkel" > Cc: "Richard Smith" , "Adrian Prantl" > , "Duncan P. N. Exon Smith" > , "Eric Christopher" , > "Jun

Re: [PATCH] D19708: [CGDebugInfo] Generate debug info for member calls in the context of the callee expression

2016-05-25 Thread Hal Finkel via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL270775: [CGDebugInfo] Modify the preferred expression location for member calls. (authored by hfinkel). Changed prior to commit: http://reviews.llvm.org/D19708?vs=55610=58521#toc Repository: rL LLVM

r270775 - [CGDebugInfo] Modify the preferred expression location for member calls.

2016-05-25 Thread Hal Finkel via cfe-commits
Author: hfinkel Date: Wed May 25 17:08:27 2016 New Revision: 270775 URL: http://llvm.org/viewvc/llvm-project?rev=270775=rev Log: [CGDebugInfo] Modify the preferred expression location for member calls. If the callee has a valid location (not all do), then use that. Otherwise, fall back to the

r270774 - Fix rejects-valid on constexpr function that accesses a not-yet-defined 'extern

2016-05-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed May 25 17:06:25 2016 New Revision: 270774 URL: http://llvm.org/viewvc/llvm-project?rev=270774=rev Log: Fix rejects-valid on constexpr function that accesses a not-yet-defined 'extern const' variable. That variable might be defined as 'constexpr', so we cannot prove that a

Re: [PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

2016-05-25 Thread Richard Smith via cfe-commits
On Wed, May 25, 2016 at 2:20 PM, Aleksey Bader wrote: > On Wed, May 25, 2016 at 11:53 PM, Richard Smith > wrote: > >> On Wed, May 25, 2016 at 2:20 AM, Alexey Bader via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> bader added a

Re: [PATCH] D19739: Add a loop's debug location to its llvm.loop metadata

2016-05-25 Thread Hal Finkel via cfe-commits
hfinkel closed this revision. hfinkel added a comment. r270772, thanks! http://reviews.llvm.org/D19739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20630: [OpenCL] Allow -std=cl|CL1.1|CL1.2|CL2.0 in driver

2016-05-25 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:1587-1589 @@ -1579,3 +1586,4 @@ +.Case("cl", LangStandard::lang_opencl) .Case("CL1.1", LangStandard::lang_opencl11) .Case("CL1.2", LangStandard::lang_opencl12) .Case("CL2.0",

r270772 - Add a loop's debug location to its llvm.loop metadata

2016-05-25 Thread Hal Finkel via cfe-commits
Author: hfinkel Date: Wed May 25 16:53:24 2016 New Revision: 270772 URL: http://llvm.org/viewvc/llvm-project?rev=270772=rev Log: Add a loop's debug location to its llvm.loop metadata Getting accurate locations for loops is important, because those locations are used by the frontend to generate

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread Akira Hatanaka via cfe-commits
ahatanak added a comment. In http://reviews.llvm.org/D20407#439951, @rjmccall wrote: > The C standard is poorly-written in this area, but I think it would be > reasonable for CheckFunctionReturnType to just silently remove _Atomic. (You > will not be able to just re-use your new method there;

Re: [PATCH] D20630: [OpenCL] Allow -std=cl|CL1.1|CL1.2|CL2.0 in driver

2016-05-25 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:1587-1589 @@ -1579,3 +1586,4 @@ +.Case("cl", LangStandard::lang_opencl) .Case("CL1.1", LangStandard::lang_opencl11) .Case("CL1.2", LangStandard::lang_opencl12) .Case("CL2.0",

Re: [PATCH] D18035: [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-05-25 Thread David Majnemer via cfe-commits
majnemer added a comment. In http://reviews.llvm.org/D18035#434095, @DmitryPolukhin wrote: > One more friendly ping.. :( I think the best way to make progress on this is to refactor this patch along the lines @rsmith suggested back on May 3. http://reviews.llvm.org/D18035

Re: [PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

2016-05-25 Thread Aleksey Bader via cfe-commits
On Wed, May 25, 2016 at 11:53 PM, Richard Smith wrote: > On Wed, May 25, 2016 at 2:20 AM, Alexey Bader via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> bader added a subscriber: bader. >> bader added a comment. >> >> In http://reviews.llvm.org/D20602#438667,

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 58512. ahatanak added a comment. Rename variables. http://reviews.llvm.org/D20407 Files: include/clang/AST/Type.h lib/AST/Type.cpp lib/CodeGen/CGObjC.cpp lib/Sema/SemaObjCProperty.cpp test/CodeGenObjC/property-atomic-bool.m

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread John McCall via cfe-commits
rjmccall added a comment. In http://reviews.llvm.org/D20407#439887, @ahatanak wrote: > I reverted the changes I made in SemaDeclObjC.cpp as they weren't needed to > pass the regression tests I added. clang still asserts when it compiles an > objective-c method returning _Atomic and those

Re: [PATCH] D20347: Add support to clang-cl driver for /GS switch

2016-05-25 Thread Etienne Bergeron via cfe-commits
etienneb added a comment. This patch needs land after http://reviews.llvm.org/D20346. thx for the review. http://reviews.llvm.org/D20347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20347: Add support to clang-cl driver for /GS switch

2016-05-25 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 58502. etienneb marked an inline comment as done. etienneb added a comment. more tests http://reviews.llvm.org/D20347 Files: include/clang/Driver/CLCompatOptions.td lib/Driver/Tools.cpp test/Driver/cl-fallback.c test/Driver/cl-options.c Index:

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: lib/AST/Type.cpp:1282 @@ -1277,1 +1281,3 @@ +} + Optional Type::getObjCSubstitutions( ahatanak wrote: > I added getTypePtr() because the code didn't compile. Sure. Comment at:

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread Akira Hatanaka via cfe-commits
ahatanak marked 2 inline comments as done. ahatanak added a comment. I reverted the changes I made in SemaDeclObjC.cpp as they weren't needed to pass the regression tests I added. clang still asserts when it compiles an objective-c method returning _Atomic and those changes will become

r270754 - Revert r270748 "clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)"

2016-05-25 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed May 25 15:49:14 2016 New Revision: 270754 URL: http://llvm.org/viewvc/llvm-project?rev=270754=rev Log: Revert r270748 "clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)" It seems to have broken the sanitizer-windows

Re: [PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

2016-05-25 Thread Richard Smith via cfe-commits
On Wed, May 25, 2016 at 2:20 AM, Alexey Bader via cfe-commits < cfe-commits@lists.llvm.org> wrote: > bader added a subscriber: bader. > bader added a comment. > > In http://reviews.llvm.org/D20602#438667, @rsmith wrote: > > > I'm not suggesting it be treated as invalid. This extension is part of

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread Akira Hatanaka via cfe-commits
ahatanak marked 7 inline comments as done. Comment at: lib/AST/Type.cpp:1282 @@ -1277,1 +1281,3 @@ +} + Optional Type::getObjCSubstitutions( I added getTypePtr() because the code didn't compile. Comment at: lib/CodeGen/CGObjC.cpp:901

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 58495. ahatanak added a comment. Address John's review comments. http://reviews.llvm.org/D20407 Files: include/clang/AST/Type.h lib/AST/Type.cpp lib/CodeGen/CGObjC.cpp lib/Sema/SemaObjCProperty.cpp test/CodeGenObjC/property-atomic-bool.m

Re: [PATCH] D20630: [OpenCL] Allow -std=cl|CL1.1|CL1.2|CL2.0 in driver

2016-05-25 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:1587-1589 @@ -1579,3 +1586,4 @@ +.Case("cl", LangStandard::lang_opencl) .Case("CL1.1", LangStandard::lang_opencl11) .Case("CL1.2", LangStandard::lang_opencl12) .Case("CL2.0",

Re: [PATCH] D20338: [PCH] Fixed overridden files always invalidating preamble even when unchanged

2016-05-25 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Basic/FileManager.cpp:389 @@ -383,2 +388,3 @@ UFE->File.reset(); + UFE->IsVirtual = true; return UFE; Rather than adding this `IsVirtual` flag, could you just set `UFE->IsValid` to `true` here? It looks like

Re: [PATCH] D18488: [OpenMP] Parsing and sema support for the from clause

2016-05-25 Thread Samuel Antao via cfe-commits
sfantao added a comment. Hi Alexey, Thanks for the review! In http://reviews.llvm.org/D18488#438841, @ABataev wrote: > Missed a test for printing and serialization/deserialization Maybe it is `test/OpenMP/target_update_ast_print.cpp` what you were looking for? Let me know if not. Thanks

Re: [PATCH] D18488: [OpenMP] Parsing and sema support for the from clause

2016-05-25 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 58490. sfantao marked an inline comment as done. sfantao added a comment. - Rebase and remove changes from the nesting tests. http://reviews.llvm.org/D18488 Files: include/clang/AST/OpenMPClause.h include/clang/AST/RecursiveASTVisitor.h

Re: [PATCH] D20608: clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)

2016-05-25 Thread Hans Wennborg via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL270748: clang-cl: Treat dllimport explicit template instantiation definitions as… (authored by hans). Changed prior to commit: http://reviews.llvm.org/D20608?vs=58484=58488#toc Repository: rL LLVM

r270748 - clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)

2016-05-25 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed May 25 15:16:43 2016 New Revision: 270748 URL: http://llvm.org/viewvc/llvm-project?rev=270748=rev Log: clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811) This matches what MSVC does, and should make compiles faster by

Re: [PATCH] D18597: [OpenMP] Parsing and sema support for the to clause

2016-05-25 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 58486. sfantao marked 7 inline comments as done. sfantao added a comment. - Address comments from the last review by Alexey. http://reviews.llvm.org/D18597 Files: include/clang/AST/OpenMPClause.h include/clang/AST/RecursiveASTVisitor.h

Re: [PATCH] D18597: [OpenMP] Parsing and sema support for the to clause

2016-05-25 Thread Samuel Antao via cfe-commits
sfantao added a comment. Hi Alexey, Thanks for the review. Comment at: lib/Sema/SemaOpenMP.cpp:10218-10220 @@ +10217,5 @@ +Sema , DSAStackTy *DSAS, OpenMPClauseKind CKind, +ArrayRef VarList, SmallVector , +OMPClauseMappableExprCommon::MappableExprComponentLists , +

Re: [PATCH] D20608: clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)

2016-05-25 Thread Hans Wennborg via cfe-commits
hans updated this revision to Diff 58484. hans added a comment. Fix the "dllexport trumps" comment, and add a test. http://reviews.llvm.org/D20608 Files: lib/Sema/SemaTemplate.cpp test/CodeGenCXX/dllexport.cpp test/CodeGenCXX/dllimport.cpp Index: test/CodeGenCXX/dllimport.cpp

Re: [PATCH] D20608: clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)

2016-05-25 Thread Hans Wennborg via cfe-commits
hans added inline comments. Comment at: lib/Sema/SemaTemplate.cpp:7382 @@ +7381,3 @@ + if (A->getKind() == AttributeList::AT_DLLExport) { +// dllexport trumps dllexport here. +DLLImport = false; thakis wrote: > trumps _dllimport_ here > >

[PATCH] D20640: [AMDGPU] Set default dwarf version to 2

2016-05-25 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl created this revision. kzhuravl added a reviewer: tstellarAMD. kzhuravl added a subscriber: cfe-commits. Herald added a subscriber: kzhuravl. http://reviews.llvm.org/D20640 Files: lib/Driver/ToolChains.h test/Driver/amdgpu-toolchain.c Index: test/Driver/amdgpu-toolchain.c

Re: [PATCH] D20632: clang-format: [JS] Support shebang lines on the very first line.

2016-05-25 Thread Daniel Jasper via cfe-commits
djasper added a comment. That's the same for #include directives (with <>). Just turn the tokens into TT_ImplicitStringLiteral, same as is done for #includes. I am not saying it's better, but I don't think we should have to different approaches.. http://reviews.llvm.org/D20632

Re: [PATCH] D20608: clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)

2016-05-25 Thread Nico Weber via cfe-commits
thakis accepted this revision. This revision is now accepted and ready to land. Comment at: lib/Sema/SemaTemplate.cpp:7382 @@ +7381,3 @@ + if (A->getKind() == AttributeList::AT_DLLExport) { +// dllexport trumps dllexport here. +DLLImport = false;

Re: [PATCH] D20614: Remove trailing spaces in x86 intrinsic headers

2016-05-25 Thread Katya Romanova via cfe-commits
kromanova updated this revision to Diff 58472. kromanova added a comment. I attached full svn diff. Thank you Michael! I had to clean up the trailing spaces from doxygen comments (because it mess up our post-processing scripts), but since I was doing it, I decided to clean up the rest of the

Re: [PATCH] D20630: [OpenCL] Allow -std=cl|CL1.1|CL1.2|CL2.0 in driver

2016-05-25 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 58471. yaxunl added a comment. Revised as Richard suggested. http://reviews.llvm.org/D20630 Files: lib/Frontend/CompilerInvocation.cpp test/Driver/opencl.cl test/Frontend/stdlang.c Index: test/Frontend/stdlang.c

Re: Builder llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast is back to normal

2016-05-25 Thread Galina Kistanova via cfe-commits
A factory required a successful step of removing the llvm.obj directory, which could be missing in some cases. The fix is committed as r270773 Thanks Galina On Wed, May 25, 2016 at 12:22 PM, Sean Silva wrote: > What was the issue? > > On Wed, May 25, 2016 at 12:17 PM,

Re: [PATCH] D20621: [include-fixer] Create a mode in vim integration to show multiple potential headers.

2016-05-25 Thread Benjamin Kramer via cfe-commits
bkramer added inline comments. Comment at: include-fixer/tool/clang-include-fixer.py:84 @@ +83,3 @@ +index = 1; +for header in lines[1:]: + choices_message += "&" + str(index) + header + "\n" ioeric wrote: > If there is only one candidate, it doesn't

Re: [PATCH] D20621: [include-fixer] Create a mode in vim integration to show multiple potential headers.

2016-05-25 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: include-fixer/IncludeFixer.cpp:241 @@ +240,3 @@ + IncludeFixerContext + GetIncludeFixerContext(const clang::SourceManager , + clang::HeaderSearch ) { I think function name should start with lower

Re: [PATCH] D20632: clang-format: [JS] Support shebang lines on the very first line.

2016-05-25 Thread Martin Probst via cfe-commits
mprobst added a comment. How would I disable the formatting using that way? When I special case `parsePreprocessorDirective()`, consume the line, and return `LT_ImportStatement`, clang-format still tries to format tokens within the shebang. E.g. I get `#!/usr/bin / env node`, note the

Re: Builder llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast is back to normal

2016-05-25 Thread Sean Silva via cfe-commits
What was the issue? On Wed, May 25, 2016 at 12:17 PM, Galina Kistanova via llvm-commits < llvm-comm...@lists.llvm.org> wrote: > Hello, > > Builder > http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast > is back to normal. > Sorry for the noise. > > Thanks > >

Builder llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast is back to normal

2016-05-25 Thread Galina Kistanova via cfe-commits
Hello, Builder http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast is back to normal. Sorry for the noise. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org

RE: [PATCH] D20630: [OpenCL] Allow -std=CL|CL1.1|CL1.2|CL2.0 in driver

2016-05-25 Thread Liu, Yaxun (Sam) via cfe-commits
I will fix that. Thanks. Sam From: meta...@gmail.com [mailto:meta...@gmail.com] On Behalf Of Richard Smith Sent: Wednesday, May 25, 2016 2:54 PM To: Liu, Yaxun (Sam) ; reviews+d20630+public+1c58d99d1f368...@reviews.llvm.org Cc: alexey.ba...@intel.com; Anastasia Stulova

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

2016-05-25 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 58469. sfantao marked an inline comment as done. sfantao added a comment. - Add nestings test. http://reviews.llvm.org/D15944 Files: include/clang-c/Index.h include/clang/AST/RecursiveASTVisitor.h include/clang/AST/StmtOpenMP.h

Re: [PATCH] D20407: [CodeGen][ObjC] zero-ext an i1 value to i8

2016-05-25 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: include/clang/AST/Type.h:1084 @@ +1083,3 @@ + /// Strip typedefs and atomic from the given type. + QualType getDesugaredAtomicValueType(const ASTContext ) const; + Please name this getAtomicUnqualifiedType() and have

Re: [PATCH] D20630: [OpenCL] Allow -std=CL|CL1.1|CL1.2|CL2.0 in driver

2016-05-25 Thread Richard Smith via cfe-commits
On 25 May 2016 9:13 a.m., "Yaxun Liu via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > > yaxunl created this revision. > yaxunl added a reviewer: Anastasia. > yaxunl added subscribers: pxli168, bader, tstellarAMD, cfe-commits. > > Fix a regression which forbids using

[PATCH] D20635: clang-rename: fix renaming heap allocations

2016-05-25 Thread Miklos Vajna via cfe-commits
vmiklos created this revision. vmiklos added reviewers: klimek, cfe-commits. The check failed, 'Cla *C = new Cla();' was renamed 'D *C = new Cla();'. http://reviews.llvm.org/D20635 Files: clang-rename/USRLocFinder.cpp test/clang-rename/ConstructExpr.cpp Index:

Re: [PATCH] D20608: clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)

2016-05-25 Thread Hans Wennborg via cfe-commits
hans added a comment. Thanks for the review! In http://reviews.llvm.org/D20608#439480, @thakis wrote: > Do we have test coverage for `template class __declspec(dllexport) > codecvt;` somewhere already? Yes, that's covered by tests in CodeGenCXX/dllexport.cpp Comment at:

Re: [PATCH] D20608: clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)

2016-05-25 Thread Hans Wennborg via cfe-commits
hans updated this revision to Diff 58461. hans added a comment. tweaks http://reviews.llvm.org/D20608 Files: lib/Sema/SemaTemplate.cpp test/CodeGenCXX/dllexport.cpp test/CodeGenCXX/dllimport.cpp Index: test/CodeGenCXX/dllimport.cpp

Re: [PATCH] D20338: [PCH] Fixed overridden files always invalidating preamble even when unchanged

2016-05-25 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. You can probably find a way to test this by taking a look at unittests/Basic/VirtualFileSystemTest.cpp Repository: rL LLVM http://reviews.llvm.org/D20338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D19274: Compilation for Intel MCU (Part 2/3)

2016-05-25 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Hi, Comment at: lib/Driver/Tools.cpp:3657 @@ +3656,3 @@ + if (IsIAMCU && types::isCXX(Input.getType())) +D.Diag(diag::err_drv_cxx_not_supported) << getToolChain().getTriple().str(); + Taking a look at this again I don't think

Re: [PATCH] D20573: [libcxx] Allow explicit pthread opt-in

2016-05-25 Thread Ben Craig via cfe-commits
bcraig added a comment. r270735 http://reviews.llvm.org/D20573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20574: [libcxxabi] Allow explicit pthread opt-in

2016-05-25 Thread Ben Craig via cfe-commits
bcraig closed this revision. bcraig added a comment. r270732 http://reviews.llvm.org/D20574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

2016-05-25 Thread Pirama Arumuga Nainar via cfe-commits
pirama added a comment. To summarize, there are two scenarios where a warning is warranted when the source language is OpenCL: > > I'm not suggesting it be treated as invalid. This extension is part of at > > least OpenCL 2.1, but it's not part of OpenCL 1.0. `ext_vector_type` is > > Clang's

LLVM buildmaster will be restarted tonight

2016-05-25 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted after 6 PM Pacific time today. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20632: clang-format: [JS] Support shebang lines on the very first line.

2016-05-25 Thread Daniel Jasper via cfe-commits
djasper added a comment. Thinking some more, I think this is actually very close to what we do for #include(-like) statements. That is done in TokenAnnotator::parseLine() and TokenAnnotator::parseIncludeDirective(). Could you move the logic there? http://reviews.llvm.org/D20632

[libcxx] r270735 - [libcxx] Allow explicit pthread opt-in

2016-05-25 Thread Ben Craig via cfe-commits
Author: bcraig Date: Wed May 25 12:40:09 2016 New Revision: 270735 URL: http://llvm.org/viewvc/llvm-project?rev=270735=rev Log: [libcxx] Allow explicit pthread opt-in The existing pthread detection code in __config is pretty good for common operating systems. It doesn't allow cmake-time choices

Re: [PATCH] D20168: [CodeGen] Handle structs directly in AMDGPUABIInfo

2016-05-25 Thread Matt Arsenault via cfe-commits
arsenm added a comment. Also some tests for non-kernel functions. We might want to keep this as byval for calling those http://reviews.llvm.org/D20168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[libcxxabi] r270732 - Allow explicit pthread opt-in

2016-05-25 Thread Ben Craig via cfe-commits
Author: bcraig Date: Wed May 25 12:37:38 2016 New Revision: 270732 URL: http://llvm.org/viewvc/llvm-project?rev=270732=rev Log: Allow explicit pthread opt-in When building libcxxabi in tree (i.e. in llvm/projects/libcxxabi, along with llvm/projects/libcxx), libcxx's config_site.in doesn't get

Re: [PATCH] D20112: [OpenMP] Add support for the 'private pointer' flag to signal variables captured in target regions and used in first-private clauses.

2016-05-25 Thread Samuel Antao via cfe-commits
sfantao added a comment. Hi Alexey, Thanks for the review! Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:5630-5639 @@ -5599,6 +5629,12 @@ // type, the default is 'tofrom'. CurMapTypes.push_back(ElementType->isAggregateType()

Re: [PATCH] D20112: [OpenMP] Add support for the 'private pointer' flag to signal variables captured in target regions and used in first-private clauses.

2016-05-25 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 58453. sfantao marked an inline comment as done. sfantao added a comment. - Create function for the generation of the default map information. http://reviews.llvm.org/D20112 Files: lib/CodeGen/CGOpenMPRuntime.cpp

r270728 - Use new triple API to check comdat /NFC

2016-05-25 Thread Xinliang David Li via cfe-commits
Author: davidxl Date: Wed May 25 12:25:57 2016 New Revision: 270728 URL: http://llvm.org/viewvc/llvm-project?rev=270728=rev Log: Use new triple API to check comdat /NFC Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp URL:

[PATCH] D20632: clang-format: [JS] Support shebang lines on the very first line.

2016-05-25 Thread Martin Probst via cfe-commits
mprobst created this revision. mprobst added a reviewer: djasper. mprobst added a subscriber: cfe-commits. Herald added a subscriber: klimek. Shebang lines (`#!/bin/blah`) can be used in JavaScript scripts to indicate they should be run using e.g. node. This change treats # lines on the first

  1   2   >