Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-03-01 Thread David Blaikie via cfe-commits
dblaikie accepted this revision. dblaikie added a reviewer: dblaikie. dblaikie added a comment. This revision is now accepted and ready to land. Looks great - thanks! http://reviews.llvm.org/D16949 ___ cfe-commits mailing list

r262466 - [Sema] PR26444 fix crash when alignment value is >= 2**16

2016-03-01 Thread David Majnemer via cfe-commits
Author: majnemer Date: Wed Mar 2 00:48:47 2016 New Revision: 262466 URL: http://llvm.org/viewvc/llvm-project?rev=262466=rev Log: [Sema] PR26444 fix crash when alignment value is >= 2**16 Sema allows max values up to 2**28, use unsigned instead of unsiged short to hold values that large.

Re: [PATCH] D17794: [modules] addHeaderInclude() can't fail.

2016-03-01 Thread Davide Italiano via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL262463: [modules] addHeaderInclude() can't fail. (authored by davide). Changed prior to commit: http://reviews.llvm.org/D17794?vs=49578=49581#toc Repository: rL LLVM http://reviews.llvm.org/D17794

r262463 - [modules] addHeaderInclude() can't fail.

2016-03-01 Thread Davide Italiano via cfe-commits
Author: davide Date: Wed Mar 2 00:09:18 2016 New Revision: 262463 URL: http://llvm.org/viewvc/llvm-project?rev=262463=rev Log: [modules] addHeaderInclude() can't fail. Differential Revision:http://reviews.llvm.org/D17794 Modified: cfe/trunk/lib/Frontend/FrontendActions.cpp Modified:

Re: r262232 - Implement new interfaces for code-formatting when applying replacements.

2016-03-01 Thread Manuel Klimek via cfe-commits
On Wed, Mar 2, 2016 at 6:42 AM Daniel Jasper wrote: > On Tue, Mar 1, 2016 at 9:30 PM, Manuel Klimek wrote: > >> >> >> On Wed, Mar 2, 2016 at 6:20 AM Daniel Jasper wrote: >> >>> On Tue, Mar 1, 2016 at 9:12 PM, Daniel Jasper

Re: [PATCH] D17737: [PGO] change profile use cc1 option

2016-03-01 Thread David Li via cfe-commits
davidxl added a comment. I think we just need one cc1 option -fprofile-instrument-use-path=<>. An overloaded setPGOInstrumenter method can peak at the profile header and get the Profile flavor. http://reviews.llvm.org/D17737 ___ cfe-commits

Re: [PATCH] D17761: Added applyAllReplacementsAndFormat that works for multiple files.

2016-03-01 Thread Daniel Jasper via cfe-commits
djasper added a comment. I don't think this is the right abstraction: - Formatting so far is fundamentally per file. Grouping replacements per file is something that can be done outside of libFormat. - The logic to sort and deduplicate Replacements is important independent of whether

Re: r262232 - Implement new interfaces for code-formatting when applying replacements.

2016-03-01 Thread Daniel Jasper via cfe-commits
On Tue, Mar 1, 2016 at 9:30 PM, Manuel Klimek wrote: > > > On Wed, Mar 2, 2016 at 6:20 AM Daniel Jasper wrote: > >> On Tue, Mar 1, 2016 at 9:12 PM, Daniel Jasper wrote: >> >>> >>> >>> On Mon, Feb 29, 2016 at 8:49 AM, Manuel Klimek via

Re: [PATCH] D17385: clang-format: [JS] re-quote single or double quoted strings.

2016-03-01 Thread Martin Probst via cfe-commits
mprobst marked 2 inline comments as done. Comment at: unittests/Format/FormatTestJS.cpp:639-640 @@ -638,3 +638,4 @@ verifyFormat("var literal = 'hello ' +\n" - "'world';"); + "'worldworldworldworld';", +

Re: [PATCH] D17385: clang-format: [JS] re-quote single or double quoted strings.

2016-03-01 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 49579. mprobst added a comment. - Move code closer together by piping Replacements into the FormatTokenLexer. - remove sstream import - * Treat JavaScript single quoted string literals as tok::string_literal, not - Address review comments, mostly renaming

Re: r262232 - Implement new interfaces for code-formatting when applying replacements.

2016-03-01 Thread Manuel Klimek via cfe-commits
On Wed, Mar 2, 2016 at 6:20 AM Daniel Jasper wrote: > On Tue, Mar 1, 2016 at 9:12 PM, Daniel Jasper wrote: > >> >> >> On Mon, Feb 29, 2016 at 8:49 AM, Manuel Klimek via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> On Mon, Feb 29, 2016 at

Re: r262232 - Implement new interfaces for code-formatting when applying replacements.

