[PATCH] D47201: [CUDA] Implement nv_weak attribute for functions

2018-06-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D47201#1119947, @Hahnfeld wrote: > In https://reviews.llvm.org/D47201#1119254, @aaron.ballman wrote: > > > In https://reviews.llvm.org/D47201#1119249, @tra wrote: > > > > > IIUIC, nv_weak is a synonym for weak (why, oh why did they need

[PATCH] D47627: [ASTContext] Make getAddrSpaceQualType replace address spaces.

2018-06-04 Thread Bevin Hansson via Phabricator via cfe-commits
ebevhan added a comment. There's actually a bit more to it than in these two patches. The complete diff to this function in our downstream Clang looks like this: QualType ASTContext::getAddrSpaceQualType(QualType T, unsigned AddressSpace) const { - QualType CanT = getCanonicalType(T);

[PATCH] D47643: Rewrite JSON dispatcher loop using C IO (FILE*) instead of std::istream.

2018-06-04 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. In https://reviews.llvm.org/D47643#1120913, @ilya-biryukov wrote: > PS I've checked it on my Mac and lldb seems to attach just fine. Working fine in my setup too! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47643 __

[PATCH] D47694: [CUDA][HIP] Do not emit type info when compiling for device

2018-06-04 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Thanks, LGTM. https://reviews.llvm.org/D47694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D47759: [Format] Do not use a global static value for EOF within ScopedMacroState.

2018-06-04 Thread David L. Jones via Phabricator via cfe-commits
dlj created this revision. dlj added a reviewer: djasper. dlj added a project: clang. Herald added a subscriber: klimek. ScopedMacroState injects its own EOF token under certain conditions, and the returned token may be modified in several different locations. If multiple reformat operations are s

r333980 - [X86] Mark all the builtins and intrinsics that require MMX and an SSE feature as requiring both mmx and the sse feature.

2018-06-04 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Jun 4 20:12:14 2018 New Revision: 333980 URL: http://llvm.org/viewvc/llvm-project?rev=333980&view=rev Log: [X86] Mark all the builtins and intrinsics that require MMX and an SSE feature as requiring both mmx and the sse feature. Previously we only checked the sse featu

[PATCH] D47758: [Fuchsia] Include install-distribution-stripped in bootstrap targets

2018-06-04 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. phosek added reviewers: mcgrathr, juliehockett. Herald added subscribers: cfe-commits, mgorny. This enables the use of install-distribution-stripped target in the 2-stage builds. Repository: rC Clang https://reviews.llvm.org/D47758 Files: clang/cmake/caches/Fu

[PATCH] D47757: [Sema] Diagnose unavailable aligned deallocation functions called from deleting destructors.

2018-06-04 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak created this revision. ahatanak added reviewers: rsmith, vsapsai, EricWF, erik.pilkington. Deallocation functions are called from deleting destructors that are declared virtual. Issue an error if an aligned deallocation function is selected but is not available. Repository: rC Clang

[PATCH] D45015: [Preprocessor] Allow libc++ to detect when aligned allocation is unavailable.

