Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Tim Northover via cfe-commits
On 1 December 2015 at 10:42, James Molloy via cfe-commits wrote: > W.r.t the test-suite, that is a possibility. There are currently no > codegen-filecheck tests in the test-suite but there seems to be no reason I > can see why not. The disadvantage there for me is that

r254455 - Clang-format an 80-column violation.

2015-12-01 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Tue Dec 1 14:19:44 2015 New Revision: 254455 URL: http://llvm.org/viewvc/llvm-project?rev=254455=rev Log: Clang-format an 80-column violation. Modified: cfe/trunk/include/clang/AST/Decl.h Modified: cfe/trunk/include/clang/AST/Decl.h URL:

Re: [PATCH] D14779: Adding checker to detect excess padding in records

2015-12-01 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. > An analysis of llvm+clang+compiler-rt now only generates 16 excessive padding > reports in index.html. Should those be fixed or are they all false positives? Comment at: lib/StaticAnalyzer/Checkers/PaddingChecker.cpp:48 @@ +47,3 @@ +// The

Re: [PATCH] D15121: A new clang-tidy module to find calls to `std::swap`, and change them to use ADL

2015-12-01 Thread Marshall Clow via cfe-commits
mclow.lists updated the summary for this revision. mclow.lists updated this revision to Diff 41559. mclow.lists added a comment. Suggestions from @AaronBallman; now does the substitution correctly, and passes the tests. Note: The diagnostics that clang emits are still whacko.

r254464 - docs: Add design documentation for forward-edge CFI for indirect calls.

2015-12-01 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Tue Dec 1 15:58:54 2015 New Revision: 254464 URL: http://llvm.org/viewvc/llvm-project?rev=254464=rev Log: docs: Add design documentation for forward-edge CFI for indirect calls. Modified: cfe/trunk/docs/ControlFlowIntegrityDesign.rst Modified:

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

2015-12-01 Thread Carlo Bertolli via cfe-commits
carlo.bertolli created this revision. carlo.bertolli added reviewers: hfinkel, ABataev, rjmccall. carlo.bertolli added subscribers: sfantao, cfe-commits. carlo.bertolli set the repository for this revision to rL LLVM. This patch includes parsing and semantic analysis for 'omp distribute'

Re: [PATCH] D13263: Addition of __attribute__((pass_object_size)) to Clang

2015-12-01 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: lib/AST/MicrosoftMangle.cpp:1844-1857 @@ -1843,4 +1843,16 @@ // Happens for function pointer type arguments for example. -for (const QualType : Proto->param_types()) - mangleArgumentType(Arg, Range); +for (unsigned I

Re: [PATCH] D14639: LLDB JIT needs android vector passing rules.

2015-12-01 Thread Stephen Hines via cfe-commits
srhines commandeered this revision. srhines added a reviewer: ADodds. srhines added a comment. Commandeering, since I am going to upload a version with the updated tests. Repository: rL LLVM http://reviews.llvm.org/D14639 ___ cfe-commits mailing

[PATCH] D15127: Move _mm256_cvtps_ph and _mm256_cvtph_ps to immintrin.h.

2015-12-01 Thread Paul Robinson via cfe-commits
probinson created this revision. probinson added a reviewer: mkuper. probinson added a subscriber: cfe-commits. This more closely matches their locations as described by Intel documentation, and lets us remove a pair of redundant typedefs. http://reviews.llvm.org/D15127 Files:

Re: [PATCH] D15121: A new clang-tidy module to find calls to `std::swap`, and change them to use ADL

2015-12-01 Thread Richard via cfe-commits
LegalizeAdulthood added a subscriber: LegalizeAdulthood. LegalizeAdulthood added a comment. I'm wondering if there isn't an existing module that would be a good fit for this check. Why not in the modernize module? http://reviews.llvm.org/D15121

Re: r254423 - It appears that this horrible mutating copy constructor is unused. Kill it with fire.

2015-12-01 Thread Richard Smith via cfe-commits
On Tue, Dec 1, 2015 at 3:42 PM, Duncan P. N. Exon Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > > On 2015-Dec-01, at 09:15, Aaron Ballman via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > > > Author: aaronballman > > Date: Tue Dec 1 11:15:13 2015 > > New Revision:

Re: [PATCH] D15130: Fix the clang driver when "-nostdlib" is present

2015-12-01 Thread Duncan P. N. Exon Smith via cfe-commits
Testcase? > On 2015-Dec-01, at 14:58, Sumanth Gundapaneni via cfe-commits > wrote: > > sgundapa created this revision. > sgundapa added reviewers: vkalintiris, echristo. > sgundapa added a subscriber: cfe-commits. > > This patch is a fix to r252901 which changed

Re: r254423 - It appears that this horrible mutating copy constructor is unused. Kill it with fire.

2015-12-01 Thread Duncan P. N. Exon Smith via cfe-commits
> On 2015-Dec-01, at 09:15, Aaron Ballman via cfe-commits > wrote: > > Author: aaronballman > Date: Tue Dec 1 11:15:13 2015 > New Revision: 254423 > > URL: http://llvm.org/viewvc/llvm-project?rev=254423=rev > Log: > It appears that this horrible mutating copy

Re: [PATCH] D14731: [libcxx] Add clang thread safety annotations to mutex and lock_guard

2015-12-01 Thread James Robinson via cfe-commits
jamesr updated this revision to Diff 41581. jamesr added a comment. Updates the macros to avoid defining anything if _LIBCPP_THREAD_ANNOTATION is already defined and to define _LIBCPP_THREAD_ANNOTATION to nothing if __clang__ is not set, __has_attribute(acquire_capability) is not set, or

Re: [PATCH] D14731: [libcxx] Add clang thread safety annotations to mutex and lock_guard

2015-12-01 Thread James Robinson via cfe-commits
jamesr added a subscriber: aaron.ballman. jamesr added a comment. It looks like Aaron Ballman was involved with adding parsing for these attributes in clang - perhaps he has an idea of a better way to detect these than __has_attribute(acquire_capability). http://reviews.llvm.org/D14731

r254481 - [sanitizer coverage] document -fsanitize-coverage=trace-bb

2015-12-01 Thread Kostya Serebryany via cfe-commits
Author: kcc Date: Tue Dec 1 20:08:26 2015 New Revision: 254481 URL: http://llvm.org/viewvc/llvm-project?rev=254481=rev Log: [sanitizer coverage] document -fsanitize-coverage=trace-bb Modified: cfe/trunk/docs/SanitizerCoverage.rst Modified: cfe/trunk/docs/SanitizerCoverage.rst URL:

Re: [PATCH] D14731: [libcxx] Add clang thread safety annotations to mutex and lock_guard

2015-12-01 Thread James Robinson via cfe-commits
jamesr added a comment. In http://reviews.llvm.org/D14731#299152, @mclow.lists wrote: > Where are the tests? There aren't any yet. I investigated a few avenues for testing but none seem very useful. The most obvious testing strategy would be to write some code that fails the

[clang-tools-extra] r254477 - Force test to a target that supports thread_local

2015-12-01 Thread Matthias Braun via cfe-commits
Author: matze Date: Tue Dec 1 19:12:06 2015 New Revision: 254477 URL: http://llvm.org/viewvc/llvm-project?rev=254477=rev Log: Force test to a target that supports thread_local This should fix darwin bots. Modified: clang-tools-extra/trunk/test/clang-tidy/cert-static-object-exception.cpp

Re: [PATCH] D14639: LLDB JIT needs android vector passing rules.

2015-12-01 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. rnk added a comment. Were these changes made to AOSP Clang to match upstream GCC, or some custom Android version of GCC? Where would one go to find ground truth on how these types should be passed? http://reviews.llvm.org/D14639

Re: [PATCH] D15121: A new clang-tidy module to find calls to `std::swap`, and change them to use ADL

2015-12-01 Thread Richard Smith via cfe-commits
rsmith added a comment. In http://reviews.llvm.org/D15121#300033, @LegalizeAdulthood wrote: > I'm wondering if there isn't an existing module that would be a good fit for > this check. Why not in the modernize module? This isn't really modernization, it's a bug fix. ADL has always been the