2016-03-01 Thread Daniel Jasper via cfe-commits
On Tue, Mar 1, 2016 at 9:12 PM, Daniel Jasper wrote: > > > On Mon, Feb 29, 2016 at 8:49 AM, Manuel Klimek via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> On Mon, Feb 29, 2016 at 5:39 PM Chandler Carruth >> wrote: >> >>> On Mon, Feb 29, 2016

Re: [PATCH] D17385: clang-format: [JS] re-quote single or double quoted strings.

2016-03-01 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/Format.cpp:1131 @@ +1130,3 @@ +// and adjust ColumnWidth to take the added escapes into account. +FormatTok->ColumnWidth = ColumnWidth; + Maybe add a FIXME saying that we also need to modify the

r262460 - [OPENMP 4.5] Codegen for data members in 'reduction' clause.

2016-03-01 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Mar 1 22:57:40 2016 New Revision: 262460 URL: http://llvm.org/viewvc/llvm-project?rev=262460=rev Log: [OPENMP 4.5] Codegen for data members in 'reduction' clause. OpenMP 4.5 allows to privatize non-static data members of current class in non-static member functions.

Re: [PATCH] D17794: [modules] addHeaderInclude() can't fail.

2016-03-01 Thread Sean Silva via cfe-commits
silvas accepted this revision. silvas added a comment. This revision is now accepted and ready to land. Nice cleanup. LGTM. http://reviews.llvm.org/D17794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D17794: [modules] addHeaderInclude() can't fail.

2016-03-01 Thread Davide Italiano via cfe-commits
davide added a comment. As an added bonus, this simplifies the code a little bit. http://reviews.llvm.org/D17794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D17794: [modules] addHeaderInclude() can't fail.

2016-03-01 Thread Davide Italiano via cfe-commits
davide created this revision. davide added reviewers: silvas, rsmith, christof. davide added a subscriber: cfe-commits. I noticed that addHeaderInclude() returns bool although it can never fail. I find this a little bit weird from a semantic point of view. My best guess is that the 'bool'

Re: [PATCH] D17787: [Modules] Don't swallow errors when parsing optional attributes

2016-03-01 Thread Sean Silva via cfe-commits
silvas added a comment. This makes sense. LGTM. http://reviews.llvm.org/D17787 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17688: Fix missed leak from MSVC specific allocation functions

2016-03-01 Thread Alexander Riccio via cfe-commits
ariccio added a comment. In http://reviews.llvm.org/D17688#365951, @zaks.anna wrote: > ls ./clang/test/Analysis/malloc* Ah, ok. Would it be ok if (for _strdup & _alloca) I just do this at the beginning: #if defined(_WIN32) #define strdup _strdup #define alloca _alloca #endif

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-03-01 Thread Ryan Yee via cfe-commits
ryee88 updated this revision to Diff 49577. http://reviews.llvm.org/D16949 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaOverload.cpp test/SemaCXX/overload-call.cpp Index: test/SemaCXX/overload-call.cpp ===

Re: [PATCH] D17787: [Modules] Don't swallow errors when parsing optional attributes

2016-03-01 Thread Davide Italiano via cfe-commits
davide added a reviewer: rsmith. davide updated this revision to Diff 49575. davide added a comment. Added a test. Yes, with the patch we stop immediately if we fail to parse attributes, while the old code kept emitting diagnostics. I like the new behaviour better, but I'll defer the decision

Re: [clang-tools-extra] r261738 - [clang-tidy] introduce modernize-deprecated-headers check

2016-03-01 Thread Alexander Kornienko via cfe-commits
Kirill, FYI. On Thu, Feb 25, 2016 at 3:21 AM, Richard Smith wrote: > On Wed, Feb 24, 2016 at 5:36 AM, Alexander Kornienko via cfe-commits > wrote: > > Author: alexfh > > Date: Wed Feb 24 07:36:34 2016 > > New Revision: 261738 > > > > URL:

Re: [PATCH] D17488: Extend UnnecessaryCopyInitialization check to trigger on non-const copies that can be safely converted to const references.

2016-03-01 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/utils/FixItHintUtils.cpp:2 @@ +1,3 @@ +//===--- FixItHintUtils.cpp - +// clang-tidy---===// +// Please fix the line break. http://reviews.llvm.org/D17488

Re: [PATCH] D17488: Extend UnnecessaryCopyInitialization check to trigger on non-const copies that can be safely converted to const references.

2016-03-01 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good. Thanks! http://reviews.llvm.org/D17488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D17775: Add a few dllimport/dllexport tests. NFC

2016-03-01 Thread Reid Kleckner via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL262442: Add a few dllimport/dllexport tests. NFC (authored by rnk). Changed prior to commit: http://reviews.llvm.org/D17775?vs=49510=49570#toc Repository: rL LLVM http://reviews.llvm.org/D17775