2018-06-04 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. I see, thank you. clang front-end currently fails to issue a warning or error when an aligned allocation/deallocation functions are required but not available in a few cases (e.g., delete called from a deleting destructor, calls to operator or builtin operator new/del

[PATCH] D47668: [Driver][Fuchsia] Pass LTO flags to linker

2018-06-04 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL333979: [Driver][Fuchsia] Pass LTO flags to linker (authored by phosek, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D47668?vs=149590&id=149

r333979 - [Driver][Fuchsia] Pass LTO flags to linker

2018-06-04 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Jun 4 18:50:59 2018 New Revision: 333979 URL: http://llvm.org/viewvc/llvm-project?rev=333979&view=rev Log: [Driver][Fuchsia] Pass LTO flags to linker Even though we use lld by default for Fuchsia, we use Gold plugin arguments like all other drivers as lld supports Gold p

[PATCH] D47694: [CUDA][HIP] Do not emit type info when compiling for device

2018-06-04 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 149892. yaxunl added a comment. Revised by John's comments. https://reviews.llvm.org/D47694 Files: lib/CodeGen/CodeGenModule.cpp test/CodeGenCUDA/device-vtable.cu Index: test/CodeGenCUDA/device-vtable.cu

r333978 - Reimplement the bittest intrinsic family as builtins with inline asm

2018-06-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Mon Jun 4 18:33:40 2018 New Revision: 333978 URL: http://llvm.org/viewvc/llvm-project?rev=333978&view=rev Log: Reimplement the bittest intrinsic family as builtins with inline asm We need to implement _interlockedbittestandset as a builtin for windows.h, so we might as well do

[PATCH] D47726: [Analyzer][Z3] Test fixes for Z3 constraint manager

2018-06-04 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. > I agree, though a number of these are limitations in CSA, and not > specifically the backend. Yeah, so for instance we always assume that for a given state we know whether it's feasible or not, and IMO for efficient SMT solver support we would need to operate

[PATCH] D47726: [Analyzer][Z3] Test fixes for Z3 constraint manager

2018-06-04 Thread Dominic Chen via Phabricator via cfe-commits
ddcc added a comment. > @ddcc To be completely honest, I see a few design issues with the current > implementation of Z3 backend, > the main one being that it checks satisfiability after every single exploded > node. > To the best of my knowledge, reasonable scalability would not be achieved

[PATCH] D47726: [Analyzer][Z3] Test fixes for Z3 constraint manager

2018-06-04 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a subscriber: mikhail.ramalho. george.karpenkov added a comment. @ddcc To be completely honest, I see a few design issues with the current implementation of Z3 backend, the main one being that it checks satisfiability after every single exploded node. To the best of my kn

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Matt Morehouse via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL333969: [clang-proto-fuzzer] Refactored LLVMFuzzerInitialize into its own file. (authored by morehouse, committed by ). Changed prior to commit: https://reviews.llvm.org/D47666?vs=149872&id=149876#toc

r333969 - [clang-proto-fuzzer] Refactored LLVMFuzzerInitialize into its own file.

2018-06-04 Thread Matt Morehouse via cfe-commits
Author: morehouse Date: Mon Jun 4 17:11:41 2018 New Revision: 333969 URL: http://llvm.org/viewvc/llvm-project?rev=333969&view=rev Log: [clang-proto-fuzzer] Refactored LLVMFuzzerInitialize into its own file. Copied and renamed some files in preparation for new loop-proto-fuzzer. Patch By: emmett

[PATCH] D36918: [Sema] Take into account the current context when checking the accessibility of a member function pointer

2018-06-04 Thread Jan Korous via Phabricator via cfe-commits
jkorous accepted this revision. jkorous added a comment. LGTM. Thank you for the explanation! Repository: rC Clang https://reviews.llvm.org/D36918 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse accepted this revision. morehouse added a comment. LGTM. Repository: rC Clang https://reviews.llvm.org/D47666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 149872. emmettneyman added a comment. - Removed unecessary includes and renamed library. Repository: rC Clang https://reviews.llvm.org/D47666 Files: tools/clang-fuzzer/CMakeLists.txt tools/clang-fuzzer/ExampleClangProtoFuzzer.cpp tools/clang-f

[PATCH] D45015: [Preprocessor] Allow libc++ to detect when aligned allocation is unavailable.

2018-06-04 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D45015#1121581, @ahatanak wrote: > Could you elaborate on what kind of changes you are planning to make in > libc++ after committing this patch? Libc++ shouldn't actually need any changes if this current patch lands. Currently libc++ is in a

[PATCH] D46042: Cap vector alignment at 16 for all Darwin platforms

2018-06-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. By the way, I went ahead and reverted this in r333958. Repository: rC Clang https://reviews.llvm.org/D46042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: tools/clang-fuzzer/ExampleClangProtoFuzzer.cpp:23 #include I think `cstring` is no longer used after this change. So we can probably remove this include. Comment at: tools/clang-fuzzer/fuzzer

[PATCH] D46700: [ThinLTO] Add testing of new summary index format to a couple CFI tests

2018-06-04 Thread Teresa Johnson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL333966: [ThinLTO] Add testing of new summary index format to a couple CFI tests (authored by tejohnson, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm

r333966 - [ThinLTO] Add testing of new summary index format to a couple CFI tests

2018-06-04 Thread Teresa Johnson via cfe-commits
Author: tejohnson Date: Mon Jun 4 16:05:24 2018 New Revision: 333966 URL: http://llvm.org/viewvc/llvm-project?rev=333966&view=rev Log: [ThinLTO] Add testing of new summary index format to a couple CFI tests Summary: Adds testing of combined index summary entries in disassembly format to CFI test

[PATCH] D47554: [analyzer] Check for dead/impossible status checks

2018-06-04 Thread Tom Rix via Phabricator via cfe-commits
trixirt updated this revision to Diff 149868. trixirt added a comment. Herald added a subscriber: klimek. Convert to AST Visitor Remove Ctx parameter from shouldNullCheckAllocation Add a shouldNullCheckAllocation ASTMatcher Repository: rC Clang https://reviews.llvm.org/D47554 Files: incl

[PATCH] D46042: Cap vector alignment at 16 for all Darwin platforms

2018-06-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D46042#1121674, @rjmccall wrote: > > I think we should revert this for now. Adding the alignment attribute to > > all Intel vector typedefs is a bigger change than it seems. > > Ugh. That is just an awful language rule. Would it be reasonable t

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 149867. emmettneyman added a comment. - Refactored FuzzerInitialize into library Repository: rC Clang https://reviews.llvm.org/D47666 Files: tools/clang-fuzzer/CMakeLists.txt tools/clang-fuzzer/ExampleClangProtoFuzzer.cpp tools/clang-fuzzer/fu

[PATCH] D47694: [CUDA][HIP] Do not emit type info when compiling for device

2018-06-04 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Oh, I see, because you're worried that the host code might contain `dynamic_cast` or similar features which would complain if RTTI were disabled. `getLangOpts().CUDAIsDevice` implies `getLangOpts().CUDA`, so I think you can just check the former. Otherwise LGTM. htt

[PATCH] D47564: [Parse] Use CapturedStmt for @finally on MSVC

2018-06-04 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Okay, We can try this, then. Repository: rC Clang https://reviews.llvm.org/D47564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D46042: Cap vector alignment at 16 for all Darwin platforms

2018-06-04 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D46042#1121648, @rnk wrote: > It's the typedef alignment changes that are causing problems for us, not the > MaxVectorAlign changes. That makes more sense. The new alignment attribute > breaks our implementation of `_mm256_loadu_ps`, because

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: tools/clang-fuzzer/CMakeLists.txt:48 ExampleClangProtoFuzzer.cpp +FuzzerInitialize.cpp ) Rather than compiling `FuzzerInitialize.cpp` into the binary, can we make it a library like `handle-cxx` or `proto

[PATCH] D47291: Proposal to make rtti errors more generic.

2018-06-04 Thread Warren Ristow via Phabricator via cfe-commits
wristow added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:6729 def err_no_dynamic_cast_with_fno_rtti : Error< - "cannot use dynamic_cast with -fno-rtti">; + "use of dynamic_cast requires enabling RTTI">; Sunil_Srivastava wrote: >

r333958 - Revert r333791 "Cap "voluntary" vector alignment at 16 for all Darwin platforms."

2018-06-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Mon Jun 4 14:39:20 2018 New Revision: 333958 URL: http://llvm.org/viewvc/llvm-project?rev=333958&view=rev Log: Revert r333791 "Cap "voluntary" vector alignment at 16 for all Darwin platforms." Adding __attribute__((aligned(32))) to __m256 breaks the implementation of _mm256_lo

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman added a comment. In https://reviews.llvm.org/D47666#1121608, @emmettneyman wrote: > - Updated and added header comments to two new files. Deleted loop fuzzer > files. I will commit the loop fuzzer files in a future patch. Repository: rC Clang https://reviews.llvm.org/D47666

[PATCH] D43667: [clang-doc] Implement a YAML generator

2018-06-04 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett updated this revision to Diff 149856. juliehockett marked 4 inline comments as done. juliehockett added a comment. Addressing comments https://reviews.llvm.org/D43667 Files: clang-doc/CMakeLists.txt clang-doc/Generators.cpp clang-doc/Generators.h clang-doc/Representation.h

[PATCH] D46700: [ThinLTO] Add testing of new summary index format to a couple CFI tests

2018-06-04 Thread Peter Collingbourne via Phabricator via cfe-commits
pcc accepted this revision. pcc added a comment. This revision is now accepted and ready to land. LGTM Repository: rC Clang https://reviews.llvm.org/D46700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

[PATCH] D46042: Cap vector alignment at 16 for all Darwin platforms

2018-06-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. It's the typedef alignment changes that are causing problems for us, not the MaxVectorAlign changes. That makes more sense. The new alignment attribute breaks our implementation of `_mm256_loadu_ps`, because the packed struct ends up with a 32-byte alignment. Here's the imp

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 149854. emmettneyman added a comment. - Another edit to the file header comments. Repository: rC Clang https://reviews.llvm.org/D47666 Files: tools/clang-fuzzer/CMakeLists.txt tools/clang-fuzzer/ExampleClangProtoFuzzer.cpp tools/clang-fuzzer/F

r333955 - Update for an LLVM header file move

2018-06-04 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Mon Jun 4 14:23:29 2018 New Revision: 333955 URL: http://llvm.org/viewvc/llvm-project?rev=333955&view=rev Log: Update for an LLVM header file move Modified: cfe/trunk/lib/CodeGen/CGCall.cpp Modified: cfe/trunk/lib/CodeGen/CGCall.cpp URL: http://llvm.org/viewvc/llvm-p

[PATCH] D47291: Proposal to make rtti errors more generic.

2018-06-04 Thread Sunil Srivastava via Phabricator via cfe-commits
Sunil_Srivastava added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:6729 def err_no_dynamic_cast_with_fno_rtti : Error< - "cannot use dynamic_cast with -fno-rtti">; + "use of dynamic_cast requires enabling RTTI">; probinson wrote:

[PATCH] D46700: [ThinLTO] Add testing of new summary index format to a couple CFI tests

2018-06-04 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added a comment. Herald added a subscriber: steven_wu. ping Repository: rC Clang https://reviews.llvm.org/D46700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D46042: Cap vector alignment at 16 for all Darwin platforms

2018-06-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. This change appears to have caused some blink vector math unit tests to fail on Windows. We are tracking it at https://crbug.com/849251. It has a pretty small reproducer: #include __m256 loadit(__m256 *p) { return _mm256_loadu_ps((const float *)p); } Compile for x86_6

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 149851. emmettneyman added a comment. - Fixed file header comment Repository: rC Clang https://reviews.llvm.org/D47666 Files: tools/clang-fuzzer/CMakeLists.txt tools/clang-fuzzer/ExampleClangProtoFuzzer.cpp tools/clang-fuzzer/FuzzerInitialize.

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 149850. emmettneyman added a comment. - Updated and added header comments to two new files. Deleted loop fuzzer files. Repository: rC Clang https://reviews.llvm.org/D47666 Files: tools/clang-fuzzer/CMakeLists.txt tools/clang-fuzzer/ExampleClangP

[PATCH] D47607: [libcxx] Almost fix some UB in and

2018-06-04 Thread Phabricator via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL333948: Fix a strict aliasing violation in map and unordered_map. (authored by epilk, committed by ). Herald added a subsc

[libcxx] r333948 - Fix a strict aliasing violation in map and unordered_map.

2018-06-04 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Mon Jun 4 13:38:23 2018 New Revision: 333948 URL: http://llvm.org/viewvc/llvm-project?rev=333948&view=rev Log: Fix a strict aliasing violation in map and unordered_map. These containers type-punned between pair and pair as an optimization. This commit instead provides access

[PATCH] D45015: [Preprocessor] Allow libc++ to detect when aligned allocation is unavailable.

2018-06-04 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. Could you elaborate on what kind of changes you are planning to make in libc++ after committing this patch? https://reviews.llvm.org/D45015 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[PATCH] D47671: [analyzer] Implement copy elision.

2018-06-04 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. So having an analyzer-config option would be useful for those codebases that are expected to be compiled with less advanced compilers that do not elide copies or not doing it aggressively enough. Maybe it is worth to ask on the mailing list of the community wants to h

[PATCH] D47668: [Driver][Fuchsia] Pass LTO flags to linker

2018-06-04 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr accepted this revision. mcgrathr added a comment. This revision is now accepted and ready to land. lgtm Repository: rC Clang https://reviews.llvm.org/D47668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

[PATCH] D44239: [analyzer] Re-enable constructor inlining when lifetime extension through fields occurs.

2018-06-04 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC333946: [analyzer] Re-enable constructors when lifetime extension through fields occurs. (authored by dergachev, committed by ). Repository: rC Clang https://reviews.llvm.org/D44239 Files: include/c

r333946 - [analyzer] Re-enable constructors when lifetime extension through fields occurs.

2018-06-04 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Mon Jun 4 13:18:37 2018 New Revision: 333946 URL: http://llvm.org/viewvc/llvm-project?rev=333946&view=rev Log: [analyzer] Re-enable constructors when lifetime extension through fields occurs. Temporary object constructor inlining was disabled in r326240 for code like

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka requested changes to this revision. vitalybuka added inline comments. This revision now requires changes to proceed. Comment at: tools/clang-fuzzer/FuzzerInitialize.cpp:11 /// \file /// This file implements a function that runs Clang on a single /// input and uses

[PATCH] D47726: [Analyzer][Z3] Test fixes for Z3 constraint manager

2018-06-04 Thread Dominic Chen via Phabricator via cfe-commits
ddcc added a subscriber: dcoughlin. ddcc added a comment. In https://reviews.llvm.org/D47726#1121395, @george.karpenkov wrote: > - Do all tests for Z3 run when LLVM is configured to use Z3? I'm not sure if > that's the right thing: do all tests start to take 10x time to run once Z3 is > enabled

[PATCH] D47564: [Parse] Use CapturedStmt for @finally on MSVC

2018-06-04 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D47564#1119925, @rjmccall wrote: > In https://reviews.llvm.org/D47564#1119874, @smeenai wrote: > > > In https://reviews.llvm.org/D47564#1118424, @rjmccall wrote: > > > > > No, it was just a general question. Have you gotten this to a point >

[PATCH] D47737: [clangd] Remove unused variables

2018-06-04 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle created this revision. Herald added subscribers: cfe-commits, jkorous, MaskRay, ioeric, ilya-biryukov, klimek. Signed-off-by: Marc-Andre Laperle Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47737 Files: clangd/ClangdServer.cpp Index: clangd/ClangdServer.cpp ==

r333944 - [X86] Avoid passing _mm_undefined* to builtin_shufflevector if we are able to pass the first input a second time.

2018-06-04 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Jun 4 12:28:09 2018 New Revision: 333944 URL: http://llvm.org/viewvc/llvm-project?rev=333944&view=rev Log: [X86] Avoid passing _mm_undefined* to builtin_shufflevector if we are able to pass the first input a second time. This is more consistent with other usages of bui

[PATCH] D44865: [libc++] Implement P0608R2 - A sane variant converting constructor

2018-06-04 Thread Zhihao Yuan via Phabricator via cfe-commits
lichray updated this revision to Diff 149825. lichray added a comment. Refine coding style Repository: rCXX libc++ https://reviews.llvm.org/D44865 Files: include/variant test/std/utilities/variant/variant.variant/variant.assign/T.pass.cpp test/std/utilities/variant/variant.variant/vari

[PATCH] D47726: [Analyzer][Z3] Test fixes for Z3 constraint manager

2018-06-04 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov accepted this revision. george.karpenkov added a comment. This revision is now accepted and ready to land. Seems to be good to merge regardless. Repository: rC Clang https://reviews.llvm.org/D47726 ___ cfe-commits mailing list cf

[PATCH] D47726: [Analyzer][Z3] Test fixes for Z3 constraint manager

2018-06-04 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. Impressive, really. So almost all tests still pass. However, a few questions should be resolved before we can merge: - Do all tests for Z3 run when LLVM is configured to use Z3? I'm not sure if that's the right thing: do all tests start to take 10x time to run o

[PATCH] D47617: [Analyzer] Fix Z3ConstraintManager crash (PR37646)

2018-06-04 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov accepted this revision. george.karpenkov added a comment. This revision is now accepted and ready to land. Thanks! Repository: rC Clang https://reviews.llvm.org/D47617 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:

[PATCH] D44865: [libc++] Implement P0608R2 - A sane variant converting constructor

2018-06-04 Thread Zhihao Yuan via Phabricator via cfe-commits
lichray updated this revision to Diff 149824. lichray added a comment. Preserve value category in narrowing test. Repository: rCXX libc++ https://reviews.llvm.org/D44865 Files: include/variant test/std/utilities/variant/variant.variant/variant.assign/T.pass.cpp test/std/utilities/varia

r333941 - [CFG] Fix automatic destructors when a member is bound to a reference.

2018-06-04 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Mon Jun 4 11:56:25 2018 New Revision: 333941 URL: http://llvm.org/viewvc/llvm-project?rev=333941&view=rev Log: [CFG] Fix automatic destructors when a member is bound to a reference. In code like const int &x = A().x; automatic destructor for the object A() lifetime-

[PATCH] D44238: [CFG] Fix automatic destructors when a member is bound to a reference.

2018-06-04 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC333941: [CFG] Fix automatic destructors when a member is bound to a reference. (authored by dergachev, committed by ). Repository: rC Clang https://reviews.llvm.org/D44238 Files: lib/Analysis/CFG.cp

[PATCH] D47620: Remove llvm::Triple argument from get***Personality() functions. NFC.

2018-06-04 Thread Heejin Ahn via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC333938: Remove llvm::Triple argument from get***Personality() functions. NFC. (authored by aheejin, committed by ). Changed prior to commit: https://reviews.llvm.org/D47620?vs=149406&id=149814#toc Repo

r333938 - Remove llvm::Triple argument from get***Personality() functions. NFC.

2018-06-04 Thread Heejin Ahn via cfe-commits
Author: aheejin Date: Mon Jun 4 11:23:00 2018 New Revision: 333938 URL: http://llvm.org/viewvc/llvm-project?rev=333938&view=rev Log: Remove llvm::Triple argument from get***Personality() functions. NFC. Summary: Because `llvm::Triple` can be derived from `TargetInfo`, it is simpler to take only

[PATCH] D47732: [clang-doc] Add BitReader to LLVM_LINK_COMPONENTS

2018-06-04 Thread Heejin Ahn via Phabricator via cfe-commits
aheejin abandoned this revision. aheejin added a comment. Oh I see, thanks! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47732 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D47733: [CUDA][HIP] Set kernel calling convention before arrange function

2018-06-04 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. yaxunl added reviewers: rjmccall, tra. Currently clang set kernel calling convention for CUDA/HIP after arranging function, which causes incorrect kernel function type since it depends on calling convention. This patch moves setting kernel convention before arranging

[PATCH] D47732: [clang-doc] Add BitReader to LLVM_LINK_COMPONENTS

2018-06-04 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a comment. Already fixed in https://reviews.llvm.org/rL333936, sorry! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47732 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

[clang-tools-extra] r333936 - [clang-doc] Adding missing dependencies to fix linker error on bot

2018-06-04 Thread Julie Hockett via cfe-commits
Author: juliehockett Date: Mon Jun 4 11:18:00 2018 New Revision: 333936 URL: http://llvm.org/viewvc/llvm-project?rev=333936&view=rev Log: [clang-doc] Adding missing dependencies to fix linker error on bot Modified: clang-tools-extra/trunk/clang-doc/CMakeLists.txt Modified: clang-tools-extra

[PATCH] D47732: [clang-doc] Add BitReader to LLVM_LINK_COMPONENTS

2018-06-04 Thread Heejin Ahn via Phabricator via cfe-commits
aheejin created this revision. aheejin added a reviewer: juliehockett. Herald added subscribers: cfe-commits, mgorny, klimek. Without this, build with `-DSHARED_LIB=ON` fails. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47732 Files: clang-doc/CMakeLists.txt Index: clang-

[PATCH] D47532: [ASTImporter] Import the whole redecl chain of functions

2018-06-04 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Hello Gabor, This patch is really cool. Unfortunately, right now I don't have enough time for reviewing large patches in a single review. Are you OK with incremental review? Comment at: lib/AST/ASTImporter.cpp:75 + template + llvm::SmallVector +

Re: r333874 - Reland "Move #include manipulation code to new lib/Tooling/Inclusions."

2018-06-04 Thread Nico Weber via cfe-commits
(Cost as in "shared library buildsof clang are ~35% slower than regular clang" last we checked.) On Mon, Jun 4, 2018 at 2:14 PM, Nico Weber wrote: > Sure, the bots could do that, the more general point was that many > (probably most) people who want to enable asserts don't want to use shared > l

Re: r333874 - Reland "Move #include manipulation code to new lib/Tooling/Inclusions."

2018-06-04 Thread Nico Weber via cfe-commits
Sure, the bots could do that, the more general point was that many (probably most) people who want to enable asserts don't want to use shared libs. I believe that only a few people use that config, so turning things around why should everyone building with asserts have to pay the cost of supporting

[PATCH] D46024: [clang-format] Add SpaceBeforeCpp11BracedList option.

2018-06-04 Thread JF Bastien via Phabricator via cfe-commits
jfb added a comment. In https://reviews.llvm.org/D46024#1121242, @rkirsling wrote: > FWIW, please note that this space-before-brace style is not specific to > WebKit; CppCoreGuidelines exhibits it as well: > > http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es23-prefer-the--initial

[PATCH] D47666: Refactored clang-fuzzer and added new (copy) files

2018-06-04 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 149807. emmettneyman added a comment. - Changed CLArgs into getter and deleted commented code 1. Updating https://reviews.llvm.org/D47666: Refactored clang-fuzzer and added new (copy) files # 2. Enter a brief description of the changes included in this

[PATCH] D46024: [clang-format] Add SpaceBeforeCpp11BracedList option.

2018-06-04 Thread Ross Kirsling via Phabricator via cfe-commits
rkirsling added a comment. FWIW, please note that this space-before-brace style is not specific to WebKit; CppCoreGuidelines exhibits it as well: http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es23-prefer-the--initializer-syntax Repository: rC Clang https://reviews.llvm.org/D460

[PATCH] D47628: Detect an incompatible VLA pointer assignment

2018-06-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma accepted this revision. efriedma added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D47628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D43341: [clang-doc] Implement reducer portion of the frontend framework

2018-06-04 Thread Julie Hockett via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL333932: [clang-doc] Implement reducer portion of the frontend framework (authored by juliehockett, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.

[clang-tools-extra] r333932 - [clang-doc] Implement reducer portion of the frontend framework

2018-06-04 Thread Julie Hockett via cfe-commits
Author: juliehockett Date: Mon Jun 4 10:22:20 2018 New Revision: 333932 URL: http://llvm.org/viewvc/llvm-project?rev=333932&view=rev Log: [clang-doc] Implement reducer portion of the frontend framework Implements a simple, in-memory reducer for the mapped output of the initial tool. This creates

[PATCH] D47401: [X86] Rewrite the max and min reduction intrinsics to make better use of other functions and to reduce width to 256 and 128 bits were possible.

2018-06-04 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. Ping Repository: rL LLVM https://reviews.llvm.org/D47401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D47672: [Headers] Add _Interlocked*_HLEAcquire/_HLERelease

2018-06-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added subscribers: craig.topper, chandlerc. rnk added a comment. I read up a little bit on TSX and HLE: https://software.intel.com/en-us/node/524022 https://en.wikipedia.org/wiki/Transactional_Synchronization_Extensions These HLE variants of the usual atomic exchange intrinsics add the `xacqu

[PATCH] D47617: [Analyzer] Fix Z3ConstraintManager crash (PR37646)

2018-06-04 Thread Vlad Tsyrklevich via Phabricator via cfe-commits
vlad.tsyrklevich updated this revision to Diff 149796. vlad.tsyrklevich added a comment. - Merge test with apsint.c and move to z3/apsint.c Repository: rC Clang https://reviews.llvm.org/D47617 Files: lib/StaticAnalyzer/Core/Z3ConstraintManager.cpp test/Analysis/apsint.c test/Analysis/z

[PATCH] D47620: Remove llvm::Triple argument from get***Personality() functions. NFC.

2018-06-04 Thread Heejin Ahn via Phabricator via cfe-commits
aheejin added a comment. @sbc100 ping :) Repository: rC Clang https://reviews.llvm.org/D47620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r333874 - Reland "Move #include manipulation code to new lib/Tooling/Inclusions."

2018-06-04 Thread David Zarzycki via cfe-commits
Hi Roman – I agree that people shouldn’t need to manually fix this every time it happens. Hi Nico – What is stopping the Chromium buildbots from setting BUILD_SHARED_LIBS to false? That way the default BUILD_SHARED_LIBS policy of llvm and/or clang doesn’t matter, right? Dave > On Jun 4, 2018

Re: r333923 - This diff includes changes for supporting the following types.

2018-06-04 Thread Leonard Chan via cfe-commits
Sorry. I did not notice this. I will be sure to add the title from the phabricator review as the first line next time. On Mon, Jun 4, 2018 at 9:44 AM Roman Lebedev wrote: > > Did you use `arc patch` to get the commit description? > Please make sure that the first line of the commit is reasonable.

Re: r333923 - This diff includes changes for supporting the following types.

2018-06-04 Thread Roman Lebedev via cfe-commits
Did you use `arc patch` to get the commit description? Please make sure that the first line of the commit is reasonable. In this case it is not reasonable. On Mon, Jun 4, 2018 at 7:07 PM, Leonard Chan via cfe-commits wrote: > Author: leonardchan > Date: Mon Jun 4 09:07:52 2018 > New Revision: 33

[PATCH] D47726: [Analyzer][Z3] Test fixes for Z3 constraint manager

2018-06-04 Thread Vlad Tsyrklevich via Phabricator via cfe-commits
vlad.tsyrklevich created this revision. vlad.tsyrklevich added reviewers: george.karpenkov, NoQ, ddcc. Herald added subscribers: cfe-commits, a.sidorin, zzheng, szepet, xazax.hun. Since Z3 tests have been not been running [1] some tests needed to be updated. I also added a regression test for [1].

Re: r333874 - Reland "Move #include manipulation code to new lib/Tooling/Inclusions."

2018-06-04 Thread Roman Lebedev via cfe-commits
This is n-th time i do this kind of fix. Sure this does resolve the issue, but it would be much better to use proper means, and tell people to fix their code, in an automatic way :) On Mon, Jun 4, 2018 at 7:36 PM, Nico Weber wrote: > All chromium bots build with asserts on and we definitely don't

