[PATCH] D50811: [ASTImporter] Add test for WhileStmt

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor created this revision. Herald added a subscriber: martong. Herald added a reviewer: a.sidorin. Repository: rC Clang https://reviews.llvm.org/D50811 Files: test/Import/while-stmt/Inputs/F.cpp test/Import/while-stmt/test.cpp Index: test/Import/while-stmt/test.cpp

[PATCH] D50670: Implementation of nested loops in cxx_loop_proto

2018-08-15 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 160920. emmettneyman added a comment. Made the inner loop optional Repository: rC Clang https://reviews.llvm.org/D50670 Files: clang/tools/clang-fuzzer/cxx_loop_proto.proto clang/tools/clang-fuzzer/proto-to-cxx/loop_proto_to_cxx.cpp clang/tool

[PATCH] D50652: [libcxx] By default, do not use internal_linkage to hide symbols from the ABI

2018-08-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith accepted this revision. dexonsmith added a comment. This revision is now accepted and ready to land. LGTM if thakis is happy. Repository: rCXX libc++ https://reviews.llvm.org/D50652 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[PATCH] D50736: [libc++] Use correct rand.eng.mers all-zeroes seed sequence fallback

2018-08-15 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added a comment. In https://reviews.llvm.org/D50736#1200774, @hubert.reinterpretcast wrote: > In https://reviews.llvm.org/D50736#1200761, @mclow.lists wrote: > > > Is this test that's being added libc++ specific, or would it apply to other > > implementations as well? > >

[PATCH] D50812: [ASTImporter] Add test for ForStmt and ContinueStmt

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor created this revision. Herald added a subscriber: martong. Herald added a reviewer: a.sidorin. Repository: rC Clang https://reviews.llvm.org/D50812 Files: test/Import/for-stmt/Inputs/F.cpp test/Import/for-stmt/test.cpp Index: test/Import/for-stmt/test.cpp ==

[PATCH] D50477: WIP: Ensure that the type of size_t is represended as one of the fixed width types

2018-08-15 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. I don't understand the desire for this logic. Why can't wasm override the rest of the types if it wants to have something special? Repository: rC Clang https://reviews.llvm.org/D50477 ___ cfe-commits mailing list cfe-commi

[PATCH] D50813: [ASTImporter] Add test for IndirectGotoStmt

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor created this revision. Herald added a subscriber: martong. Herald added a reviewer: a.sidorin. Repository: rC Clang https://reviews.llvm.org/D50813 Files: test/Import/indirect-goto/Inputs/F.cpp test/Import/indirect-goto/test.cpp Index: test/Import/indirect-goto/test.cpp ===

[PATCH] D50736: [libc++] Use correct rand.eng.mers all-zeroes seed sequence fallback

2018-08-15 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast updated this revision to Diff 160923. hubert.reinterpretcast added a comment. Address review comments by Marshall Add a line break after the template-head. Add a comment with the requested quote from the Standard. Move test from the `test/libcxx/` tree to the `test/std/`