r262442 - Add a few dllimport/dllexport tests. NFC

2016-03-01 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Mar 1 19:21:48 2016 New Revision: 262442 URL: http://llvm.org/viewvc/llvm-project?rev=262442=rev Log: Add a few dllimport/dllexport tests. NFC Summary: This change just adds tests for some corner cases of dllimport/dllexport, primarily for some static methods. We plan to

Re: [PATCH] D17385: clang-format: [JS] re-quote single or double quoted strings.

2016-03-01 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 49569. mprobst marked an inline comment as done. mprobst added a comment. - Move code closer together by piping Replacements into the FormatTokenLexer. - remove sstream import - * Treat JavaScript single quoted string literals as tok::string_literal, not -

Re: [PATCH] D17688: Fix missed leak from MSVC specific allocation functions

2016-03-01 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Of cause, we have regression tests for (almost) everything: ls ./clang/test/Analysis/malloc* http://reviews.llvm.org/D17688 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-03-01 Thread Jason Merrill via cfe-commits
On 03/01/2016 11:43 AM, Michael Matz wrote: Hi, On Mon, 29 Feb 2016, Jason Merrill wrote: Also this insistence that all of "trivially copyable" is already quite nicely specified in the C++ ABI is still not really relevant because C++ _is not the only language out there_. I'm not sure how

r262429 - [CMake] Add convenience target clang-test-depends to build test dependencies.

2016-03-01 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Mar 1 18:27:15 2016 New Revision: 262429 URL: http://llvm.org/viewvc/llvm-project?rev=262429=rev Log: [CMake] Add convenience target clang-test-depends to build test dependencies. This is useful when paired with the distribution targets to build prerequisites for

Re: [PATCH] D17787: [Modules] Don't swallow errors when parsing optional attributes

2016-03-01 Thread Sean Silva via cfe-commits
silvas added a comment. makes sense. can you include a testcase? I assume we are forgetting some sort of diagnostic without this patch. Also, if learning about Clang's modules, I would start with `addHeaderInclude` in lib/Frontend/FrontendActions.cpp. The module map stuff ultimately boils down

[PATCH] D17787: [Modules] Don't swallow errors when parsing optional attributes

2016-03-01 Thread Davide Italiano via cfe-commits
davide created this revision. davide added reviewers: silvas, doug.gregor. davide added a subscriber: cfe-commits. I found this by visual inspection while trying to get up-to-speed on modules, so I'm still uncertain how to test it. If the current one is really the actual behaviour, then parse

Re: [PATCH] D17385: clang-format: [JS] re-quote single or double quoted strings.

2016-03-01 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 49562. mprobst marked 6 inline comments as done. mprobst added a comment. - Move code closer together by piping Replacements into the FormatTokenLexer. - remove sstream import - * Treat JavaScript single quoted string literals as tok::string_literal, not -

Re: [PATCH] D17385: clang-format: [JS] re-quote single or double quoted strings.