Re: r333874 - Reland "Move #include manipulation code to new lib/Tooling/Inclusions."

2018-06-04 Thread Nico Weber via cfe-commits
All chromium bots build with asserts on and we definitely don't want shared libs :-) Having the people who care about this build config make sure it keeps working seems like a good approach to me. On Mon, Jun 4, 2018 at 8:15 AM, David Zarzycki via cfe-commits < cfe-commits@lists.llvm.org> wrote:

[PATCH] D47694: [CUDA][HIP] Do not emit type info when compiling for device

2018-06-04 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In https://reviews.llvm.org/D47694#1121037, @rjmccall wrote: > In https://reviews.llvm.org/D47694#1120375, @yaxunl wrote: > > > In https://reviews.llvm.org/D47694#1120367, @rjmccall wrote: > > > > > Why not just have the driver disable RTTI in the frontend invocation? > >

[PATCH] D47687: fix: [Bug 18971] - Missing -Wparentheses warning

2018-06-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. I'm in favor of this direction. The `var || var && truth_constant` pattern match seems much more robust than the macro pattern match. It's also consistent with what we do outside of macros, so it's less special and surprising. https://reviews.llvm.org/D47687 ___

r333923 - This diff includes changes for supporting the following types.

2018-06-04 Thread Leonard Chan via cfe-commits
Author: leonardchan Date: Mon Jun 4 09:07:52 2018 New Revision: 333923 URL: http://llvm.org/viewvc/llvm-project?rev=333923&view=rev Log: This diff includes changes for supporting the following types. // Primary fixed point types signed short _Accum s_short_accum; signed _Accum s_accum; signed lo