[PATCH] D50732: [ASTImporter] Add test for CXXDefaultInitExpr

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor added a comment. As a side note: It seems this test case actually reveals that we don't import the body of Foo's destructor? test/Import/cxx-default-init-expr/Inputs/S.cpp:1:8: inline function 'Foo::~Foo' is not defined struct Foo { ^ test/Import/cxx-default-init-expr/I

[PATCH] D50670: Implementation of nested loops in cxx_loop_proto

2018-08-15 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: clang/tools/clang-fuzzer/proto-to-cxx/loop_proto_to_cxx.cpp:124 +void SingleLoopToString(std::ostream &os, const LoopFunction &x) { + inner_loop = false; + os << "void foo(int *a, int *b, int *__restrict__ c, size_t s) {\n" -

[PATCH] D50814: [clangd] transfer the fixits with the notes instead of adding them to the main diagnostic if request by the client

2018-08-15 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. arphaman added reviewers: ilya-biryukov, jkorous, sammccall. Herald added subscribers: cfe-commits, dexonsmith, MaskRay, ioeric, javed.absar. This patch extends Clangd to allow the clients to specify the preference for how it wants to consume the fixes on the notes

[PATCH] D50815: Establish the header

2018-08-15 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists created this revision. mclow.lists added reviewers: EricWF, ldionne. Herald added a subscriber: christof. In C++20, we're going to have a header named for bit manipulations. See https://wg21.link/P0553 and https://wg21.link/P0556 for more info. This doesn't do any of that. It just cr

[PATCH] D50477: WIP: Ensure that the type of size_t is represended as one of the fixed width types

2018-08-15 Thread Sam Clegg via Phabricator via cfe-commits
sbc100 added a comment. Please ignore this change, I had thought we wanted size_t to match either int32_t or int64_t, but it turns out that isn't a requirement and that code that expects this to be true needs fixing. Repository: rC Clang https://reviews.llvm.org/D50477 _

[PATCH] D50796: [ASTImporter] Add test for IfStmt

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339825: [ASTImporter] Add test for IfStmt (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D50796?vs=160876&id=160930#to

[PATCH] D50652: [libcxx] By default, do not use internal_linkage to hide symbols from the ABI

2018-08-15 Thread Louis Dionne via Phabricator via cfe-commits
ldionne added a comment. If that's possible at all, I would like for the Chromium people to build with this patch applied. The expectation is that we'll cherry-pick this patch onto LLVM 7, and it would suck if that did not solve Chromium's problem for some stupid reason. Repository: rCXX li

r339827 - [ASTImporter] Add test for IfStmt

2018-08-15 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 15 15:36:58 2018 New Revision: 339827 URL: http://llvm.org/viewvc/llvm-project?rev=339827&view=rev Log: [ASTImporter] Add test for IfStmt Reviewers: a.sidorin, hiraditya Reviewed By: hiraditya Subscribers: hiraditya, martong, cfe-commits Differential Revision: h

[PATCH] D50731: [ASTImporter] Add test for ExprWithCleanups

2018-08-15 Thread Aleksei Sidorin via Phabricator via cfe-commits
a_sidorin accepted this revision. a_sidorin added a comment. This revision is now accepted and ready to land. Tests are always welcome. Thanks! Repository: rC Clang https://reviews.llvm.org/D50731 ___ cfe-commits mailing list cfe-commits@lists.ll

[PATCH] D50670: Implementation of nested loops in cxx_loop_proto

2018-08-15 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 160932. emmettneyman added a comment. Changed modifying global var to scoped class Repository: rC Clang https://reviews.llvm.org/D50670 Files: clang/tools/clang-fuzzer/cxx_loop_proto.proto clang/tools/clang-fuzzer/proto-to-cxx/loop_proto_to_cxx.

[PATCH] D50736: [libc++] Use correct rand.eng.mers all-zeroes seed sequence fallback

2018-08-15 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. Thanks for doing this. This looks good to me; but I want to play with it a bit before committing. I'll do that tonight. Repository: rCXX libc++ https://reviews.llvm.org/D50736 ___ cfe-commits mailing list cfe-commits

r339829 - [Darwin Driver] Fix Simulator builtins and test cases

2018-08-15 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Wed Aug 15 15:50:06 2018 New Revision: 339829 URL: http://llvm.org/viewvc/llvm-project?rev=339829&view=rev Log: [Darwin Driver] Fix Simulator builtins and test cases In r339807, I broke linking the builtins libraries for simulator targets, which itself was bad, but turns

[PATCH] D50372: Introduce the VTable interleaving scheme to the CFI design documentation

2018-08-15 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 except for a few spelling/grammar nits. Comment at: clang/docs/ControlFlowIntegrityDesign.rst:361 +it starts by allocating two work lists, one initialized with all the offset

[PATCH] D44100: [ASTImporter] Reorder fields after structure import is finished

2018-08-15 Thread Aleksei Sidorin via Phabricator via cfe-commits
a_sidorin marked an inline comment as done. a_sidorin added inline comments. Comment at: lib/AST/ASTImporter.cpp:1317 + for (auto *D : FromRD->decls()) { +Decl *ToD = Importer.GetAlreadyImportedOrNull(D); +assert(ToRD == ToD->getDeclContext() && ToRD->containsDecl(ToD));

r339830 - [ASTImporter] Add test for ExprWithCleanups

2018-08-15 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 15 15:51:37 2018 New Revision: 339830 URL: http://llvm.org/viewvc/llvm-project?rev=339830&view=rev Log: [ASTImporter] Add test for ExprWithCleanups Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: a_sidorin, martong, cfe-commits Differential R

[PATCH] D50731: [ASTImporter] Add test for ExprWithCleanups

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC339830: [ASTImporter] Add test for ExprWithCleanups (authored by teemperor, committed by ). Repository: rC Clang https://reviews.llvm.org/D50731 Files: test/Import/expr-with-cleanups/Inputs/S.cpp

[PATCH] D50733: [ASTImporter] Add test for ArrayInitLoopExpr

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339831: [ASTImporter] Add test for ArrayInitLoopExpr (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D50733?vs=160682&i

r339831 - [ASTImporter] Add test for ArrayInitLoopExpr

2018-08-15 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 15 15:52:21 2018 New Revision: 339831 URL: http://llvm.org/viewvc/llvm-project?rev=339831&view=rev Log: [ASTImporter] Add test for ArrayInitLoopExpr Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: martong, cfe-commits Differential Revision: h

[PATCH] D50670: Implementation of nested loops in cxx_loop_proto

2018-08-15 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman updated this revision to Diff 160936. emmettneyman added a comment. Updated comments, rebased, and ready to land Repository: rC Clang https://reviews.llvm.org/D50670 Files: clang/tools/clang-fuzzer/cxx_loop_proto.proto clang/tools/clang-fuzzer/proto-to-cxx/loop_proto_to_cxx.

r339832 - Implementation of nested loops in cxx_loop_proto

2018-08-15 Thread Emmett Neyman via cfe-commits
Author: emmettneyman Date: Wed Aug 15 16:05:48 2018 New Revision: 339832 URL: http://llvm.org/viewvc/llvm-project?rev=339832&view=rev Log: Implementation of nested loops in cxx_loop_proto Summary: Extended `cxx_loop_proto` to have neste for loops. Modified `loop_proto_to_llvm` and `loop_proto_to

[PATCH] D50670: Implementation of nested loops in cxx_loop_proto

2018-08-15 Thread Emmett Neyman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC339832: Implementation of nested loops in cxx_loop_proto (authored by emmettneyman, committed by ). Changed prior to commit: https://reviews.llvm.org/D50670?vs=160936&id=160937#toc Repository: rC Cla

[PATCH] D50672: [ASTImporter] Change the return result of Decl import to Optional

2018-08-15 Thread Aleksei Sidorin via Phabricator via cfe-commits
a_sidorin added a comment. Hello Gabor and Balazs, > With Balazs, we are working on something similar, but with a different, fine > grained error value mechanism. Unfortunately we were not aware of that you > have been working on error handling, and we didn't say that we are working on > error

[PATCH] D49798: [ASTImporter] Adding some friend function related unittests.

2018-08-15 Thread Aleksei Sidorin via Phabricator via cfe-commits
a_sidorin added a comment. Hi Balasz, Thank you for the fixes. Comment at: unittests/AST/ASTImporterTest.cpp:2258 +ASSERT_EQ(lookup_res.size(), 0u); +lookup_res = cast(FromTU)->noload_lookup(FromName); +ASSERT_EQ(lookup_res.size(), 1u); a_sidorin w

[PATCH] D50732: [ASTImporter] Add test for CXXDefaultInitExpr

2018-08-15 Thread Aleksei Sidorin via Phabricator via cfe-commits
a_sidorin accepted this revision. a_sidorin added a comment. This revision is now accepted and ready to land. Thanks! > As a side note: It seems this test case actually reveals that we don't import > the body of Foo's destructor? This is strange. If you manage to find the reason, please notify

[PATCH] D50824: [CFG] [analyzer] pr37769: Disable argument construction contexts for variadic functions.

2018-08-15 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ created this revision. NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet, rnkovacs. Herald added subscribers: cfe-commits, Szelethus, mikhail.ramalho, baloghadamsoftware. The analyzer doesn't need them and they seem to have pretty weird AST from time to time, so

[PATCH] D50619: [clang-tidy] Handle unresolved expressions in ExprMutationAnalyzer

2018-08-15 Thread Shuai Wang via Phabricator via cfe-commits
shuaiwang updated this revision to Diff 160952. shuaiwang marked 3 inline comments as done. shuaiwang added a comment. More test cases Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50619 Files: clang-tidy/utils/ExprMutationAnalyzer.cpp unittests/clang-tidy/ExprMutationAnal

[PATCH] D50755: [Driver] -print-target-triple and -print-effective-triple options

2018-08-15 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339834: [Driver] -print-target-triple and -print-effective-triple options (authored by phosek, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/

r339834 - [Driver] -print-target-triple and -print-effective-triple options

2018-08-15 Thread Petr Hosek via cfe-commits
Author: phosek Date: Wed Aug 15 17:22:03 2018 New Revision: 339834 URL: http://llvm.org/viewvc/llvm-project?rev=339834&view=rev Log: [Driver] -print-target-triple and -print-effective-triple options These can be used to print Clang target and effective triple. Differential Revision: https://revi

[PATCH] D50805: Don't warn on returning the address of a label

2018-08-15 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. There is no guarantee that you can use an address-of-label value from one function invocation in another invocation of the same function. GCC's documentation says it's the user's own problem to prevent inlining and cloning if the program requires an address-of-label exte

[PATCH] D50619: [clang-tidy] Handle unresolved expressions in ExprMutationAnalyzer

2018-08-15 Thread Shuai Wang via Phabricator via cfe-commits
shuaiwang added inline comments. Comment at: unittests/clang-tidy/ExprMutationAnalyzerTest.cpp:309 +TEST(ExprMutationAnalyzerTest, CallUnresolved) { + auto AST = JonasToth wrote: > I think we are missing tests for non-type template paramters (`template > `).

[PATCH] D50829: Update README and Dockerfile to include llvm-proto-fuzzer

2018-08-15 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman created this revision. emmettneyman added reviewers: morehouse, kcc. Herald added a subscriber: cfe-commits. Added commands to Dockerfile to build llvm-proto-fuzzer and the other related tools. Also added a section to the bottom of the README describing what llvm-proto-fuzzer does a

[PATCH] D50619: [clang-tidy] Handle unresolved expressions in ExprMutationAnalyzer

2018-08-15 Thread Shuai Wang via Phabricator via cfe-commits
shuaiwang updated this revision to Diff 160960. shuaiwang added a comment. Test case with non-type template Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50619 Files: clang-tidy/utils/ExprMutationAnalyzer.cpp unittests/clang-tidy/ExprMutationAnalyzerTest.cpp Index: unitte

[PATCH] D50829: Update README and Dockerfile to include llvm-proto-fuzzer

2018-08-15 Thread Emmett Neyman via Phabricator via cfe-commits
emmettneyman added a comment. Is there anything I should add to the documentation? Anything I should remove? Repository: rC Clang https://reviews.llvm.org/D50829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[PATCH] D50829: Update README and Dockerfile to include llvm-proto-fuzzer

2018-08-15 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: clang/tools/clang-fuzzer/README.txt:104 +To translate a cxx_loop_proto file into LLVM IR do: + bin/clang-loop-proto-to-llvm +To translate a cxx_loop_proto file into C++ do: `bin/clang-loop-proto-to-llvm CORPUS_OUTPUT_

[PATCH] D50616: [Fixed Point Arithmetic] FixedPointCast

2018-08-15 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan updated this revision to Diff 160964. leonardchan marked 7 inline comments as done. leonardchan added a comment. - Reworked logic for saturation Repository: rC Clang https://reviews.llvm.org/D50616 Files: include/clang/AST/OperationKinds.def include/clang/AST/Type.h include

[PATCH] D50616: [Fixed Point Arithmetic] FixedPointCast

2018-08-15 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added inline comments. Comment at: lib/CodeGen/CGExprScalar.cpp:1034 + if (DstFPSema.isSaturated() && + (CGF.getContext().getCorrespondingSaturatedType(SrcTy) != DstTy)) { +auto Mask = APInt::getBitsSetFrom( rjmccall wrote: > leonardchan wro

r339837 - [ASTImporter] Add test for ForStmt and ContinueStmt

2018-08-15 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 15 18:35:47 2018 New Revision: 339837 URL: http://llvm.org/viewvc/llvm-project?rev=339837&view=rev Log: [ASTImporter] Add test for ForStmt and ContinueStmt Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: martong, cfe-commits Differential Revi

[PATCH] D50812: [ASTImporter] Add test for ForStmt and ContinueStmt

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339837: [ASTImporter] Add test for ForStmt and ContinueStmt (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D50812?vs=1

r339838 - [ASTImporter] Add test for CXXScalarValueInit

2018-08-15 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 15 18:36:37 2018 New Revision: 339838 URL: http://llvm.org/viewvc/llvm-project?rev=339838&view=rev Log: [ASTImporter] Add test for CXXScalarValueInit Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: martong, cfe-commits Differential Revision:

[PATCH] D50735: [ASTImporter] Add test for CXXScalarValueInit

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339838: [ASTImporter] Add test for CXXScalarValueInit (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D50735?vs=160685&

r339839 - [ASTImporter] Add test for CXXDefaultInitExpr

2018-08-15 Thread Raphael Isemann via cfe-commits
Author: teemperor Date: Wed Aug 15 18:37:43 2018 New Revision: 339839 URL: http://llvm.org/viewvc/llvm-project?rev=339839&view=rev Log: [ASTImporter] Add test for CXXDefaultInitExpr Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: a_sidorin, martong, cfe-commits Differential

[PATCH] D50732: [ASTImporter] Add test for CXXDefaultInitExpr

2018-08-15 Thread Raphael Isemann via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339839: [ASTImporter] Add test for CXXDefaultInitExpr (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D50732?vs=160678&

[PATCH] D50815: Establish the header

2018-08-15 Thread Louis Dionne via Phabricator via cfe-commits
ldionne accepted this revision. ldionne added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D50815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[PATCH] D50805: Don't warn on returning the address of a label

2018-08-15 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D50805#1201805, @rsmith wrote: > There is no guarantee that you can use an address-of-label value from one > function invocation in another invocation of the same function. GCC's > documentation says it's the user's own problem to prevent inlinin

[PATCH] D50737: [ASTImporter] Add test for CXXNoexceptExpr

2018-08-15 Thread Aditya Kumar via Phabricator via cfe-commits
hiraditya added inline comments. Comment at: test/Import/cxx-noexcept-expr/test.cpp:1 +// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s + Can we add a line/comment to explain what this test does? Same for the input files

Re: [clang-tools-extra] r339665 - [clangd] Show non-instantiated decls in signatureHelp

2018-08-15 Thread Galina Kistanova via cfe-commits
Hello Ilya, This commit has broken the ABI test builder - lab.llvm.org:8011/builders/ clang-x86_64-linux-abi-test/builds/30676 Could you take care of this, please? Thanks Galina . . . FAILED: tools/clang/tools/extra/unittests/clangd/CMakeFiles/ClangdTests.dir/CodeCompleteTests.cpp.o /usr/bin

[PATCH] D50557: [clang][mips] Set __mips_fpr correctly for -mfpxx

2018-08-15 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan added a comment. Any test cases? Comment at: lib/Basic/Targets/Mips.cpp:62 +unsigned MipsTargetInfo::getISARev(const std::string& CPU) const { + return llvm::StringSwitch(getCPU()) The CPU argument looks unused. We can either remove it or make this

[PATCH] D50815: Establish the header

2018-08-15 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: include/bit:99 + unsigned long where; + // Search from LSB to MSB for first set bit. + // Returns zero if no set bit is found. Pretty sure this is the other way around here. ``` // Search from MSB to LSB for first

r339843 - [X86] Remove masking from the 512-bit padds and psubs builtins. Use select builtin instead.

2018-08-15 Thread Craig Topper via cfe-commits
Author: ctopper Date: Wed Aug 15 23:20:29 2018 New Revision: 339843 URL: http://llvm.org/viewvc/llvm-project?rev=339843&view=rev Log: [X86] Remove masking from the 512-bit padds and psubs builtins. Use select builtin instead. Modified: cfe/trunk/include/clang/Basic/BuiltinsX86.def cfe/tr

[PATCH] D50815: Establish the header

2018-08-15 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: include/bit:145 + static_assert(sizeof(unsigned) == 4, ""); + return __popcnt(__x); +#endif How does this work on pre-Haswell X86 CPUs? Doesn't MSVC just blindly emit the popcnt instruction when it sees this? h

[PATCH] D44100: [ASTImporter] Reorder fields after structure import is finished

2018-08-15 Thread Gabor Marton via Phabricator via cfe-commits
martong accepted this revision. martong added inline comments. This revision is now accepted and ready to land. Comment at: lib/AST/ASTImporter.cpp:1317 + for (auto *D : FromRD->decls()) { +Decl *ToD = Importer.GetAlreadyImportedOrNull(D); +assert(ToRD == ToD->getDeclCon

[PATCH] D50815: Establish the header

2018-08-15 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: include/bit:163 + static_assert(sizeof(unsigned long long) == 8, ""); + return __popcnt64(__x); +#endif I don't think __popcnt64 exists in MSVC when targeting 32-bit mode. https://reviews.llvm.org/D50815

<    1   2