Re: [PATCH] D15025: [ThinLTO] Option to invoke ThinLTO backend passes and importing

2015-12-01 Thread Mehdi AMINI via cfe-commits
joker.eph added inline comments. Comment at: lib/CodeGen/BackendUtil.cpp:290 @@ +289,3 @@ + // setup for LTO compiles invoked via the gold plugin and the llvm-lto tool. + if (!CodeGenOpts.ThinLTOIndexFile.empty() && !CodeGenOpts.DisableLLVMOpts) { +legacy::PassManager *MPM

Re: [PATCH] D14639: LLDB JIT needs android vector passing rules.

2015-12-01 Thread Stephen Hines via cfe-commits
srhines added a comment. In http://reviews.llvm.org/D14639#300077, @rnk wrote: > Were these changes made to AOSP Clang to match upstream GCC, or some custom > Android version of GCC? Where would one go to find ground truth on how these > types should be passed? These changes are reverting to

Re: [PATCH] D15130: Fix the clang driver when "-nostdlib" is present

2015-12-01 Thread Sumanth Gundapaneni via cfe-commits
sgundapa updated this revision to Diff 41582. http://reviews.llvm.org/D15130 Files: lib/Driver/Tools.cpp test/Driver/nostdlib.c Index: test/Driver/nostdlib.c === --- test/Driver/nostdlib.c +++ test/Driver/nostdlib.c @@ -9,3

r254485 - clang/test/Driver/crash-report-modules.m: Avoid using /tmp/.

2015-12-01 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Tue Dec 1 21:13:50 2015 New Revision: 254485 URL: http://llvm.org/viewvc/llvm-project?rev=254485=rev Log: clang/test/Driver/crash-report-modules.m: Avoid using /tmp/. Temporary directories should be controlled with $LIT_PRESERVES_TMP. Modified:

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Eric Christopher via cfe-commits
Hi James, I disagree with you completely on every point except that you need to write new tests. There is absolutely, as I said in the thread where I noticed this for the x86 intrinsics, that you cannot supply this test up and test it in the front and the back end separately. If you believe this

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread James Molloy via cfe-commits
Hi Eric, This isn't just a NEON intrinsics thing, and this isn't just an ARM/AArch64 thing. There needs to be some way to test the compiler from start to finish. Not being able to do so leaves serious coverage holes. Unit testing is great, but integration testing is required sometimes to ensure