[PATCH] D47592: [AArch64] Corrected FP16 Intrinsic range checks in Clang + added Sema tests

2018-06-04 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer accepted this revision. SjoerdMeijer added a comment. This revision is now accepted and ready to land. I think this looks ok now, just some nits inline. Can you please upload your diffs with more context next time? Comment at: utils/TableGen/NeonEmitter.cpp:2166 +

[PATCH] D46421: [analyzer][CrossTU] Extend CTU to VarDecls with initializer

2018-06-04 Thread Rafael Stahl via Phabricator via cfe-commits
r.stahl added a comment. In https://reviews.llvm.org/D46421#1119098, @xazax.hun wrote: > Sorry for the limited activity. Unfortunately, I have very little time > reviewing patches lately. Thanks for getting around to it! > I think we need to answer the following questions: > > - Does this ch

[PATCH] D47724: [X86] Add back _mask, _maskz, and _mask3 builtins for some 512-bit fmadd/fmsub/fmaddsub/fmsubadd builtins.

2018-06-04 Thread Craig Topper via Phabricator via cfe-commits
craig.topper created this revision. craig.topper added reviewers: tkrupa, RKSimon, spatel, GBuella. We recently switch to using a selects in the intrinsics header files for FMA instructions. But the 512-bit versions support flavors with rounding mode which must be an Integer Constant Expression.

