[PATCH] D35849: [UBSan] Provide default blacklist filename for UBSan

2017-07-25 Thread Han Shen via Phabricator via cfe-commits
shenhan added a comment. Thanks for pointing out the relevant CLs. I agree that's the clearer and better solution. (The only concern is that it has been sitting there for 2 months. I'll check back.) In https://reviews.llvm.org/D35849#820473, @vsk wrote: > This won't do the right thing if more

[PATCH] D35854: Fix double destruction of objects when OpenMP construct is canceled

2017-07-25 Thread Mike Rice via Phabricator via cfe-commits
mikerice created this revision. When an omp for loop is canceled the constructed objects are being destructed twice. It looks like the desired code is: { Obj o; If (cancelled) branch-through-cleanups to cancel.exit. } [cleanups] cancel.exit: __kmpc_for_static_fini br cancel.cont (*)

[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin

2017-07-25 Thread Brian Sumner via Phabricator via cfe-commits
b-sumner added a comment. In https://reviews.llvm.org/D28691#820595, @rjmccall wrote: > In https://reviews.llvm.org/D28691#820541, @b-sumner wrote: > > > There are other languages for heterogeneous compute that have scopes, > > although not exposed quite as explicitly as OpenCL. For example AMD

[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin

2017-07-25 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D28691#820641, @b-sumner wrote: > In https://reviews.llvm.org/D28691#820595, @rjmccall wrote: > > > In https://reviews.llvm.org/D28691#820541, @b-sumner wrote: > > > > > There are other languages for heterogeneous compute that have scopes, >

r309036 - [StaticAnalyzer] LoopUnrolling - Attempt to fix a crash in r309006.

2017-07-25 Thread Peter Szecsi via cfe-commits
Author: szepet Date: Tue Jul 25 14:54:58 2017 New Revision: 309036 URL: http://llvm.org/viewvc/llvm-project?rev=309036&view=rev Log: [StaticAnalyzer] LoopUnrolling - Attempt to fix a crash in r309006. Modified: cfe/trunk/lib/StaticAnalyzer/Core/LoopUnrolling.cpp Modified: cfe/trunk/lib/Stat

[PATCH] D35824: [Sema] Implicitly apply the may_alias attribute to std::byte

2017-07-25 Thread David Majnemer via Phabricator via cfe-commits
majnemer updated this revision to Diff 108166. majnemer added a comment. - Address review comments https://reviews.llvm.org/D35824 Files: include/clang/AST/Type.h lib/AST/Type.cpp lib/CodeGen/CodeGenTBAA.cpp test/CodeGenCXX/std-byte.cpp Index: test/CodeGenCXX/std-byte.cpp

[PATCH] D35746: Make new PM honor -fdebug-info-for-profiling (clang side)

2017-07-25 Thread Dehao Chen via Phabricator via cfe-commits
danielcdh updated this revision to Diff 108174. danielcdh added a comment. update https://reviews.llvm.org/D35746 Files: lib/CodeGen/BackendUtil.cpp Index: lib/CodeGen/BackendUtil.cpp === --- lib/CodeGen/BackendUtil.cpp +++ lib

[PATCH] D28691: Add OpenCL 2.0 atomic builtin functions as Clang builtin

2017-07-25 Thread Tony Tye via Phabricator via cfe-commits
t-tye added inline comments. Comment at: include/clang/Basic/Builtins.def:717 +ATOMIC_BUILTIN(__opencl_atomic_fetch_max, "v.", "t") + #undef ATOMIC_BUILTIN Will the OpenCL 2.0 memory fences also be supported which also have a memory order and memory scope? ==

[PATCH] D35862: [clang] Add ARM64 support to armintr.h for MSVC compatibility

2017-07-25 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang created this revision. Herald added subscribers: kristof.beyls, javed.absar, aemerson. This fixes compiling with headers from the Windows SDK for ARM64. https://reviews.llvm.org/D35862 Files: lib/Headers/armintr.h Index: lib/Headers/armintr.h =

[PATCH] D35863: Use the allocator's pointers for deallocation in `std::list`

2017-07-25 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone created this revision. `pointer_traits::to_pointer(r)` is not required to return a deallocatable pointer; indeed generally it *cannot* determine a deallocatable representation without help from the allocator. Therefore, we must not rely on representations derived from `to_pointer` w

[PATCH] D35862: [clang] Add ARM64 support to armintr.h for MSVC compatibility

2017-07-25 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang added a comment. Refer http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053c/IHI0053C_acle_2_0.pdf for memory barriers. https://reviews.llvm.org/D35862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[PATCH] D35426: [clang] Add abi-breaking-checks support to clang

2017-07-25 Thread Mandeep Singh Grang via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL309049: [clang] Add abi-breaking-checks support to clang (authored by mgrang). Changed prior to commit: https://reviews.llvm.org/D35426?vs=106671&id=108180#toc Repository: rL LLVM https://reviews.ll

r309049 - [clang] Add abi-breaking-checks support to clang

2017-07-25 Thread Mandeep Singh Grang via cfe-commits
Author: mgrang Date: Tue Jul 25 16:00:02 2017 New Revision: 309049 URL: http://llvm.org/viewvc/llvm-project?rev=309049&view=rev Log: [clang] Add abi-breaking-checks support to clang Summary: You can now use REQUIRES:abi-breaking-checks in clang too Reviewers: chapuni, probinson, ddunbar, jroelof

Re: r309036 - [StaticAnalyzer] LoopUnrolling - Attempt to fix a crash in r309006.

2017-07-25 Thread Kostya Serebryany via cfe-commits
Looks like one more failure (this time under ubsan) remains in this code http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/6708/steps/check-clang%20ubsan/logs/stdio Please fix asap. /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/tools/clang/lib/StaticAnalyzer/

r309052 - clang/StaticAnalyzer/Core/PathSensitive/LoopUnrolling.h: Add a forward decl AnalysisManager, to unbreak modules build.

2017-07-25 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Tue Jul 25 16:23:17 2017 New Revision: 309052 URL: http://llvm.org/viewvc/llvm-project?rev=309052&view=rev Log: clang/StaticAnalyzer/Core/PathSensitive/LoopUnrolling.h: Add a forward decl AnalysisManager, to unbreak modules build. Modified: cfe/trunk/include/clang/Stati

[PATCH] D35824: [Sema] Implicitly apply the may_alias attribute to std::byte

2017-07-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM with a tweaked comment. Thanks! Comment at: lib/CodeGen/CodeGenTBAA.cpp:88-90 + // C++1z [intro.object]p3: If a complete object is created in storage + // associated w

r309054 - Reorder tests to match latest SD-6 draft.

2017-07-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jul 25 16:31:42 2017 New Revision: 309054 URL: http://llvm.org/viewvc/llvm-project?rev=309054&view=rev Log: Reorder tests to match latest SD-6 draft. Modified: cfe/trunk/test/Lexer/cxx-features.cpp Modified: cfe/trunk/test/Lexer/cxx-features.cpp URL: http://llvm.org

r309058 - [CodeGen] Correctly model std::byte's aliasing properties

2017-07-25 Thread David Majnemer via cfe-commits
Author: majnemer Date: Tue Jul 25 16:33:58 2017 New Revision: 309058 URL: http://llvm.org/viewvc/llvm-project?rev=309058&view=rev Log: [CodeGen] Correctly model std::byte's aliasing properties std::byte, when defined as an enum, needs to be given special treatment with regards to its aliasing pro

[PATCH] D35824: [Sema] Implicitly apply the may_alias attribute to std::byte

2017-07-25 Thread David Majnemer via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL309058: [CodeGen] Correctly model std::byte's aliasing properties (authored by majnemer). Changed prior to commit: https://reviews.llvm.org/D35824?vs=108166&id=108185#toc Repository: rL LLVM https:/

Re: r309058 - [CodeGen] Correctly model std::byte's aliasing properties

2017-07-25 Thread David Majnemer via cfe-commits
Should this go into 5.0 ? On Tue, Jul 25, 2017 at 4:33 PM, David Majnemer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: majnemer > Date: Tue Jul 25 16:33:58 2017 > New Revision: 309058 > > URL: http://llvm.org/viewvc/llvm-project?rev=309058&view=rev > Log: > [CodeGen] Correctly m

r309061 - [StaticAnalyzer] LoopUnrolling - Attempt #2 to fix a crash in r309006.

2017-07-25 Thread Peter Szecsi via cfe-commits
Author: szepet Date: Tue Jul 25 16:49:16 2017 New Revision: 309061 URL: http://llvm.org/viewvc/llvm-project?rev=309061&view=rev Log: [StaticAnalyzer] LoopUnrolling - Attempt #2 to fix a crash in r309006. Modified: cfe/trunk/lib/StaticAnalyzer/Core/LoopUnrolling.cpp Modified: cfe/trunk/lib/St

[clang-tools-extra] r309067 - [clang-tidy] Do not issue fixit for explicit template specializations

2017-07-25 Thread Felix Berger via cfe-commits
Author: flx Date: Tue Jul 25 17:45:41 2017 New Revision: 309067 URL: http://llvm.org/viewvc/llvm-project?rev=309067&view=rev Log: [clang-tidy] Do not issue fixit for explicit template specializations Summary: Do not issue fixit in UnnecessaryValueParamCheck if the function is an explicit templa

[PATCH] D35718: [clang-tidy] Do not issue fixit for explicit template specializations

2017-07-25 Thread Felix Berger via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL309067: [clang-tidy] Do not issue fixit for explicit template specializations (authored by flx). Changed prior to commit: https://reviews.llvm.org/D35718?vs=107786&id=108193#toc Repository: rL LLVM

[PATCH] D35746: Make new PM honor -fdebug-info-for-profiling (clang side)

2017-07-25 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc added inline comments. Comment at: lib/CodeGen/BackendUtil.cpp:843 PGOOptions PGOOpt; Maybe make this an optional to avoid the big predicate below? Comment at: lib/CodeGen/BackendUtil.cpp:847-859 if (PGOOpt.RunProfileGen)

[PATCH] D35862: [clang] Add ARM64 support to armintr.h for MSVC compatibility

2017-07-25 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. The Microsoft version of `intrin.h` includes a header named `arm64intr.h` (IIRC), I think it'd be better for compatibility if we also provided a file with the same name instead of reusing this one. https://reviews.llvm.org/D35862 ___

[PATCH] D35862: [clang] Add ARM64 support to armintr.h for MSVC compatibility

2017-07-25 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd accepted this revision. compnerd added a comment. This revision is now accepted and ready to land. Please split this out into `arm64intr.h` and include it from `intrin.h` under a `#if defined(_M_ARM64)` case before committing. https://reviews.llvm.org/D35862

[PATCH] D35538: [CodeGen][ARM] ARM runtime helper functions are not always soft-fp

2017-07-25 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added a comment. I think that the approach is reasonable. However, the test needs tweaking. The function and the call both are ambiguous in the match. Can you match the call sequence? Or explicitly the local label and then the call. https://reviews.llvm.org/D35538 _

[PATCH] D35862: [clang] Add ARM64 support to armintr.h for MSVC compatibility

2017-07-25 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang updated this revision to Diff 108208. Herald added a subscriber: mgorny. https://reviews.llvm.org/D35862 Files: lib/Headers/CMakeLists.txt lib/Headers/arm64intr.h lib/Headers/intrin.h Index: lib/Headers/intrin.h === --

[PATCH] D35862: [clang] Add ARM64 support to armintr.h for MSVC compatibility

2017-07-25 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang added a comment. Patch updated as per comments. https://reviews.llvm.org/D35862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35538: [CodeGen][ARM] ARM runtime helper functions are not always soft-fp

2017-07-25 Thread David Majnemer via Phabricator via cfe-commits
majnemer added inline comments. Comment at: lib/CodeGen/TargetInfo.cpp:5625 + // The Run-time ABI for the ARM Architecture section 4.1.2 requires + // AEABI-complying FP helper functions to use the base AAPCS + // These AEABI functions are expanded in the ARM llvm backend, all

r309081 - [clang] Add ARM64 support to armintr.h for MSVC compatibility

2017-07-25 Thread Mandeep Singh Grang via cfe-commits
Author: mgrang Date: Tue Jul 25 22:29:40 2017 New Revision: 309081 URL: http://llvm.org/viewvc/llvm-project?rev=309081&view=rev Log: [clang] Add ARM64 support to armintr.h for MSVC compatibility Summary: This fixes compiling with headers from the Windows SDK for ARM64. Reviewers: compnerd, ruiu,

[PATCH] D35862: [clang] Add ARM64 support to armintr.h for MSVC compatibility

2017-07-25 Thread Mandeep Singh Grang via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL309081: [clang] Add ARM64 support to armintr.h for MSVC compatibility (authored by mgrang). Changed prior to commit: https://reviews.llvm.org/D35862?vs=108208&id=108222#toc Repository: rL LLVM https

[PATCH] D34260: [StaticAnalyzer] Completely unrolling specific loops with known bound option

2017-07-25 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor added a comment. If you can't reproduce, you should try running a debug build through valgrind. It points out this issue: ==29522== Invalid read of size 4 ==29522==at 0x16EBED0: clang::LocationContext::getCurrentStackFrame() const (in /opt/clang/build/bin/clang-6.0) ==29522=

<    1   2