Re: [PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

2015-12-01 Thread Reid Kleckner via cfe-commits
rnk added a comment. In http://reviews.llvm.org/D14180#299183, @martell wrote: > I tried testing __has_builtin(_InterlockedCompareExchangeAdd) as it seem to > not exist even when -fms-extensions is passed > Is this a bug or it is intended ? Neither Clang nor MSDN have anything by that name.

r254423 - It appears that this horrible mutating copy constructor is unused. Kill it with fire.

2015-12-01 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Dec 1 11:15:13 2015 New Revision: 254423 URL: http://llvm.org/viewvc/llvm-project?rev=254423=rev Log: It appears that this horrible mutating copy constructor is unused. Kill it with fire. Modified: cfe/trunk/include/clang/Sema/AttributeList.h Modified:

Re: [PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

2015-12-01 Thread Ismail Donmez via cfe-commits
On Tue, Dec 1, 2015 at 8:06 PM, Ismail Donmez wrote: > Hi, > > On Tue, Dec 1, 2015 at 7:45 PM, Reid Kleckner via cfe-commits > wrote: >> rnk added a comment. >> >> In http://reviews.llvm.org/D14180#299183, @martell wrote: >> >>> I tried testing

Re: [PATCH] D14180: enable -fms-extensions by default on the mingw-w64 target

2015-12-01 Thread Ismail Donmez via cfe-commits
Hi, On Tue, Dec 1, 2015 at 7:45 PM, Reid Kleckner via cfe-commits wrote: > rnk added a comment. > > In http://reviews.llvm.org/D14180#299183, @martell wrote: > >> I tried testing __has_builtin(_InterlockedCompareExchangeAdd) as it seem to >> not exist even when

Re: [PATCH] D13015: [X86] Make f16c intrinsics accessible through emmintrin.h, per Intel docs

2015-12-01 Thread Paul Robinson via cfe-commits
probinson added a comment. Thanks Michael! Moving the mm256 stuff to immintrin.h ought to work. What actually motivates this is mucking around with modularizing the intrinsic headers, and the immediate problem is the duplicate typedefs for __v8sf and __m256 (which are in both f16cintrin.h

[PATCH] D15121: A new clang-tidy module to find calls to `std::swap`, and change them to use ADL

2015-12-01 Thread Marshall Clow via cfe-commits
mclow.lists created this revision. mclow.lists added reviewers: klimek, aaron.ballman, chandlerc. mclow.lists added a subscriber: cfe-commits. Motivation: LLVM has many overloads of `std::swap` for its own types. This is technically forbidden by the standard, but is pervasive in the LLVM code

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread David Blaikie via cfe-commits
On Tue, Dec 1, 2015 at 9:56 AM, Renato Golin via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On 1 December 2015 at 17:23, James Molloy via cfe-commits > wrote: > > This isn't just a NEON intrinsics thing, and this isn't just an > ARM/AArch64 > > thing. There

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Renato Golin via cfe-commits
On 1 December 2015 at 17:23, James Molloy via cfe-commits wrote: > This isn't just a NEON intrinsics thing, and this isn't just an ARM/AArch64 > thing. There needs to be some way to test the compiler from start to finish. > Not being able to do so leaves serious

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

2015-12-01 Thread Nemanja Ivanovic via cfe-commits
nemanjai created this revision. nemanjai added reviewers: hfinkel, wschmidt, kbarton, rsmith. nemanjai added a subscriber: cfe-commits. nemanjai set the repository for this revision to rL LLVM. Herald added a subscriber: klimek. This patch adds support for the __float128 keyword and literals for

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Eric Christopher via cfe-commits
On Tue, Dec 1, 2015 at 9:23 AM James Molloy wrote: > Hi Eric, > > This isn't just a NEON intrinsics thing, and this isn't just an > ARM/AArch64 thing. There needs to be some way to test the compiler from > start to finish. Not being able to do so leaves serious coverage

Re: [PATCH] D15127: Move _mm256_cvtps_ph and _mm256_cvtph_ps to immintrin.h.

2015-12-01 Thread Michael Kuperstein via cfe-commits
mkuper accepted this revision. mkuper added a comment. This revision is now accepted and ready to land. Thanks Paul, LGTM. http://reviews.llvm.org/D15127 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D15140: Update clang to use the updated LLVM EH instructions

2015-12-01 Thread David Majnemer via cfe-commits
majnemer created this revision. majnemer added a reviewer: rnk. majnemer added a subscriber: cfe-commits. majnemer added a dependency: D15139: [IR] Reformulate LLVM's EH funclet IR. Depends on D15139. http://reviews.llvm.org/D15140 Files: lib/CodeGen/CGCall.cpp lib/CodeGen/CGCleanup.cpp

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Renato Golin via cfe-commits
On 1 December 2015 at 18:29, David Blaikie wrote: > Are they things the test-suite couldn't (either technically or > philosophically) cover, or only that it doesn't cover it at the moment, but > could do so? IMO, it's a philosophical issue. The test-suite is a whole-program

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread James Molloy via cfe-commits
Hi, > That would sort of defeat the point of having the testing and projects separated though - it would tie the tests together and produce most of the undesirable outcomes of having single end-to-end tests. End to end tests have significant disadvantages as we all know. However they do have

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Eric Christopher via cfe-commits
On Tue, Dec 1, 2015 at 10:43 AM James Molloy via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hi, > > > That would sort of defeat the point of having the testing and projects > separated though - it would tie the tests together and produce most of the > undesirable outcomes of having single

Re: [PATCH] D15121: A new clang-tidy module to find calls to `std::swap`, and change them to use ADL

2015-12-01 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. Also, even though the `--fix` done by the tool is (almost) correct, the display of the fixit hint by clang is really confusing, even wrong http://reviews.llvm.org/D15121 ___ cfe-commits mailing list

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread James Molloy via cfe-commits
You cannot test the intrinsic emission with the same quality when splitting the test in two. You miss testing the producer consumer relationship between the two components. I'm sorry that this use case appears to you as not qualifying. On Tue, 1 Dec 2015 at 18:45, Eric Christopher

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Eric Christopher via cfe-commits
Could you provide an example proving this? I answered your question with exactly how to split it up. On Tue, Dec 1, 2015, 10:54 AM James Molloy wrote: > You cannot test the intrinsic emission with the same quality when > splitting the test in two. You miss testing the

Re: [PATCH] D15025: [ThinLTO] Option to invoke ThinLTO backend passes and importing

2015-12-01 Thread Teresa Johnson via cfe-commits
tejohnson marked an inline comment as done. tejohnson added a comment. Updated patch coming shortly. Comment at: lib/CodeGen/BackendUtil.cpp:308 @@ +307,3 @@ +return; + } + joker.eph wrote: > It does not seem to be nicely integrated within the context of

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread David Blaikie via cfe-commits
On Tue, Dec 1, 2015 at 10:43 AM, Renato Golin wrote: > On 1 December 2015 at 18:29, David Blaikie wrote: > > Are they things the test-suite couldn't (either technically or > > philosophically) cover, or only that it doesn't cover it at the moment, >

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread James Molloy via cfe-commits
Hi, FWIW, I'm happy with moving these tests into the test-suite. They do make sense to be expressed in a compiler-neutral manner, even though some may test clang-specific behaviour. There is a UnitTests directory already, and adding the ability to run LIT tests should be simple within the new

r254439 - [MS ABI] Correctly mangle nullptr member pointers for variable templates

2015-12-01 Thread David Majnemer via cfe-commits
Author: majnemer Date: Tue Dec 1 13:13:51 2015 New Revision: 254439 URL: http://llvm.org/viewvc/llvm-project?rev=254439=rev Log: [MS ABI] Correctly mangle nullptr member pointers for variable templates Variable templates behave the same as class templates with regard to nullptr memeber

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Eric Christopher via cfe-commits
On Tue, Dec 1, 2015 at 10:45 AM Eric Christopher wrote: > On Tue, Dec 1, 2015 at 10:43 AM James Molloy via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Hi, >> >> > That would sort of defeat the point of having the testing and projects >> separated though - it would

Re: [PATCH] D15025: [ThinLTO] Option to invoke ThinLTO backend passes and importing

2015-12-01 Thread Teresa Johnson via cfe-commits
tejohnson updated this revision to Diff 41542. tejohnson added a comment. - Address Mehdi's comments. http://reviews.llvm.org/D15025 Files: include/clang/CodeGen/CodeGenAction.h include/clang/Driver/Options.td include/clang/Driver/Types.h include/clang/Frontend/CodeGenOptions.h

Re: [PATCH] D14980: PR18513: make gcc compatible layout for bit-fields with explicit aligned attribute

2015-12-01 Thread John McCall via cfe-commits
rjmccall added a comment. I don't mean the actual layout used by Windows targets; I mean the layout used by the ms_struct pragma / attribute. Comment at: lib/AST/RecordLayoutBuilder.cpp:1606 @@ -1605,1 +1605,3 @@ +} else if (ExplicitFieldAlign) + FieldOffset =

Re: [PATCH] D14871: [Power PC] fix calculating address of arguments on stack for variadic functions

2015-12-01 Thread John McCall via cfe-commits
rjmccall added a comment. Please feel free to commit after you make this last change. Comment at: lib/CodeGen/TargetInfo.cpp:216 @@ +215,3 @@ + } + else { +Addr = Address(Ptr, SlotSize); LLVM code style is to put the else on the same line as the closing

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Renato Golin via cfe-commits
On 1 December 2015 at 19:09, David Blaikie wrote: > Not sure I follow - I'm not suggesting adding objdump/instruction checking > to existing large programs in the test-suite, but adding other tests to the > test-suite that do this and have appropriate input for it to be a >

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread James Molloy via cfe-commits
Hi Renato, > by a non-trivial amount. Why do you think it would be non trivial? Some simple lit tests aren't exactly arduous on most targets. James On Tue, 1 Dec 2015 at 19:39, Renato Golin wrote: > On 1 December 2015 at 19:09, David Blaikie

r254446 - Avoid picking up system headers in unittest by providing a fake libstdc++ with a ridiculously high version number.

2015-12-01 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Dec 1 13:42:07 2015 New Revision: 254446 URL: http://llvm.org/viewvc/llvm-project?rev=254446=rev Log: Avoid picking up system headers in unittest by providing a fake libstdc++ with a ridiculously high version number. The host libstdc++ may be horribly broken and we want

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread David Blaikie via cfe-commits
On Tue, Dec 1, 2015 at 11:39 AM, Renato Golin wrote: > On 1 December 2015 at 19:09, David Blaikie wrote: > > Not sure I follow - I'm not suggesting adding objdump/instruction > checking > > to existing large programs in the test-suite, but adding

Re: [PATCH] D14872: PR25575: Make GCC 4.4+ comatible layout for packed bit-fileds of char type

2015-12-01 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2790 @@ -2790,1 +2789,3 @@ + "version 4.4 - the newer offset is used here">, + InGroup>; def

r254450 - Update for llvm api change.

2015-12-01 Thread Rafael Espindola via cfe-commits
Author: rafael Date: Tue Dec 1 13:51:03 2015 New Revision: 254450 URL: http://llvm.org/viewvc/llvm-project?rev=254450=rev Log: Update for llvm api change. Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp URL:

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread James Molloy via cfe-commits
Ok, understood. I think I'd be OK with demoting these tests to the test-suite, and dealing with the slightly lower amount of testing that comes with it if it means we can keep the clang tests in a nice shape. We'd need to ensure there were equivalent tests written that test only clang produced

r254451 - Add an accessor to Decl::LoadedFieldsFromExternalStorage for LLDB.

2015-12-01 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Tue Dec 1 13:54:07 2015 New Revision: 254451 URL: http://llvm.org/viewvc/llvm-project?rev=254451=rev Log: Add an accessor to Decl::LoadedFieldsFromExternalStorage for LLDB. Patch by Greg Clayton Reviewed by Doug Gregor Modified: cfe/trunk/include/clang/AST/Decl.h

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Renato Golin via cfe-commits
On 1 December 2015 at 19:53, James Molloy wrote: > I think I'd be OK with demoting these tests to the test-suite, and dealing > with the slightly lower amount of testing that comes with it if it means we > can keep the clang tests in a nice shape. If the tests are

Re: [PATCH] D7718: Itanium ABI: Properly mangle extern "C" template arguments

2015-12-01 Thread Yaron Keren via cfe-commits
yaron.keren added a subscriber: yaron.keren. yaron.keren added a comment. There is another copy of getEffectiveDeclContext in MicrosoftMangle.cpp which pre-commit was identical to this one. Should it get this commit as well to keep both identical? If so, could both copies of

r254394 - [analyzer] Fix IssueHash generation.

2015-12-01 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Dec 1 03:00:41 2015 New Revision: 254394 URL: http://llvm.org/viewvc/llvm-project?rev=254394=rev Log: [analyzer] Fix IssueHash generation. Differential Revision: http://reviews.llvm.org/D14919 Original patch by: Gyorgy Orban! Modified:

Re: [PATCH] D15090: [Static Analyzer] New checker hook: checkInitialState

2015-12-01 Thread Artem Dergachev via cfe-commits
NoQ added a subscriber: NoQ. NoQ added a comment. Yeah, that's what i had in mind. Additionally, `Decl` can be obtained as `Context.getStackFrame().getDecl()` (and in fact the `getStackFrame()` thing itself is of interest as well), so there's no need to pass it as an extra argument. On the

Re: [PATCH] D14919: Fix IssueHash generation

2015-12-01 Thread Gábor Horváth via cfe-commits
xazax.hun closed this revision. xazax.hun added a comment. Committed in r254394. http://reviews.llvm.org/D14919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r254392 - Remove superfluous StringRef casts, NFC.

2015-12-01 Thread Yaron Keren via cfe-commits
Author: yrnkrn Date: Tue Dec 1 02:14:39 2015 New Revision: 254392 URL: http://llvm.org/viewvc/llvm-project?rev=254392=rev Log: Remove superfluous StringRef casts, NFC. Modified: cfe/trunk/lib/CodeGen/MicrosoftCXXABI.cpp Modified: cfe/trunk/lib/CodeGen/MicrosoftCXXABI.cpp URL:

Re: [PATCH] D14872: PR25575: Make GCC 4.4+ comatible layout for packed bit-fileds of char type

2015-12-01 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin updated this revision to Diff 41510. DmitryPolukhin marked an inline comment as done. DmitryPolukhin added a comment. Don't call getDeclName() that it is not required. PTAL http://reviews.llvm.org/D14872 Files: include/clang/Basic/DiagnosticSemaKinds.td

Re: [PATCH] D13980: Add "x87" in x86 target feature map

2015-12-01 Thread Andrey Turetskiy via cfe-commits
aturetsk updated this revision to Diff 41511. aturetsk added a comment. Enable X87 back for all X86 processors. http://reviews.llvm.org/D13980 Files: lib/Basic/Targets.cpp test/CodeGen/attr-target-x86-mmx.c test/CodeGen/attr-target-x86.c Index: test/CodeGen/attr-target-x86.c

Re: [PATCH] D13980: Add "x87" in x86 target feature map

2015-12-01 Thread Andrey Turetskiy via cfe-commits
aturetsk added inline comments. Comment at: lib/Basic/Targets.cpp:2551 @@ -2547,3 +2550,3 @@ case CK_i386: case CK_i486: case CK_i586: "x87 instructions probably work" is more like it, and having feature x87 disabled would mean "x87 instructions

Re: [PATCH] D14980: PR18513: make gcc compatible layout for bit-fields with explicit aligned attribute

2015-12-01 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin updated this revision to Diff 41481. DmitryPolukhin added a comment. Added more testcases to cover combination of explicit alignment of bit-filed with packed attribute. Also added testing on ARM for bit-filed layout test. http://reviews.llvm.org/D14980 Files:

Re: [PATCH] D14727: [Driver] Adapt Linux::GCCVersion::Parse to match GCC 5 installations

2015-12-01 Thread Jonathan Roelofs via cfe-commits
jroelofs requested changes to this revision. jroelofs added a reviewer: jroelofs. jroelofs added a comment. This revision now requires changes to proceed. I'm getting a couple of test failures from this patch: Clang :: Driver/linux-header-search.cpp Clang :: Driver/solaris-header-search.cpp

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-01 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. Ping? http://reviews.llvm.org/D14653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14325: [clang-format] Do not align assignments that aren't after the same number of commas. (Closes: 25329)

2015-12-01 Thread Daniel Jasper via cfe-commits
djasper closed this revision. djasper added a comment. Submitted as r254406. Note that I had to make the struct "Change" public. How did this compile on your end? http://reviews.llvm.org/D14325 ___ cfe-commits mailing list

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread Renato Golin via cfe-commits
On 1 December 2015 at 11:44, James Molloy via cfe-commits wrote: > In summary, I agree with you that we need tests for both Clang and LLVM > separately. However I also think the full-trip tests add significant value > and wouldn't like to see them removed, and there's

Re: r254251 - ARM v8.1a adds Advanced SIMD instructions for Rounding Double Multiply

2015-12-01 Thread James Molloy via cfe-commits
Hi Eric, While I agree with you in principle, Alexandros has just pointed out to me that all the other NEON intrinsics have such -O3 tests, and thinking about it I do think they add value. They test the full-trip through the compiler and ensure that Clang and LLVM have matching ideas of the IR

r254407 - clang-format: treat Q_SIGNALS as an access modifier

2015-12-01 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Dec 1 06:05:04 2015 New Revision: 254407 URL: http://llvm.org/viewvc/llvm-project?rev=254407=rev Log: clang-format: treat Q_SIGNALS as an access modifier Patch by Alexander Richardson, thank you! Modified: cfe/trunk/lib/Format/FormatToken.h

Re: [PATCH] D15007: [analyzer] Improve modelling of nullptr_t in the analyzer. Fix PR25414.

2015-12-01 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. In http://reviews.llvm.org/D15007#298086, @dcoughlin wrote: > Gabor, thanks for taking a look at this! > > I'm not sure `RegionStore::getBinding()` is the right place to put this logic. > > First, not all dereferences of a `std::nullptr_t` value go through >

Re: [PATCH] D14872: PR25575: Make GCC 4.4+ comatible layout for packed bit-fileds of char type

2015-12-01 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin added a comment. This is another GCC ABI compatibility issue. If there is no more comments, could someone please approve this CL? http://reviews.llvm.org/D14872 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D14980: PR18513: make gcc compatible layout for bit-fields with explicit aligned attribute

2015-12-01 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin added a comment. I added more testcases and they all pass identically on GCC and clang with my patch. Please let me know if you think, that some cases are not covered or doesn't work with my patch. Perhaps we can reduce number of test-cases because some of them almost duplicates

r254406 - This fixes https://llvm.org/bugs/show_bug.cgi?id=25329, as well as

2015-12-01 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Dec 1 06:00:43 2015 New Revision: 254406 URL: http://llvm.org/viewvc/llvm-project?rev=254406=rev Log: This fixes https://llvm.org/bugs/show_bug.cgi?id=25329, as well as misalignments like the following: int a, b = 2; int c= 3; Patch by Beren Minor, thanks!

Re: [PATCH] D15007: [analyzer] Improve modelling of nullptr_t in the analyzer. Fix PR25414.

2015-12-01 Thread Gábor Horváth via cfe-commits
xazax.hun updated this revision to Diff 41494. xazax.hun added a comment. - Added the test case Devin suggested. - Implemented the fix Devin suggested. - Updated to latest trunk. http://reviews.llvm.org/D15007 Files: lib/StaticAnalyzer/Core/SValBuilder.cpp test/Analysis/nullptr.cpp Index:

Re: [PATCH] D14824: [PATCH] Add clang-tidy check for static or thread_local objects where construction may throw

2015-12-01 Thread Aaron Ballman via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Commit in r254415. Comment at: clang-tidy/utils/Matchers.h:26 @@ -25,1 +25,3 @@ +AST_MATCHER(FunctionDecl, isNoThrow) { + const auto *FnTy = Node.getType()->getAs(); alexfh wrote: > Anything

Re: [PATCH] D14871: [Power PC] fix calculating address of arguments on stack for variadic functions

2015-12-01 Thread Strahinja Petrovic via cfe-commits
spetrovic updated this revision to Diff 41498. spetrovic marked 3 inline comments as done. http://reviews.llvm.org/D14871 Files: lib/CodeGen/TargetInfo.cpp test/CodeGen/ppc-varargs-struct.c test/CodeGen/x86_64-arguments.c Index: test/CodeGen/x86_64-arguments.c

r254414 - clang-format: Make it possible to turn off comment reflowing.

2015-12-01 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Dec 1 07:28:53 2015 New Revision: 254414 URL: http://llvm.org/viewvc/llvm-project?rev=254414=rev Log: clang-format: Make it possible to turn off comment reflowing. Modified: cfe/trunk/include/clang/Format/Format.h cfe/trunk/lib/Format/ContinuationIndenter.cpp

[clang-tools-extra] r254415 - Add a new checker, cert-err58-cpp, that checks for static or thread_local objects that use a throwing constructor.

2015-12-01 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Dec 1 08:05:39 2015 New Revision: 254415 URL: http://llvm.org/viewvc/llvm-project?rev=254415=rev Log: Add a new checker, cert-err58-cpp, that checks for static or thread_local objects that use a throwing constructor. This check corresponds to the CERT secure

Re: [PATCH] D14872: PR25575: Make GCC 4.4+ comatible layout for packed bit-fileds of char type

2015-12-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:1046 @@ +1045,3 @@ + diag::note_attribute_packed_for_bitfield_offset_changed) +<< FD->getDeclName(); + No need to call getDeclName(), the diagnostic can accept a