[libcxxabi] r333916 - Creating release candidate rc2 from release_601 branch

2018-06-04 Thread Tom Stellard via cfe-commits
Author: tstellar Date: Mon Jun 4 08:53:32 2018 New Revision: 333916 URL: http://llvm.org/viewvc/llvm-project?rev=333916&view=rev Log: Creating release candidate rc2 from release_601 branch Added: libcxxabi/tags/RELEASE_601/rc2/ - copied from r333915, libcxxabi/branches/release_60/ ___

[libunwind] r333922 - Creating release candidate rc2 from release_601 branch

2018-06-04 Thread Tom Stellard via cfe-commits
Author: tstellar Date: Mon Jun 4 08:54:00 2018 New Revision: 333922 URL: http://llvm.org/viewvc/llvm-project?rev=333922&view=rev Log: Creating release candidate rc2 from release_601 branch Added: libunwind/tags/RELEASE_601/rc2/ - copied from r333921, libunwind/branches/release_60/ ___

[libcxx] r333915 - Creating release candidate rc2 from release_601 branch

2018-06-04 Thread Tom Stellard via cfe-commits
Author: tstellar Date: Mon Jun 4 08:53:28 2018 New Revision: 333915 URL: http://llvm.org/viewvc/llvm-project?rev=333915&view=rev Log: Creating release candidate rc2 from release_601 branch Added: libcxx/tags/RELEASE_601/rc2/ (props changed) - copied from r333914, libcxx/branches/rele

  1   2   >