[PATCH] D40259: [libcxx] LWG2993: reference_wrapper

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: include/__functional_base:396 +!is_same<__uncvref_t<_Up>, reference_wrapper>::value +>::type, bool _IsNothrow = noexcept(__bind(_VSTD::declval<_Up>()))> +_LIBCPP_INLINE_VISIBILITY reference_wrapper(_Up&& __u) _NOEXCEPT_(_

r318736 - [MS] add an init test for thumbv7-windows-msvc

2017-11-21 Thread Martell Malone via cfe-commits
Author: martell Date: Tue Nov 21 00:09:59 2017 New Revision: 318736 URL: http://llvm.org/viewvc/llvm-project?rev=318736&view=rev Log: [MS] add an init test for thumbv7-windows-msvc Modified: cfe/trunk/test/Preprocessor/init.c Modified: cfe/trunk/test/Preprocessor/init.c URL: http://llvm.org

[PATCH] D40285: [MS] AARCH64 cleanup default WIN macros

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell created this revision. Herald added subscribers: kristof.beyls, javed.absar, rengolin, aemerson. _WIN32 is already defined in lib/Basic/Targets/OSTargets.h WIN32 and WIN64 are not real definitions they are typically defined by the system headers, _WIN32 and _WIN64 are the compiler definit

[PATCH] D40285: [MS] AARCH64 cleanup default WIN macros

2017-11-21 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. > WIN32 and WIN64 are not real definitions they are typically defined by the > system headers, _WIN32 and _WIN64 are the compiler definitions. Almost. In MSVC, WIN32 and WIN64 are never defined by the compiler, neither by system headers. Project files created by the I

[PATCH] D40285: [MS] AARCH64 cleanup default WIN macros

2017-11-21 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. ... so in general I wouldn't mind doing a change like this, but I'd like to make it consistent on ARM, i386 and x86_64 at the same time in that case, instead of just changing aarch64. Repository: rL LLVM https://reviews.llvm.org/D40285 __

[PATCH] D40285: [MS] AARCH64 cleanup default WIN macros

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell updated this revision to Diff 123728. Repository: rL LLVM https://reviews.llvm.org/D40285 Files: lib/Basic/Targets/AArch64.cpp lib/Basic/Targets/X86.h test/Preprocessor/predefined-macros.c Index: test/Preprocessor/predefined-macros.c

[PATCH] D40259: [libcxx] LWG2993: reference_wrapper

2017-11-21 Thread Tim Song via Phabricator via cfe-commits
tcanens added inline comments. Comment at: include/__functional_base:396 +!is_same<__uncvref_t<_Up>, reference_wrapper>::value +>::type, bool _IsNothrow = noexcept(__bind(_VSTD::declval<_Up>()))> +_LIBCPP_INLINE_VISIBILITY reference_wrapper(_Up&& __u) _NOEXCEPT_(

[PATCH] D40285: [MS] AARCH64 cleanup default WIN macros

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell added a comment. In https://reviews.llvm.org/D40285#931241, @mstorsjo wrote: > ... so in general I wouldn't mind doing a change like this, but I'd like to > make it consistent on ARM, i386 and x86_64 at the same time in that case, > instead of just changing aarch64. Thanks for the qui

[PATCH] D40285: [MS] AARCH64 cleanup default WIN macros

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell added a comment. ... also WINNT was defined for X86 so I just added that to note it. what do you suggest we do with that one. Repository: rL LLVM https://reviews.llvm.org/D40285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

r318739 - [x86][inline-asm] allow recognition of MPX regs inside ms inline-asm blob

2017-11-21 Thread Coby Tayree via cfe-commits
Author: coby Date: Tue Nov 21 00:50:10 2017 New Revision: 318739 URL: http://llvm.org/viewvc/llvm-project?rev=318739&view=rev Log: [x86][inline-asm] allow recognition of MPX regs inside ms inline-asm blob Differential Revision: https://reviews.llvm.org/D38445 Modified: cfe/trunk/lib/Basic/Tar

[PATCH] D38445: [x86][inline-asm] allow recognition of MPX regs inside ms inline-asm blob

2017-11-21 Thread coby via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318739: [x86][inline-asm] allow recognition of MPX regs inside ms inline-asm blob (authored by coby). Changed prior to commit: https://reviews.llvm.org/D38445?vs=117278&id=123730#toc Repository: rL L

[PATCH] D40285: [MS] AARCH64 cleanup default WIN macros

2017-11-21 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In https://reviews.llvm.org/D40285#931242, @martell wrote: > The easy one is to get rid of WIN64 because gcc doesn't even do that for > mingw. Yes it does, it behaves just the same as WIN32: $ x86_64-w64-mingw32-gcc -E -dM - < /dev/null | grep WIN64 #define _WIN6

[PATCH] D39886: [ASTImporter] Fix wrong conflict detections for unnamed structures

2017-11-21 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin requested changes to this revision. a.sidorin added a comment. This revision now requires changes to proceed. Hello Takafumi, Could you investigate the patch https://reviews.llvm.org/D30876? It should fix same issue. However, it also handles conflict resolution. I accidentally forgot

[PATCH] D40285: [MS] AARCH64 cleanup default WIN macros

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell added a comment. In https://reviews.llvm.org/D40285#931248, @mstorsjo wrote: > I'm a little divided - either we remove both WIN32 and WIN64 from all mingw > configurations, or we add the missing WIN32 for x86_64 mingw. Removing would > be the strictly correct thing to do, but I'm sure i

[PATCH] D36390: Fix overloaded static functions in SemaCodeComplete

2017-11-21 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added inline comments. Comment at: cfe/trunk/lib/Sema/SemaOverload.cpp:6365 cast(FD)->getParent(), ObjectType, - ObjectClassification, Args.slice(1), CandidateSet, + ObjectClassification, Functi

[PATCH] D40259: [libcxx] LWG2993: reference_wrapper

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: include/__functional_base:396 +!is_same<__uncvref_t<_Up>, reference_wrapper>::value +>::type, bool _IsNothrow = noexcept(__bind(_VSTD::declval<_Up>()))> +_LIBCPP_INLINE_VISIBILITY reference_wrapper(_Up&& __u) _NOEXCEPT_(_

[PATCH] D29930: Add `__reference_binds_to_temporary` trait for checking safe reference initialization.

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF marked an inline comment as done. EricWF added inline comments. Comment at: test/SemaCXX/type-traits.cpp:2102-2116 + using LRef = ConvertsToRef; + using RRef = ConvertsToRef; + using CLRef = ConvertsToRef; + using LongRef = ConvertsToRef; + { int arr[T((__is_construct

[PATCH] D40288: [clang-format] Add option to group multiple #include blocks when sorting includes

2017-11-21 Thread Krzysztof Kapusta via Phabricator via cfe-commits
KrzysztofKapusta created this revision. KrzysztofKapusta added a project: clang-tools-extra. Herald added a subscriber: klimek. This patch allows grouping multiple #include blocks together and sort all includes as one big block. Additionally, sorted includes can be regrouped after sorting based o

[PATCH] D40270: [Modules TS] Added re-export support

2017-11-21 Thread Hamza Sood via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318744: [Modules TS] Added module re-export support. (authored by hamzasood). Changed prior to commit: https://reviews.llvm.org/D40270?vs=123666&id=123736#toc Repository: rL LLVM https://reviews.llv

r318744 - [Modules TS] Added module re-export support.

2017-11-21 Thread Hamza Sood via cfe-commits
Author: hamzasood Date: Tue Nov 21 01:42:42 2017 New Revision: 318744 URL: http://llvm.org/viewvc/llvm-project?rev=318744&view=rev Log: [Modules TS] Added module re-export support. This implements [dcl.modules.export] from the C++ Modules TS, which lets a module re-export another module with the

[PATCH] D35894: [clangd] Code hover for Clangd

2017-11-21 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov requested changes to this revision. ilya-biryukov added a comment. This revision now requires changes to proceed. I haven't looked into the `getHover` method's body yet, but here are some comments about other parts. Good work, BTW, this looks close to being ready. ===

[PATCH] D40279: [libcxxabi][demangler] Add demangling for __attribute__((abi_tag))

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: src/cxa_demangle.cpp:10 +// FIXME: (possibly) incomplete list of features that clang mangles that this +// file does not yet support: Awesome comment! If your awesomeness knows no bound, I would love to add currently-f

[PATCH] D29930: Add `__reference_binds_to_temporary` trait for checking safe reference initialization.

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 123741. EricWF added a comment. - Address spelling errors pointed out during review. https://reviews.llvm.org/D29930 Files: docs/LanguageExtensions.rst include/clang/Basic/TokenKinds.def include/clang/Basic/TypeTraits.h lib/Parse/ParseDeclCXX.cpp l

[PATCH] D35755: [Solaris] gcc toolchain handling revamp

2017-11-21 Thread Rainer Orth via Phabricator via cfe-commits
ro added a comment. In https://reviews.llvm.org/D35755#931120, @krytarowski wrote: > Do we still target Oracle Solaris or SmartOS? Just wondering and noted the > domain change in e-mail. Both, I'd say ;-) They still have much common heritage and the vast majority of linker/toolchain work on

[PATCH] D40285: [MINGW] normalize WIN32 macros

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell updated this revision to Diff 123747. martell edited the summary of this revision. martell added a comment. [MINGW] normalize WIN32 macros Repository: rL LLVM https://reviews.llvm.org/D40285 Files: lib/Basic/Targets.cpp lib/Basic/Targets.h lib/Basic/Targets/AArch64.cpp lib/Ba

[PATCH] D40285: [MINGW] normalize WIN32 macros

2017-11-21 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo accepted this revision. mstorsjo added a comment. This revision is now accepted and ready to land. LGTM Comment at: test/Preprocessor/predefined-macros.c:200 +// CHECK-X86-WIN: #define _WIN32 1 +// CHECK-X86-WIN-NOT: #define _WIN64 1 +// CHECK-X86-WIN-NOT: #define WINN

r318750 - [Analyzer] Non-determinism: stable iteration on indirect goto LabelDecl's

2017-11-21 Thread Aleksei Sidorin via cfe-commits
Author: a.sidorin Date: Tue Nov 21 03:05:28 2017 New Revision: 318750 URL: http://llvm.org/viewvc/llvm-project?rev=318750&view=rev Log: [Analyzer] Non-determinism: stable iteration on indirect goto LabelDecl's CFG wass built in non-deterministic order due to the fact that indirect goto labels' de

[PATCH] D40073: [Analyzer] Non-determinism: don't sort indirect goto LabelDecl's by addresses

2017-11-21 Thread Aleksei Sidorin via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318750: [Analyzer] Non-determinism: stable iteration on indirect goto LabelDecl's (authored by a.sidorin). Changed prior to commit: https://reviews.llvm.org/D40073?vs=123558&id=123750#toc Repository:

[PATCH] D40285: [MINGW] normalize WIN32 macros

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell updated this revision to Diff 123751. martell added a comment. reorder test checks Repository: rL LLVM https://reviews.llvm.org/D40285 Files: lib/Basic/Targets.cpp lib/Basic/Targets.h lib/Basic/Targets/AArch64.cpp lib/Basic/Targets/AArch64.h lib/Basic/Targets/ARM.cpp lib/

[PATCH] D40285: [MINGW] normalize WIN32 macros

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell added a comment. @mstorsjo can you confirm this new order looks good to you? Repository: rL LLVM https://reviews.llvm.org/D40285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

r318752 - [CodeGen] Generate TBAA type descriptors in a more reliable manner

2017-11-21 Thread Ivan A. Kosarev via cfe-commits
Author: kosarev Date: Tue Nov 21 03:18:06 2017 New Revision: 318752 URL: http://llvm.org/viewvc/llvm-project?rev=318752&view=rev Log: [CodeGen] Generate TBAA type descriptors in a more reliable manner This patch introduces a couple of helper functions that make it possible to handle the caching l

[PATCH] D40285: [MINGW] normalize WIN32 macros

2017-11-21 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo accepted this revision. mstorsjo added a comment. LGTM Repository: rL LLVM https://reviews.llvm.org/D40285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39953: [CodeGen] Generate TBAA type descriptors in a more reliable manner

2017-11-21 Thread Ivan Kosarev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318752: [CodeGen] Generate TBAA type descriptors in a more reliable manner (authored by kosarev). Changed prior to commit: https://reviews.llvm.org/D39953?vs=123563&id=123754#toc Repository: rL LLVM

r318753 - [Analyzer] Revert r318750 because incorrect files were added for commit.

2017-11-21 Thread Aleksei Sidorin via cfe-commits
Author: a.sidorin Date: Tue Nov 21 03:20:07 2017 New Revision: 318753 URL: http://llvm.org/viewvc/llvm-project?rev=318753&view=rev Log: [Analyzer] Revert r318750 because incorrect files were added for commit. Sorry for the noise. Removed: cfe/trunk/test/Analysis/cfg-indirect-goto-determinis

[PATCH] D40073: [Analyzer] Non-determinism: don't sort indirect goto LabelDecl's by addresses

2017-11-21 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Thank you for the patch!~ In https://reviews.llvm.org/D40073#930470, @a.sidorin wrote: > By the way, is there a common way to write tests for non-determinism for LLVM > test suite? I guess the most recent update on this subject is in this thread: https://lists.llvm.org/p

[PATCH] D40256: [ARM] disable FPU features when using soft floating point.

2017-11-21 Thread Keith Walker via Phabricator via cfe-commits
keith.walker.arm added inline comments. Comment at: lib/Driver/ToolChains/Arch/ARM.cpp:406 +const bool HasVFPv4 = (std::find(ItBegin, ItEnd, "+vfpv4") != ItEnd); +const bool HasFParmv8 = (std::find(ItBegin, ItEnd, "+fp-armv8") != ItEnd); +const bool HasFullFP16 = (

r318754 - [Analyzer] Stable iteration on indirect goto LabelDecl's to avoid non-determinism (attempt 2)

2017-11-21 Thread Aleksei Sidorin via cfe-commits
Author: a.sidorin Date: Tue Nov 21 03:27:47 2017 New Revision: 318754 URL: http://llvm.org/viewvc/llvm-project?rev=318754&view=rev Log: [Analyzer] Stable iteration on indirect goto LabelDecl's to avoid non-determinism (attempt 2) CFG wass built in non-deterministic order due to the fact that ind

r318755 - [MINGW] normalize WIN32 macros

2017-11-21 Thread Martell Malone via cfe-commits
Author: martell Date: Tue Nov 21 03:28:29 2017 New Revision: 318755 URL: http://llvm.org/viewvc/llvm-project?rev=318755&view=rev Log: [MINGW] normalize WIN32 macros move _WIN64 and _WIN32 defines to lib/Basic/Targets/OSTargets.h move WIN32, WIN64 and __MINGW64__ to addMinGWDefines fixes __MINGW6

[PATCH] D40285: [MINGW] normalize WIN32 macros

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318755: [MINGW] normalize WIN32 macros (authored by martell). Changed prior to commit: https://reviews.llvm.org/D40285?vs=123751&id=123755#toc Repository: rL LLVM https://reviews.llvm.org/D40285 Fil

[PATCH] D39673: Toolchain: Normalize dwarf, sjlj and seh eh

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell updated this revision to Diff 123758. martell added a comment. updated to HEAD. added a NOT msvc test Repository: rL LLVM https://reviews.llvm.org/D39673 Files: docs/ClangCommandLineReference.rst include/clang/Basic/LangOptions.def include/clang/Driver/Options.td include/clan

[PATCH] D39673: Toolchain: Normalize dwarf, sjlj and seh eh

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell added a comment. In https://reviews.llvm.org/D39673#929986, @mstorsjo wrote: > I'm not sure if this is the right thing to do. Since the exception handling > model more or less also defines what ABI the code conforms to, I can see it > being useful to know what exception handling mode is

[PATCH] D39049: [analyzer] Fix wrong calculation of offset in ArrayBoundsV2

2017-11-21 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun requested changes to this revision. xazax.hun added a comment. This revision now requires changes to proceed. In https://reviews.llvm.org/D39049#928620, @danielmarjamaki wrote: > > So what are the arguments that are passed to getSimplifiedOffset() in > that case? 0? That does not see

[PATCH] D39673: Toolchain: Normalize dwarf, sjlj and seh eh

2017-11-21 Thread Martell Malone via Phabricator via cfe-commits
martell added a comment. Just as a note there is still a lot to be desired here. I do not particularly like the `UseSEHExceptions` function default and the actual macro definition guards should be based on the current `ExceptionModel` because we set that in `lib/CodeGen/BackendUtil.cpp`. This w

[PATCH] D40295: -fsanitize=vptr warnings on bad static types in dynamic_cast and typeid

2017-11-21 Thread Stephan Bergmann via Phabricator via cfe-commits
sberg created this revision. Herald added a subscriber: kubamracek. ...when such an operation is done on an object during con-/destruction. This adds a test case to compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp that, unlike the existing test cases there, wants to detect multiple UBSan war

[PATCH] D40276: Add -finstrument-function-entry-bare flag

2017-11-21 Thread Egor Pasko via Phabricator via cfe-commits
pasko accepted this revision. pasko added a comment. This revision is now accepted and ready to land. Instrumenting the function entry post-inlining, without function exit, and with no parameters is exactly what we need. The `__cyg_profile_func_enter_bare` sounds good to me as a name. Thank you!

[PATCH] D40295: -fsanitize=vptr warnings on bad static types in dynamic_cast and typeid

2017-11-21 Thread Stephan Bergmann via Phabricator via cfe-commits
sberg added a comment. Some items I'm unclear about: - Should those additional calls to EmitTypeCheck be restricted via those SkippedChecks or not? - Maybe there's a better way to add tests for this than to try shoehorn it into the existing vptr.cpp? https://reviews.llvm.org/D40295 __

[PATCH] D39886: [ASTImporter] Fix wrong conflict detections for unnamed structures

2017-11-21 Thread Takafumi Kubota via Phabricator via cfe-commits
tk1012 added a comment. Oh, yes. https://reviews.llvm.org/D30876 is motivated by the same problem. The notable difference between this patch and https://reviews.llvm.org/D30876 is that ASTImporter should check the conflict resolution for the unnamed structs/unions in a record context or not. T

[PATCH] D40013: [DeclPrinter] Allow printing fully qualified name of function declaration

2017-11-21 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff accepted this revision. sepavloff added a comment. This revision is now accepted and ready to land. LGTM. Thanks! https://reviews.llvm.org/D40013 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

[PATCH] D40299: [Complex] Don't use __div?c3 when building with fast-math.

2017-11-21 Thread Paul Walker via Phabricator via cfe-commits
paulwalker-arm created this revision. Plant an inline version of "((ac+bd)/(cc+dd)) + i((bc-ad)/(cc+dd))" instead. https://reviews.llvm.org/D40299 Files: lib/CodeGen/CGExprComplex.cpp test/CodeGen/complex-math.c Index: test/CodeGen/complex-math.c ===

[PATCH] D34848: Driver: Don't mix system tools with devtoolset tools on RHEL

2017-11-21 Thread Tom Stellard via Phabricator via cfe-commits
tstellar added a comment. Ping. https://reviews.llvm.org/D34848 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40281: [Clang][OpenMP] New clang/libomptarget map interface: new function signatures, clang-side

2017-11-21 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Repository: rL LLVM https://reviews.llvm.org/D40281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

[PATCH] D40301: [clangd] Ensure preamble outlives the AST

2017-11-21 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. In-memory preambles will not be copied anymore, so we need to make sure they outlive the AST. https://reviews.llvm.org/D40301 Files: clangd/ClangdUnit.cpp clangd/ClangdUnit.h Index: clangd/ClangdUnit.h ===

[PATCH] D40302: Avoid copying the data of in-memory preambles

2017-11-21 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. Preambles are large and we should prefer not to copy it. https://reviews.llvm.org/D40302 Files: include/clang/Frontend/PrecompiledPreamble.h lib/Frontend/PrecompiledPreamble.cpp Index: lib/Frontend/PrecompiledPreamble.cpp ==

[PATCH] D39886: [ASTImporter] Fix wrong conflict detections for unnamed structures

2017-11-21 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. No need to apologize. Thank you for your work anyway. Even if the bug-fixing part of this patch will be omitted, I'd still like to add your tests into the test suite. https://reviews.llvm.org/D39886 ___ cfe-commits maili

[PATCH] D39722: [ASTImporter] Support TypeTraitExpr Importing

2017-11-21 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Hello Aaron, This patch is OK for me but could you please take a look at ASTMatchers changes? https://reviews.llvm.org/D39722 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D39722: [ASTImporter] Support TypeTraitExpr Importing

2017-11-21 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun requested changes to this revision. xazax.hun added a comment. This revision now requires changes to proceed. The checker documentation should be updated as well. Comment at: include/clang/ASTMatchers/ASTMatchers.h:2251 +// will generate TypeTraitExpr <...> 'int' +co

r318763 - [OpenMP] Consistently use cubin extension for nvlink

2017-11-21 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Tue Nov 21 06:44:45 2017 New Revision: 318763 URL: http://llvm.org/viewvc/llvm-project?rev=318763&view=rev Log: [OpenMP] Consistently use cubin extension for nvlink This was previously done in some places, but for example not for bundling so that single object compilation w

[PATCH] D40250: [OpenMP] Consistently use cubin extension for nvlink

2017-11-21 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Hahnfeld marked an inline comment as done. Closed by commit rL318763: [OpenMP] Consistently use cubin extension for nvlink (authored by Hahnfeld). Changed prior to commit: https://reviews.llvm.org/D40250?vs=123649&id=1237

[libcxxabi] r318765 - [demangler] Document some features that the demangler doesn't yet support, NFC

2017-11-21 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Tue Nov 21 07:04:08 2017 New Revision: 318765 URL: http://llvm.org/viewvc/llvm-project?rev=318765&view=rev Log: [demangler] Document some features that the demangler doesn't yet support, NFC Modified: libcxxabi/trunk/src/cxa_demangle.cpp libcxxabi/trunk/test/test_deman

r318767 - Add target triples to openmp-offload-gpu.c

2017-11-21 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Tue Nov 21 07:06:28 2017 New Revision: 318767 URL: http://llvm.org/viewvc/llvm-project?rev=318767&view=rev Log: Add target triples to openmp-offload-gpu.c This might fix the failure on Green Dragon. Modified: cfe/trunk/test/Driver/openmp-offload-gpu.c Modified: cfe/tr

[PATCH] D37187: [Analyzer] Fix Bug 25609 - Assertion UNREACHABLE: 'Unexpected ProgramPoint' with widen-loops=true

2017-11-21 Thread Henry Wong via Phabricator via cfe-commits
MTC updated this revision to Diff 123783. MTC added a comment. Herald added subscribers: a.sidorin, rnkovacs. Update diff, use the SourceLocation of the first element of the entered block as the argument of `PathDiagnosticLocation`. https://reviews.llvm.org/D37187 Files: lib/StaticAnalyzer/C

[PATCH] D40279: [libcxxabi][demangler] Add demangling for __attribute__((abi_tag))

2017-11-21 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington updated this revision to Diff 123787. erik.pilkington added a comment. In this new patch: - Update the comment BNF to show the new attribute, fix comment formatting - Move call to parse_abi_tag_seq() from parse_unqualified_name() to parse_operator_name() to more closely model BNF

[PATCH] D40279: [libcxxabi][demangler] Add demangling for __attribute__((abi_tag))

2017-11-21 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington marked 5 inline comments as done. erik.pilkington added inline comments. Comment at: src/cxa_demangle.cpp:10 +// FIXME: (possibly) incomplete list of features that clang mangles that this +// file does not yet support: EricWF wrote: > Awesome co

[PATCH] D37187: [Analyzer] Fix Bug 25609 - Assertion UNREACHABLE: 'Unexpected ProgramPoint' with widen-loops=true

2017-11-21 Thread Henry Wong via Phabricator via cfe-commits
MTC marked an inline comment as done. MTC added inline comments. Comment at: lib/StaticAnalyzer/Core/PathDiagnostic.cpp:694 + } else if (Optional BE = P.getAs()) { +CFGElement BlockFront = BE->getBlock()->front(); +if (BlockFront.getKind() == CFGElement::Statement) { ---

[PATCH] D39722: [ASTImporter] Support TypeTraitExpr Importing

2017-11-21 Thread Takafumi Kubota via Phabricator via cfe-commits
tk1012 updated this revision to Diff 123792. tk1012 added a comment. Hello Gábor, Thank you for responding. I move the definition of the mather `typeTraitExpr` into unittests/AST/ASTImporterTest.cpp. I also slightly modify the test code. https://reviews.llvm.org/D39722 Files: lib/AST/ASTIm

[PATCH] D40068: Implement more accurate penalty & trade-offs while breaking protruding tokens.

2017-11-21 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. Generally, this indeed improves the situation (though I cannot say much about the code itself, it is still too subtle for my shallow knowledge of clang-format). But it seems to give some strange looking result with long comments: it seems like the decision is made at each

[PATCH] D40182: [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/JSONExpr.h:62 +// Array and Object also have typed indexing accessors for easy traversal: +// if (json::obj* Opts = O.array("options")) +// if (Optional Font = Opts->string("font")) ioeric wrote: > It's no

[PATCH] D40182: [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 123794. sammccall added a comment. Address comment. https://reviews.llvm.org/D40182 Files: clangd/JSONExpr.cpp clangd/JSONExpr.h unittests/clangd/JSONExprTests.cpp Index: unittests/clangd/JSONExprTests.cpp ==

[PATCH] D40276: Add -finstrument-function-entry-bare flag

2017-11-21 Thread Matthew Cary via Phabricator via cfe-commits
mattcary added a comment. It looks like there also has to be a change to llvm/lib/Transforms/Utils/EntryExitInstrumenter.cpp? Index: lib/Transforms/Utils/EntryExitInstrumenter.cpp = - lib/Transforms/Utils/EntryExitInstrumenter.cpp(revi

[PATCH] D40182: [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D40182 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D33589: clang-format: consider not splitting tokens in optimization

2017-11-21 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. In https://reviews.llvm.org/D33589#924716, @klimek wrote: > One interesting trade-off I'm running into: > My gut feeling is that we really want to make local decisions about whether > we want to break/reflow - this makes the code significantly simpler (IMO), > and handles

[PATCH] D40044: [CodeGen] convert math libcalls/builtins to equivalent LLVM intrinsics

2017-11-21 Thread Sanjay Patel via Phabricator via cfe-commits
spatel added a comment. Ping. https://reviews.llvm.org/D40044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D33589: clang-format: consider not splitting tokens in optimization

2017-11-21 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. In https://reviews.llvm.org/D33589#925903, @klimek wrote: > I think this patch doesn't handle a couple of cases that I'd like to see > handled. A counter-proposal with different trade-offs is in > https://reviews.llvm.org/D40068. It may be simpler (though not to my eyes,

[PATCH] D40279: [libcxxabi][demangler] Add demangling for __attribute__((abi_tag))

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. Thanks. https://reviews.llvm.org/D40279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[clang-tools-extra] r318774 - [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 08:00:53 2017 New Revision: 318774 URL: http://llvm.org/viewvc/llvm-project?rev=318774&view=rev Log: [clangd] Add parsing and value inspection to JSONExpr. Summary: This will replace the places where we're using YAMLParser to parse JSON now: - the new marshall

[PATCH] D40182: [clangd] Add parsing and value inspection to JSONExpr.

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318774: [clangd] Add parsing and value inspection to JSONExpr. (authored by sammccall). Repository: rL LLVM https://reviews.llvm.org/D40182 Files: clang-tools-extra/trunk/clangd/JSONExpr.cpp clang

[PATCH] D40310: Restructure how we break tokens.

2017-11-21 Thread Manuel Klimek via Phabricator via cfe-commits
klimek created this revision. This fixes some bugs in the reflowing logic and splits out the concerns of reflowing from BreakableToken. Things to do after this patch: - Refactor the breakProtrudingToken function possibly into a class, so we can split it up into methods that operate on the commo

[PATCH] D33589: clang-format: consider not splitting tokens in optimization

2017-11-21 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. Btw, another issue I am having is that reflowing does not respect the alignment. For exemple: enum { Foo,///< This is a very long comment Bar,///< This is shorter BarBar, ///< This is shorter } Stuff; will be reflown to : enum { Foo, //

r318776 - [ASTImporter] Support new AST nodes:

2017-11-21 Thread Aleksei Sidorin via cfe-commits
Author: a.sidorin Date: Tue Nov 21 08:08:41 2017 New Revision: 318776 URL: http://llvm.org/viewvc/llvm-project?rev=318776&view=rev Log: [ASTImporter] Support new AST nodes: * UnresolvedUsingType * EmptyDecl * NamespaceAliasDecl * UsingDecl * UsingShadowDecl * UsingDirectiveDecl * Unresolve

[PATCH] D32751: [ASTImporter] Support new kinds of declarations (mostly Using*)

2017-11-21 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin closed this revision. a.sidorin added a comment. Closed with https://reviews.llvm.org/rL318776 (forgot Differential Revision, sorry). https://reviews.llvm.org/D32751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[PATCH] D40065: [libcxx] [test] Change (void)s to TEST_IGNORE_NODISCARD as requested by Eric.

2017-11-21 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D40065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang-tools-extra] r318778 - [clangd] Fix dumb && || bug from r318774

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 08:44:16 2017 New Revision: 318778 URL: http://llvm.org/viewvc/llvm-project?rev=318778&view=rev Log: [clangd] Fix dumb && || bug from r318774 Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp URL: h

r318779 - Fix test/OpenMP/nvptx_data_sharing.cpp

2017-11-21 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Tue Nov 21 08:49:11 2017 New Revision: 318779 URL: http://llvm.org/viewvc/llvm-project?rev=318779&view=rev Log: Fix test/OpenMP/nvptx_data_sharing.cpp This was an oversight that stayed in the test from development. Modified: cfe/trunk/test/OpenMP/nvptx_data_sharing.cpp

[PATCH] D40276: Add -finstrument-function-entry-bare flag

2017-11-21 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. Reid, are you happy with this too? In https://reviews.llvm.org/D40276#931502, @pasko wrote: > Instrumenting the function entry post-inlining, without function exit, and > with no parameters is exactly what we need. The > `__cyg_profile_func_enter_bare` sounds good to me a

[PATCH] D40276: Add -finstrument-function-entry-bare flag

2017-11-21 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. Yep, looks good. :) https://reviews.llvm.org/D40276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40259: [libcxx] LWG2993: reference_wrapper

2017-11-21 Thread Agustín Bergé via Phabricator via cfe-commits
K-ballo updated this revision to Diff 123813. K-ballo added a comment. Full context diff. https://reviews.llvm.org/D40259 Files: include/__functional_base include/functional test/std/utilities/function.objects/refwrap/refwrap.assign/copy_assign.pass.cpp test/std/utilities/function.obj

[clang-tools-extra] r318780 - [clangd] Satisfy GCC: 'changes meaning of Error'

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 09:02:24 2017 New Revision: 318780 URL: http://llvm.org/viewvc/llvm-project?rev=318780&view=rev Log: [clangd] Satisfy GCC: 'changes meaning of Error' Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp

r318781 - [OPENMP] Initial support for asynchronous data update, NFC.

2017-11-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Nov 21 09:08:48 2017 New Revision: 318781 URL: http://llvm.org/viewvc/llvm-project?rev=318781&view=rev Log: [OPENMP] Initial support for asynchronous data update, NFC. OpenMP 5.0 introduces asynchronous data update/dependecies clauses on target data directives. Patch add

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 123817. sammccall added a comment. This revision is now accepted and ready to land. Add an option to allow impossible completions. While here, remove 'helpful' constructors that take some subset of the params. https://reviews.llvm.org/D39836 Files: clan

[PATCH] D39673: Toolchain: Normalize dwarf, sjlj and seh eh

2017-11-21 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D39673#931487, @martell wrote: > Just as a note there is still a lot to be desired here. I do not particularly > like the `UseSEHExceptions` function default and the actual macro definition > guards should be based on the current `ExceptionModel`

[clang-tools-extra] r318782 - [clangd] Include the right header for std::isxdigit

2017-11-21 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Nov 21 09:18:30 2017 New Revision: 318782 URL: http://llvm.org/viewvc/llvm-project?rev=318782&view=rev Log: [clangd] Include the right header for std::isxdigit Modified: clang-tools-extra/trunk/clangd/JSONExpr.cpp Modified: clang-tools-extra/trunk/clangd/JSONExpr.

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 123819. sammccall added a comment. (trying to resync the diff to head) https://reviews.llvm.org/D39836 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/ClangdServer.cpp clangd/ClangdServer.h clangd/ClangdUnit.cpp clangd/Clangd

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall requested review of this revision. sammccall added a comment. PTAL - this is now optional. The results will be hidden by default, but can be turned on with a flag. https://reviews.llvm.org/D39836 ___ cfe-commits mailing list cfe-commits@l

r318785 - Add -finstrument-function-entry-bare flag

2017-11-21 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Nov 21 09:30:34 2017 New Revision: 318785 URL: http://llvm.org/viewvc/llvm-project?rev=318785&view=rev Log: Add -finstrument-function-entry-bare flag This is an instrumentation flag that's similar to -finstrument-functions, but it only inserts calls on function entry, the c

[PATCH] D40276: Add -finstrument-function-entry-bare flag

2017-11-21 Thread Hans Wennborg via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318785: Add -finstrument-function-entry-bare flag (authored by hans). Changed prior to commit: https://reviews.llvm.org/D40276?vs=123691&id=123821#toc Repository: rL LLVM https://reviews.llvm.org/D4

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: clang/lib/Sema/SemaType.cpp:2188 + !Context.getTargetInfo().isVLASupported() && + shouldDiagnoseTargetSupportFromOpenMP()) { + // Some targets don't support VLAs. rjmccall wrote: > Please wri

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. > When Sema sees this code during compilation, it can not tell whether there is > an error. Calling foo from the host code is perfectly valid. Calling it from > device code is not. CUDADiagIfDeviceCode creates 'postponed' diagnostics > which only gets emitted if we ever

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Artem Belevich via Phabricator via cfe-commits
tra updated this revision to Diff 123823. tra added a comment. Updated to partially address rjmccall@ comments. https://reviews.llvm.org/D40275 Files: clang/lib/Sema/SemaType.cpp clang/test/SemaCUDA/vla.cu Index: clang/test/SemaCUDA/vla.cu =

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: clang/lib/Sema/SemaType.cpp:2188 + !Context.getTargetInfo().isVLASupported() && + shouldDiagnoseTargetSupportFromOpenMP()) { + // Some targets don't support VLAs. tra wrote: > rjmccall wrote:

[PATCH] D40275: [CUDA] Report "unsupported VLA" errors only on device side.

2017-11-21 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. In https://reviews.llvm.org/D40275#931947, @hfinkel wrote: > > When Sema sees this code during compilation, it can not tell whether there > > is an error. Calling foo from the host code is perfectly valid. Calling it > > from device code is not. CUDADiagIfDeviceCode creates

  1   2   >