2016-03-01 Thread Martin Probst via cfe-commits
mprobst added inline comments. Comment at: lib/Format/Format.cpp:1087 @@ +1086,3 @@ +(Style.Quotes == FormatStyle::QS_Single && + !FormatTok->TokenText.startswith("\"")) || +(Style.Quotes == FormatStyle::QS_Double && djasper wrote: > Are

Re: [PATCH] D17779: [CUDA] Emit host-side 'shadows' for device-side global variables

2016-03-01 Thread Artem Belevich via cfe-commits
tra updated this revision to Diff 49561. tra marked 9 inline comments as done. tra added a comment. Addressed Justin's comments. http://reviews.llvm.org/D17779 Files: lib/CodeGen/CGCUDANV.cpp lib/CodeGen/CGCUDARuntime.h lib/CodeGen/CodeGenModule.cpp test/CodeGenCUDA/device-stub.cu

Re: [PATCH] D17688: Fix missed leak from MSVC specific allocation functions

2016-03-01 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. I suggest to update the malloc regression test with these. http://reviews.llvm.org/D17688 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

RE: [PATCH] D17688: Fix missed leak from MSVC specific allocationfunctions

2016-03-01 Thread Alexander Riccio via cfe-commits
> I just don't understand why some functions made it in this patch and not > others (notably, why the lack of _mbsdup, which is documented on the same > page as others you are adding). It's partly because of the better wrapper class that was mentioned (in a discussion that I'm having trouble

Re: [PATCH] D17385: clang-format: [JS] re-quote single or double quoted strings.

2016-03-01 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: include/clang/Format/Format.h:606 @@ +605,3 @@ + /// \brief The QuoteStyle to use for JavaScript strings. + QuoteStyle Quotes; + As this only affects JavaScript and doesn't make any sense for Java or C++, I'd like to

r262420 - clang-cl: Implement initial limited support for precompiled headers.

2016-03-01 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Mar 1 17:16:44 2016 New Revision: 262420 URL: http://llvm.org/viewvc/llvm-project?rev=262420=rev Log: clang-cl: Implement initial limited support for precompiled headers. In the gcc precompiled header model, one explicitly runs clang with `-x c++-header` on a .h file to

Re: [PATCH] D17695: clang-cl: Implement initial limited support for precompiled headers.

2016-03-01 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis marked 3 inline comments as done. thakis added a comment. r262420, thanks! http://reviews.llvm.org/D17695 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D17695: clang-cl: Implement initial limited support for precompiled headers.

2016-03-01 Thread Hans Wennborg via cfe-commits
hans added a comment. lgtm2 Comment at: include/clang/Driver/Job.h:142 @@ +141,3 @@ +/// Like Command, but always pretends that the wrapped command succeeded. +/// the primary command crashes. +class ForceSuccessCommand : public Command { The second sentence

r262418 - Updated SSE41 builtin tests to more closely match the llvm fast-isel equivalent tests

2016-03-01 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Tue Mar 1 16:38:33 2016 New Revision: 262418 URL: http://llvm.org/viewvc/llvm-project?rev=262418=rev Log: Updated SSE41 builtin tests to more closely match the llvm fast-isel equivalent tests Modified: cfe/trunk/test/CodeGen/sse41-builtins.c Modified:

Re: [PATCH] D17779: [CUDA] Emit host-side 'shadows' for device-side global variables

2016-03-01 Thread Justin Lebar via cfe-commits
jlebar added inline comments. Comment at: lib/CodeGen/CGCUDANV.cpp:168 @@ -163,1 +167,3 @@ +/// of global scope device-side variables generated in this module +/// with the CUDA runtime. /// \code This is kind of hard to parse. How about rephrasing to something

Re: [PATCH] D17682: [X86] AMD Bobcat CPU (btver1) doesn't support XSAVE

2016-03-01 Thread Simon Pilgrim via cfe-commits
RKSimon updated this revision to Diff 49552. RKSimon added a comment. Thanks - I've removed adding XSAVE to btver2, as long as nobody thinks we need to keep it to be explicit? Repository: rL LLVM http://reviews.llvm.org/D17682 Files: lib/Basic/Targets.cpp

r262414 - Mangle extended qualifiers in the proper order and mangle the

2016-03-01 Thread John McCall via cfe-commits
Author: rjmccall Date: Tue Mar 1 16:18:03 2016 New Revision: 262414 URL: http://llvm.org/viewvc/llvm-project?rev=262414=rev Log: Mangle extended qualifiers in the proper order and mangle the ARC ownership-convention function type modifications. According to the Itanium ABI, vendor extended

Re: [PATCH] D17627: Fix false positives for for-loop-analysis warning

2016-03-01 Thread Steven Wu via cfe-commits
steven_wu updated this revision to Diff 49549. steven_wu added a comment. I did some more digging of the issue. It seems ObjCSubscriptRefExpr always rebuilds and hinds both base and key behind OpaqueValueExpr. See ObjCSubscriptOpBuilder::rebuildAndCaptureObject so it looks the AST generated is

Re: [PATCH] D17775: Add a few dllimport/dllexport tests. NFC

2016-03-01 Thread Sean Silva via cfe-commits
On Tue, Mar 1, 2016 at 1:00 PM, Warren Ristow < warren_ris...@playstation.sony.com> wrote: > wristow added a comment. > > In http://reviews.llvm.org/D17775#365611, @silvas wrote: > > > Random question: > > > > > We plan to enable dllimport/dllexport support for the PS4 > > > > > > How are you

RE: r262282 - Introduce -fembed-bitcode driver option

2016-03-01 Thread Daniel Sanders via cfe-commits
No problem. It seems I missed one of the relevant RUN lines on the first attempt. I've fixed that in r262409. From: steve...@apple.com [steve...@apple.com] Sent: 01 March 2016 17:26 To: Daniel Sanders Cc: cfe-commits@lists.llvm.org Subject: Re: r262282 -

r262409 - Explicitly select IAS on one more RUN line in new embed-bitcode.c test.

2016-03-01 Thread Daniel Sanders via cfe-commits
Author: dsanders Date: Tue Mar 1 15:57:22 2016 New Revision: 262409 URL: http://llvm.org/viewvc/llvm-project?rev=262409=rev Log: Explicitly select IAS on one more RUN line in new embed-bitcode.c test. This should fix clang-cmake-mips builder since MIPS does not have IAS enabled by default

Re: [PATCH] D17695: clang-cl: Implement initial limited support for precompiled headers.

2016-03-01 Thread Nico Weber via cfe-commits
thakis updated this revision to Diff 49544. thakis added a comment. forgot to `svn add` two new test files http://reviews.llvm.org/D17695 Files: include/clang/Basic/DiagnosticDriverKinds.td include/clang/Basic/DiagnosticGroups.td include/clang/Driver/CC1Options.td

Re: [PATCH] D17695: clang-cl: Implement initial limited support for precompiled headers.

2016-03-01 Thread Nico Weber via cfe-commits
thakis added inline comments. Comment at: lib/Driver/Driver.cpp:2355 @@ +2354,3 @@ + +// Add pch if needed: "If you do not specify an extension as part of the +// path name, an extension of .pch is assumed. " hans wrote: > Maybe add .pch if needed? It

r262402 - [clang-format] Detect constructor initializers preceded by `noexcept`.

2016-03-01 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Mar 1 15:41:58 2016 New Revision: 262402 URL: http://llvm.org/viewvc/llvm-project?rev=262402=rev Log: [clang-format] Detect constructor initializers preceded by `noexcept`. Patch by Erik Kessler, thank you. Modified: cfe/trunk/lib/Format/TokenAnnotator.cpp

Re: [PATCH] D17621: [clang-format] Detect constructor initializers preceded by `noexcept`.

2016-03-01 Thread Daniel Jasper via cfe-commits
djasper closed this revision. djasper added a comment. Submitted as r262402. Thank you. http://reviews.llvm.org/D17621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17695: clang-cl: Implement initial limited support for precompiled headers.

2016-03-01 Thread Nico Weber via cfe-commits
thakis updated the summary for this revision. thakis updated this revision to Diff 49541. thakis marked 5 inline comments as done. thakis added a comment. - rebase across jlebar's r261774 => implicit_inputs gone, ForceSuccessCommand is new - .h file is found relative to include paths =>

[PATCH] D17780: [CUDA] Do not generate unnecessary runtime init code.

2016-03-01 Thread Artem Belevich via cfe-commits
tra created this revision. tra added reviewers: jlebar, jingyue. tra added a subscriber: cfe-commits. Do not generate runtime init code if we don't have anything to init. http://reviews.llvm.org/D17780 Files: lib/CodeGen/CGCUDANV.cpp test/CodeGenCUDA/device-stub.cu Index:

Re: [PATCH] D15120: Add support for __float128 type to be used by targets that support it

2016-03-01 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: lib/Sema/SemaOverload.cpp:1658 @@ -1657,1 +1657,3 @@ } else if (FromType->isRealFloatingType() && ToType->isRealFloatingType()) { +// FIXME: disable conversions between long double and __float128 if +// their

Re: [PATCH] D17482: [clang-tidy] Allow tests to verify changes made to header files

2016-03-01 Thread Richard via cfe-commits
LegalizeAdulthood added a comment. Squeak http://reviews.llvm.org/D17482 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17775: Add a few dllimport/dllexport tests. NFC

2016-03-01 Thread Warren Ristow via cfe-commits
wristow added a comment. In http://reviews.llvm.org/D17775#365611, @silvas wrote: > Random question: > > > We plan to enable dllimport/dllexport support for the PS4 > > > How are you planning on codegenning them? The same way as we do in our > private branch? Yes, that's the intention.

[PATCH] D17779: [CUDA] Emit host-side 'shadows' for device-side global variables

2016-03-01 Thread Artem Belevich via cfe-commits
tra created this revision. tra added reviewers: jlebar, jingyue. tra added a subscriber: cfe-commits. .. and register them with CUDA runtime. This is needed for commonly used cudaMemcpy*() APIs that use address of host-side shadow to access their counterparts on device side. Fixes PR26340.

Re: r256907 - [modules] When a tag type that was imported from a module is referenced via an

2016-03-01 Thread Adrian Prantl via cfe-commits
Hi Richard, it looks like this commit causes an assertion failure in Sema when mixing PCH and modules. The following script is the smallest reproduction I could come up with. Could you please have a look? $ cat ../repro.sh mkdir -p usr/include mkdir -p usr/include/bsm mkdir -p

Re: [PATCH] D17682: [X86] AMD Bobcat CPU (btver1) doesn't support XSAVE

2016-03-01 Thread Yunzhong Gao via cfe-commits
ygao added a subscriber: ygao. Comment at: lib/Basic/Targets.cpp:2772 @@ -2771,2 +2771,3 @@ setFeatureEnabledImpl(Features, "xsaveopt", true); +setFeatureEnabledImpl(Features, "xsave", true); // FALLTHROUGH Is this line necessary? Line#3027 below in

Re: [PATCH] D17688: Fix missed leak from MSVC specific allocation functions

2016-03-01 Thread Aaron Ballman via cfe-commits
On Tue, Mar 1, 2016 at 1:42 PM, wrote: > I'd quite happily add them... but can I do it in another patch? I think I > could be more thorough that way. I'm not certain I understand the reasoning, but I also don't have strong feelings on whether it's this patch or another. I

Re: [PATCH] D17764: Add attributes for AMD GPU Tools

2016-03-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Some quick thoughts below. Comment at: include/clang/Basic/Attr.td:997 @@ +996,3 @@ + let Subjects = SubjectList<[Function], ErrorDiag, + "ExpectedKernelFunction">; +} I don't see any code that checks

Re: [PATCH] D17688: Fix missed leak from MSVC specific allocation functions

2016-03-01 Thread Alexander Riccio via cfe-commits
ariccio added a comment. Is this patch all clear to go? I hope I don't sound too pushy - I just don't want to lose momentum here. http://reviews.llvm.org/D17688 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D17772: [clang-tidy]: string_view of temporary string

2016-03-01 Thread Jonathan Coe via cfe-commits
Maybe config options could allow addition of owning and non-owning pairs? I'd like to do that as an extension if this path is approved. Jon On 1 March 2016 at 12:29, David Blaikie wrote: > Any way to/would it be worth broadening this with an annotation or some > such (or

Re: [PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-03-01 Thread Katya Romanova via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL262385: This patch adds doxygen comments for the intrinsincs in the header file… (authored by kromanova). Changed prior to commit: http://reviews.llvm.org/D17550?vs=48844=49534#toc Repository: rL

r262385 - This patch adds doxygen comments for the intrinsincs in the header file popcntintrin.h.

2016-03-01 Thread Ekaterina Romanova via cfe-commits
Author: kromanova Date: Tue Mar 1 14:04:57 2016 New Revision: 262385 URL: http://llvm.org/viewvc/llvm-project?rev=262385=rev Log: This patch adds doxygen comments for the intrinsincs in the header file popcntintrin.h. The doxygen comments are automatically generated based on Sony's intrinsics

Re: [PATCH] D15654: A Python code model for C++ used to drive code generators

2016-03-01 Thread Jonathan B Coe via cfe-commits
jbcoe added a comment. Has anyone had a chance to look over this? http://reviews.llvm.org/D15654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17775: Add a few dllimport/dllexport tests. NFC

2016-03-01 Thread Sean Silva via cfe-commits
silvas added a subscriber: silvas. silvas added a comment. Random question: > We plan to enable dllimport/dllexport support for the PS4 How are you planning on codegenning them? The same way as we do in our private branch? http://reviews.llvm.org/D17775

Re: [PATCH] D17741: adds __FILE_BASENAME__ builtin macro

2016-03-01 Thread Ben Craig via cfe-commits
bcraig added a comment. In http://reviews.llvm.org/D17741#365457, @thakis wrote: > > I think we can do this separately. A "basename" macro is easier for > > programmers to use and no build system change needed. > > > Hm, I would think that adding a flag to your CFLAGS is easier than getting >

Re: [PATCH] D17741: adds __FILE_BASENAME__ builtin macro

2016-03-01 Thread Sean Silva via cfe-commits
On Tue, Mar 1, 2016 at 10:54 AM, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > thakis added a comment. > > > I think we can do this separately. A "basename" macro is easier for > programmers to use and no build system change needed. > > > Hm, I would think that adding a flag

r262382 - Reword a misleading comment discussing landingpads and SEH

2016-03-01 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Mar 1 13:51:48 2016 New Revision: 262382 URL: http://llvm.org/viewvc/llvm-project?rev=262382=rev Log: Reword a misleading comment discussing landingpads and SEH SEH doesn't use landingpads anymore. Modified: cfe/trunk/lib/CodeGen/CGException.cpp Modified:

Re: [PATCH] D17752: [MSVC Compat] Correctly handle finallys nested within finallys

2016-03-01 Thread David Majnemer via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL262379: [MSVC Compat] Correctly handle finallys nested within finallys (authored by majnemer). Changed prior to commit: http://reviews.llvm.org/D17752?vs=49522=49525#toc Repository: rL LLVM

r262379 - [MSVC Compat] Correctly handle finallys nested within finallys

2016-03-01 Thread David Majnemer via cfe-commits
Author: majnemer Date: Tue Mar 1 13:42:53 2016 New Revision: 262379 URL: http://llvm.org/viewvc/llvm-project?rev=262379=rev Log: [MSVC Compat] Correctly handle finallys nested within finallys We'd lose track of the parent CodeGenFunction, leading us to get confused with regard to which function

Re: [PATCH] D17752: [MSVC Compat] Correctly handle finallys nested within finallys

2016-03-01 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D17752 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17752: [MSVC Compat] Correctly handle finallys nested within finallys

2016-03-01 Thread David Majnemer via cfe-commits
majnemer updated this revision to Diff 49522. majnemer added a comment. - Address Reid's review comments http://reviews.llvm.org/D17752 Files: lib/CodeGen/CGException.cpp lib/CodeGen/CodeGenFunction.cpp lib/CodeGen/CodeGenFunction.h test/CodeGen/exceptions-seh-finally.c Index:

Re: [PATCH] D16876: [OpenCL] Refine pipe builtin support

2016-03-01 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. LGTM! http://reviews.llvm.org/D16876 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-03-01 Thread Eric Christopher via cfe-commits
That's fine, thanks. On Tue, Mar 1, 2016 at 10:52 AM Romanova, Katya < katya_roman...@playstation.sony.com> wrote: > Hi Dmitri, > Thank you for your reply. I have double-checked that compiling a test > invoking an intrinsic that has C++ style doxygen comments in the > corresponding header

Re: [PATCH] D17737: [PGO] change profile use cc1 option

2016-03-01 Thread Rong Xu via cfe-commits
xur marked an inline comment as done. Comment at: lib/CodeGen/CodeGenModule.cpp:154 @@ +153,3 @@ +assert(!CodeGenOpts.ProfileInstrumentUsePath.empty() && + "Need to explicitly specify the profile name."); +auto ReaderOrErr = llvm::IndexedInstrProfReader::create(

Re: [PATCH] D17741: adds __FILE_BASENAME__ builtin macro

2016-03-01 Thread Nico Weber via cfe-commits
thakis added a comment. > I think we can do this separately. A "basename" macro is easier for > programmers to use and no build system change needed. Hm, I would think that adding a flag to your CFLAGS is easier than getting all your dependencies to use a clang-only new macro…

[PATCH] D17775: Add a few dllimport/dllexport tests. NFC

2016-03-01 Thread Warren Ristow via cfe-commits
wristow created this revision. wristow added reviewers: cfe-commits, rnk, majnemer. This change just adds tests for some corner cases of dllimport/dllexport, primarily for some static methods. We plan to enable dllimport/dllexport support for the PS4, and these additional tests are for points we

RE: [PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-03-01 Thread Romanova, Katya via cfe-commits
Hi Dmitri, Thank you for your reply. I have double-checked that compiling a test invoking an intrinsic that has C++ style doxygen comments in the corresponding header doesn't cause compile-time errors/warnings in -std=c89 (and in gnu89, c99, gnu99, c11, gnu11) modes. I will continue

Re: [PATCH] D15120: Add support for __float128 type to be used by targets that support it

2016-03-01 Thread Nemanja Ivanovic via cfe-commits
nemanjai updated this revision to Diff 49508. nemanjai added a comment. Removed questionable macro definitions. Renamed the test function for invalid conversions and changed the semantics so that it allows __float128 <-> long double conversions only if the two types have the same representation

Re: [PATCH] D17688: Fix missed leak from MSVC specific allocation functions

2016-03-01 Thread via cfe-commits
I'd quite happily add them... but can I do it in another patch? I think I could be more thorough that way. For the same reason, can we list all the microsoft memory allocating routines here? There are a thousand routines we might want to add, and then a few others (like _dupenv_s, _malloca, and

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-03-01 Thread David Blaikie via cfe-commits
dblaikie added a comment. Are there not any existing cases that test this diagnostic? Could you just update some existing cases to cover this? (it looks like, in the same file, the test case added for PR 6117 could be expanded to test this as well, perhaps?) It looks like that's the original

Re: [PATCH] D17741: adds __FILE_BASENAME__ builtin macro

2016-03-01 Thread Ben Craig via cfe-commits
bcraig added a comment. LGTM. You should probably wait for someone else to approve it though. http://reviews.llvm.org/D17741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17637: [PPC64][VSX] Add short, char, and bool data type for vec_vsx_ld and vec_vsx_st intrinsics

2016-03-01 Thread Kit Barton via cfe-commits
kbarton closed this revision. kbarton added a comment. Committed r262359 http://reviews.llvm.org/D17637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17741: adds __FILE_BASENAME__ builtin macro

2016-03-01 Thread Weiming Zhao via cfe-commits
weimingz added a comment. In http://reviews.llvm.org/D17741#364954, @thakis wrote: > In http://reviews.llvm.org/D17741#364931, @weimingz wrote: > > > In http://reviews.llvm.org/D17741#364756, @thakis wrote: > > > > > Instead of doing this, would it make sense to have a flag like > > >

r262359 - [PPC64][VSX] Add short, char, and bool data type for vec_vsx_ld and vec_vsx_st intrinsics

2016-03-01 Thread Kit Barton via cfe-commits
Author: kbarton Date: Tue Mar 1 12:11:28 2016 New Revision: 262359 URL: http://llvm.org/viewvc/llvm-project?rev=262359=rev Log: [PPC64][VSX] Add short, char, and bool data type for vec_vsx_ld and vec_vsx_st intrinsics Issue: https://llvm.org/bugs/show_bug.cgi?id=26720 Fix compile error when

Re: [PATCH] D17772: [clang-tidy]: string_view of temporary string

2016-03-01 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. As David noted, there are other similar classes like `llvm::StringRef`, `llvm::ArraryRef`, `gsl::span`, `StringPiece` (in various Google projects, e.g. https://github.com/google/re2/blob/master/re2/stringpiece.h) and numerous other in different code bases. I think, we

r262355 - [CLANG][AVX512][BUILTIN] Adding PSRL{DI|QI}{128|256|512} builtin

2016-03-01 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Tue Mar 1 11:49:03 2016 New Revision: 262355 URL: http://llvm.org/viewvc/llvm-project?rev=262355=rev Log: [CLANG][AVX512][BUILTIN] Adding PSRL{DI|QI}{128|256|512} builtin Differential Revision: http://reviews.llvm.org/D17714 Modified:

Re: [PATCH] D17752: [MSVC Compat] Correctly handle finallys nested within finallys

2016-03-01 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/CodeGen/CGException.cpp:1680-1682 @@ -1679,4 +1679,5 @@ StartFunction(GlobalDecl(), RetTy, Fn, FnInfo, Args, OutlinedStmt->getLocStart(), OutlinedStmt->getLocStart()); + CurCodeDecl = ParentCGF.CurCodeDecl;

Re: [PATCH] D17772: [clang-tidy]: string_view of temporary string

2016-03-01 Thread David Blaikie via cfe-commits
Any way to/would it be worth broadening this with an annotation or some such (or just a lost for now) of types that maintain references to their ctor params? (Eg: llvm arrayref, etc) On Mar 1, 2016 9:19 AM, "Jonathan B Coe via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > jbcoe created this

Re: [PATCH] D17772: [clang-tidy]: string_view of temporary string

2016-03-01 Thread David Blaikie via cfe-commits
dblaikie added a subscriber: dblaikie. dblaikie added a comment. Any way to/would it be worth broadening this with an annotation or some such (or just a lost for now) of types that maintain references to their ctor params? (Eg: llvm arrayref, etc) Repository: rL LLVM

Re: r262282 - Introduce -fembed-bitcode driver option

2016-03-01 Thread Steven Wu via cfe-commits
Great. Thanks for the fix. Steven > On Mar 1, 2016, at 9:24 AM, Daniel Sanders wrote: > > Hi, > > I've made a small change to the test case in r262350 to fix the > clang-cmake-mips builder. MIPS doesn't > enable the integrated assembler by default yet so it was

RE: r262282 - Introduce -fembed-bitcode driver option

2016-03-01 Thread Daniel Sanders via cfe-commits
Hi, I've made a small change to the test case in r262350 to fix the clang-cmake-mips builder. MIPS doesn't enable the integrated assembler by default yet so it was failing to find the -emit-obj option. I've fixed this by adding -fintegrated-as. From:

[PATCH] D17772: [clang-tidy]: string_view of temporary string

2016-03-01 Thread Jonathan B Coe via cfe-commits
jbcoe created this revision. jbcoe added reviewers: aaron.ballman, alexfh. jbcoe added a subscriber: cfe-commits. jbcoe set the repository for this revision to rL LLVM. Find instances where a string_view is constructed from a temporary string and replace the string_view with a string.

r262350 - Explicitly select IAS in new embed-bitcode.c test.

2016-03-01 Thread Daniel Sanders via cfe-commits
Author: dsanders Date: Tue Mar 1 11:15:11 2016 New Revision: 262350 URL: http://llvm.org/viewvc/llvm-project?rev=262350=rev Log: Explicitly select IAS in new embed-bitcode.c test. This should fix clang-cmake-mips builder since MIPS does not have IAS enabled by default (yet). Modified:

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-03-01 Thread Michael Matz via cfe-commits
Hi, On Mon, 29 Feb 2016, Jason Merrill wrote: > > Also this insistence that all of "trivially copyable" is already quite > > nicely specified in the C++ ABI is still not really relevant because > > C++ _is not the only language out there_. I'm not sure how often I > > have to repeat this

Re: [PATCH] D17491: Add performance check to flag function parameters of expensive to copy types that can be safely converted to const references.

2016-03-01 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/performance/UnnecessaryValueParamCheck.cpp:25-32 @@ +24,10 @@ +std::string paramNameOrIndex(StringRef Name, size_t Index) { + std::string Output; + llvm::raw_string_ostream Stream(Output); + if (!Name.empty()) { +Stream

  1   2   >