[PATCH] D39308: [libcxx] Keep track of heap allocated regex states

2017-10-26 Thread Tim Shen via Phabricator via cfe-commits
timshen added a comment. In https://reviews.llvm.org/D39308#907424, @mclow.lists wrote: > A couple of notes. Sorry for the oversights, when a C++11(-only :) contributor doesn't care about ABI stability, nor exceptions, he contributes naive code. :P I'll fix them. > - This change means that n

[PATCH] D38824: [X86] Synchronize the existing CPU predefined macros with the cases that gcc defines them

2017-10-26 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc added a comment. So, doing research to understand the impact of this has convinced me we *really* need to stop doing this. Multiple libraries are actually trying to enumerate every CPU that has feature X for some feature X. =[[[ This, combined with the fundamental pattern of defining

[PATCH] D38639: [clangd] #include statements support for Open definition

2017-10-26 Thread William Enright via Phabricator via cfe-commits
Nebiroth updated this revision to Diff 120482. Nebiroth added a comment. - Now overriding InclusionDirective as a callback to get proper includes information. - Fixed tests. https://reviews.llvm.org/D38639 Files: clangd/ClangdServer.cpp clangd/ClangdUnit.cpp clangd/ClangdUnit.h clangd/

[PATCH] D38639: [clangd] #include statements support for Open definition

2017-10-26 Thread William Enright via Phabricator via cfe-commits
Nebiroth updated this revision to Diff 120485. Nebiroth added a comment. - Fixed adding incorrect test file. https://reviews.llvm.org/D38639 Files: clangd/ClangdServer.cpp clangd/ClangdUnit.cpp clangd/ClangdUnit.h clangd/GlobalCompilationDatabase.cpp clangd/Protocol.h unittests/clan

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. Thanks! Comment at: test/CodeGenObjC/debug-info-blocks.m:20 // CHECK: call {{.*}}, !dbg ![[DBG_LINE:[0-9]+]] // CHECK-NOT: ret // CHECK: load {{.*}}, !dbg ![[COPY_LINE:[0-9]+]] aprantl wrote: > vsk wrote: > > aprantl wrote: > > > aprantl

[PATCH] D38824: [X86] Synchronize the existing CPU predefined macros with the cases that gcc defines them

2017-10-26 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D38824#908461, @chandlerc wrote: > So, doing research to understand the impact of this has convinced me we > *really* need to stop doing this. Multiple libraries are actually trying to > enumerate every CPU that has feature X for some feature

[PATCH] D38824: [X86] Synchronize the existing CPU predefined macros with the cases that gcc defines them

2017-10-26 Thread Simon Pilgrim via Phabricator via cfe-commits
RKSimon added a comment. Where is the best place to document this policy so people have a chance of understanding it going forward? https://reviews.llvm.org/D38824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316704: [CGBlocks] Improve line info in backtraces containing *_helper_block (authored by vedantk). Changed prior to commit: https://reviews.llvm.org/D39310?vs=120461&id=120489#toc Repository: rL LLV

r316704 - [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Thu Oct 26 14:27:24 2017 New Revision: 316704 URL: http://llvm.org/viewvc/llvm-project?rev=316704&view=rev Log: [CGBlocks] Improve line info in backtraces containing *_helper_block Instead of only setting a non-zero debug location on the return instruction in *_helper_block

r316705 - [X86][Driver] Move all of the X86 feature flags to one spot in the Options.td file and pair them up with their negations.

2017-10-26 Thread Craig Topper via cfe-commits
Author: ctopper Date: Thu Oct 26 14:28:33 2017 New Revision: 316705 URL: http://llvm.org/viewvc/llvm-project?rev=316705&view=rev Log: [X86][Driver] Move all of the X86 feature flags to one spot in the Options.td file and pair them up with their negations. It looks like at one time Options.td was

[PATCH] D39341: [X86][Driver] Move all of the X86 feature flags to one spot in the Options.td file and pair them up with their negations.

2017-10-26 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316705: [X86][Driver] Move all of the X86 feature flags to one spot in the Options.td… (authored by ctopper). Changed prior to commit: https://reviews.llvm.org/D39341?vs=120468&id=120490#toc Repository

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via Phabricator via cfe-commits
hintonda updated this revision to Diff 120492. hintonda added a comment. - Remove debugging print statement, and enhance help message. https://reviews.llvm.org/D36347 Files: utils/clangdiag.py Index: utils/clangdiag.py === --- /

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via Phabricator via cfe-commits
hintonda added a comment. Is there a way to associate a particular diagtool variable to an exe_ctx? https://reviews.llvm.org/D36347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39053: [Bitfield] Add more cases to making the bitfield a separate location

2017-10-26 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D39053#906513, @spetrovic wrote: > Well, basically I'm just expanding the existing algorithm, why should we > split fields just in case when current field is integer, > I'm not resolving specific problem with unaligned loads/stores on MIPS. >

Re: [PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Zachary Turner via cfe-commits
Seems fine, it would be nice if the workflow could be improved a little bit so that all you have to do is say `clangdiag break —error=“-Wcovered-switch”` or something . I think that gives the most intuitive usage for people, even it’s a bit harder to implement. I also think user shouldn’t really h

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Greg Clayton via Phabricator via cfe-commits
clayborg added a comment. Each lldb.SBValue has accessors for the stuff in an execution context: `` lldb::SBTarget GetTarget(); lldb::SBProcess GetProcess(); lldb::SBThread GetThread(); lldb::SBFrame GetFrame(); You could keep a global map of process ID to diagtool if you want? W

Re: [PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via cfe-commits
On Thu, Oct 26, 2017 at 3:00 PM, Greg Clayton via Phabricator < revi...@reviews.llvm.org> wrote: > clayborg added a comment. > > Each lldb.SBValue has accessors for the stuff in an execution context: > > `` > > lldb::SBTarget GetTarget(); > lldb::SBProcess GetProcess(); > lldb::SBThread GetT

[PATCH] D33765: Show correct column nr. when multi-byte utf8 chars are used.

2017-10-26 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. I didn't really search for it before, but it looks like LLVM already has a routine for computing column widths? See llvm::sys::unicode::columnWidthUTF8. There are some tools which parse clang diagnostic output; we might need a flag to control this. Not sure who would

[PATCH] D39347: Fix __has_unique_object_representations based on rsmith's input

2017-10-26 Thread Erich Keane via Phabricator via cfe-commits
erichkeane created this revision. Corrections done for @rsmith 's comments after-commit on cfe-commits. https://reviews.llvm.org/D39347 Files: include/clang/AST/ASTContext.h include/clang/AST/Type.h lib/AST/ASTContext.cpp lib/AST/Type.cpp lib/Sema/SemaExprCXX.cpp test/SemaCXX/type-t

Re: [PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via cfe-commits
On Thu, Oct 26, 2017 at 2:48 PM, Zachary Turner wrote: > Seems fine, it would be nice if the workflow could be improved a little > bit so that all you have to do is say `clangdiag break > —error=“-Wcovered-switch”` or something . I think that gives the most > intuitive usage for people, even it’s

[PATCH] D39347: Fix __has_unique_object_representations based on rsmith's input

2017-10-26 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. Added all of @rsmith's comments here, I believe I have them all and have properly responded to them. Comment at: include/clang/AST/ASTContext.h:2115 + bool hasUniqueObjectRepresentations(QualType Ty) const; + //===--

[PATCH] D39349: [X86] Make -march=i686 an alias of -march=pentiumpro

2017-10-26 Thread Craig Topper via Phabricator via cfe-commits
craig.topper created this revision. I think the only reason they are different is because we don't set __tune_i686__ for -march=i686 to match GCC. But GCC 4.9.0 seems to have changed this behavior and they do set it now. So I think they can aliases now. https://reviews.llvm.org/D39349 Files:

[PATCH] D39349: [X86] Make -march=i686 an alias of -march=pentiumpro

2017-10-26 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc accepted this revision. chandlerc added a comment. This revision is now accepted and ready to land. LGTM, nice. https://reviews.llvm.org/D39349 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D39204: [CodeGen] __builtin_sqrt should map to the compiler's intrinsic sqrt function

2017-10-26 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D39204#905860, @efriedma wrote: > I think you're understanding the semantics correctly. > > For r265521, look again at the implementation of > llvm::checkUnaryFloatSignature; if "I.onlyReadsMemory()" is true, we somehow > proved the call does

[PATCH] D39349: [X86] Make -march=i686 an alias of -march=pentiumpro

2017-10-26 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. I suspect the gcc behavior changed when this bug was fixed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59588 https://reviews.llvm.org/D39349 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.or

r316712 - [X86] Make -march=i686 an alias of -march=pentiumpro

2017-10-26 Thread Craig Topper via cfe-commits
Author: ctopper Date: Thu Oct 26 16:06:19 2017 New Revision: 316712 URL: http://llvm.org/viewvc/llvm-project?rev=316712&view=rev Log: [X86] Make -march=i686 an alias of -march=pentiumpro I think the only reason they are different is because we don't set tune_i686 for -march=i686 to match GCC. Bu

[PATCH] D38824: [X86] Synchronize the existing CPU predefined macros with the cases that gcc defines them

2017-10-26 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc added a comment. In https://reviews.llvm.org/D38824#908540, @RKSimon wrote: > Where is the best place to document this policy so people have a chance of > understanding it going forward? Given the (apparent) amount of confusion here, I'd suggest a dedicated document in Clang's docum

[PATCH] D39349: [X86] Make -march=i686 an alias of -march=pentiumpro

2017-10-26 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316712: [X86] Make -march=i686 an alias of -march=pentiumpro (authored by ctopper). Changed prior to commit: https://reviews.llvm.org/D39349?vs=120503&id=120508#toc Repository: rL LLVM https://revie

r316713 - Use -fuse-init-array if no gcc installation is found.

2017-10-26 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Oct 26 16:26:29 2017 New Revision: 316713 URL: http://llvm.org/viewvc/llvm-project?rev=316713&view=rev Log: Use -fuse-init-array if no gcc installation is found. clang currently uses .init_array instead of .ctors on Linux if it detects gcc 4.7+. Make it so that it also uses

[PATCH] D39317: Use -fuse-init-array if no gcc installation is found.

2017-10-26 Thread Nico Weber via Phabricator via cfe-commits
thakis closed this revision. thakis added a comment. r316713, thanks! https://reviews.llvm.org/D39317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38596: Implement attribute target multiversioning

2017-10-26 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 120513. erichkeane added a comment. Realized I can put variables in an Attribute, so I put MV info in the Attribute rather than at the FD level. @AaronBallman and @echristo, if you could take another look, I'd appreciate it. https://reviews.llvm.org/D38

r316718 - [X86] Add 'sse4' to X86TargetInfo::isValidFeatureName

2017-10-26 Thread Craig Topper via cfe-commits
Author: ctopper Date: Thu Oct 26 17:18:16 2017 New Revision: 316718 URL: http://llvm.org/viewvc/llvm-project?rev=316718&view=rev Log: [X86] Add 'sse4' to X86TargetInfo::isValidFeatureName sse4 is valid for target attribute and functions as an alias of sse4.2. Modified: cfe/trunk/lib/Basic/Ta

r316719 - [WebAssembly] Include libclang_rt.builtins in the standard way

2017-10-26 Thread Sam Clegg via cfe-commits
Author: sbc Date: Thu Oct 26 17:26:07 2017 New Revision: 316719 URL: http://llvm.org/viewvc/llvm-project?rev=316719&view=rev Log: [WebAssembly] Include libclang_rt.builtins in the standard way Differential Revision: https://reviews.llvm.org/D39218 Modified: cfe/trunk/lib/Driver/ToolChain.cpp

[PATCH] D39218: [WebAssembly] Include libclang_rt.builtins in the standard way

2017-10-26 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316719: [WebAssembly] Include libclang_rt.builtins in the standard way (authored by sbc). Changed prior to commit: https://reviews.llvm.org/D39218?vs=120111&id=120516#toc Repository: rL LLVM https:/

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via Phabricator via cfe-commits
hintonda updated this revision to Diff 120518. hintonda added a comment. - Maintain process id map for diagtool. https://reviews.llvm.org/D36347 Files: utils/clangdiag.py Index: utils/clangdiag.py === --- /dev/null +++ utils/cla

Re: [PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Zachary Turner via cfe-commits
On Thu, Oct 26, 2017 at 3:18 PM Don Hinton wrote: > On Thu, Oct 26, 2017 at 2:48 PM, Zachary Turner > wrote: > >> Seems fine, it would be nice if the workflow could be improved a little >> bit so that all you have to do is say `clangdiag break >> —error=“-Wcovered-switch”` or something . I think

r316723 - [CodeGen] Add support for IncompleteArrayType in Obj-C ivars.

2017-10-26 Thread Volodymyr Sapsai via cfe-commits
Author: vsapsai Date: Thu Oct 26 17:56:23 2017 New Revision: 316723 URL: http://llvm.org/viewvc/llvm-project?rev=316723&view=rev Log: [CodeGen] Add support for IncompleteArrayType in Obj-C ivars. Fixes an assertion failure when ivar is a struct containing incomplete array. Also completes support

[PATCH] D38774: [CodeGen] Add support for IncompleteArrayType in Obj-C ivars.

2017-10-26 Thread Volodymyr Sapsai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316723: [CodeGen] Add support for IncompleteArrayType in Obj-C ivars. (authored by vsapsai). Changed prior to commit: https://reviews.llvm.org/D38774?vs=120337&id=120524#toc Repository: rL LLVM http

r316725 - Fix test/Driver/wasm-toolchain.c on windows

2017-10-26 Thread Sam Clegg via cfe-commits
Author: sbc Date: Thu Oct 26 18:20:16 2017 New Revision: 316725 URL: http://llvm.org/viewvc/llvm-project?rev=316725&view=rev Log: Fix test/Driver/wasm-toolchain.c on windows Modified: cfe/trunk/test/Driver/wasm-toolchain.c Modified: cfe/trunk/test/Driver/wasm-toolchain.c URL: http://llvm.or

[PATCH] D39357: Filter out invalid 'target' items from being passed to LLVM

2017-10-26 Thread Erich Keane via Phabricator via cfe-commits
erichkeane created this revision. Craig noticed that CodeGen wasn't properly ignoring the values sent to the target attribute. This patch ignores them. This patch also sets the 'default' for this checking to 'supported', since only X86 has implemented the support for checking valid CPU names an

[PATCH] D39357: Filter out invalid 'target' items from being passed to LLVM

2017-10-26 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: lib/Basic/Targets/X86.cpp:1173 .Case("x86", true) + .Case("x87", true) .Case("x86_32", true) A test also revealed that we forgot this as well. Craig just added sse4, which was also missing. http

[PATCH] D39354: [WebAssembly] Add crt1.o when calling lld

2017-10-26 Thread Sam Clegg via Phabricator via cfe-commits
sbc100 updated this revision to Diff 120529. sbc100 added a comment. - rebase https://reviews.llvm.org/D39354 Files: lib/Driver/ToolChain.cpp lib/Driver/ToolChains/WebAssembly.cpp test/Driver/wasm-toolchain.c Index: test/Driver/wasm-toolchain.c ==

[PATCH] D24933: Enable configuration files in clang

2017-10-26 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added inline comments. Comment at: lib/Driver/Driver.cpp:706 + + // Determine architecture part of the file name, if it presents. + size_t ArchPrefixLen = 0; if it presents. -> if it is present. Comment at: lib/Driver/Driver.cpp:739 +

[PATCH] D39281: [libunwind] Express Registers_*::lastDwarfReg using _LIBUNWIND_HIGHEST_DWARF_REGISTER

2017-10-26 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd accepted this revision. compnerd added inline comments. This revision is now accepted and ready to land. Comment at: src/DwarfInstructions.hpp:170 const int lastReg = R::lastDwarfRegNum(); - assert((int)CFI_Parser::kMaxRegisterNumber > lastReg && + asser

[PATCH] D39280: [libunwind] Use uint64_t for unw_word_t in ARM EHABI

2017-10-26 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added a comment. I dont think that this is correct. IIRC, the unwind specification expects `unw_word_t` to match `uintptr_t` (that is, it should be 32-bits on https://reviews.llvm.org/P32 environments). https://reviews.llvm.org/D39280 __

[PATCH] D39321: ARM: centralise SizeType, PtrDiffType, and IntPtrType

2017-10-26 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd updated this revision to Diff 120534. compnerd added a comment. Catch a couple of missed instances, add more context Repository: rL LLVM https://reviews.llvm.org/D39321 Files: lib/Basic/Targets/ARM.cpp test/Preprocessor/init.c Index: test/Preprocessor/init.c ===

[PATCH] D39280: [libunwind] Use uint64_t for unw_word_t in ARM EHABI

2017-10-26 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In https://reviews.llvm.org/D39280#908825, @compnerd wrote: > I dont think that this is correct. IIRC, the unwind specification expects > `unw_word_t` to match `uintptr_t` (that is, it should be 32-bits on > https://reviews.llvm.org/P32 environments). Ok, well curre

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via Phabricator via cfe-commits
hintonda updated this revision to Diff 120538. hintonda added a comment. - Add ability to add breakpoints matching -W warnings. https://reviews.llvm.org/D36347 Files: utils/clangdiag.py Index: utils/clangdiag.py === --- /dev/nul

Re: [PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via cfe-commits
On Thu, Oct 26, 2017 at 5:44 PM, Zachary Turner wrote: > > > On Thu, Oct 26, 2017 at 3:18 PM Don Hinton wrote: > >> On Thu, Oct 26, 2017 at 2:48 PM, Zachary Turner >> wrote: >> >>> Seems fine, it would be nice if the workflow could be improved a little >>> bit so that all you have to do is say

[PATCH] D39321: ARM: centralise SizeType, PtrDiffType, and IntPtrType

2017-10-26 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added inline comments. Comment at: lib/Basic/Targets/ARM.cpp:231 + else if (Triple.isWatchABI()) +PtrDiffType = SignedLong; + I changed this to: if (Triple.isOSDarwin() && !Triple.isWatchABI()) PtrDiffType = SignedInt; Repository: rL

[PATCH] D39360: [C++11] Don't put empty quotes in static_assert diagnostic.

2017-10-26 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete created this revision. Rakete added a project: clang. This patch removes the empty `""` when using `static_assert(1 + 1 == 3, "");` in the diagnostic: main.cpp:1:1: error: static_assert failed static_assert(1 + 1 == 3, ""); ^ ~~ https://reviews.llvm.org

Re: [PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Zachary Turner via cfe-commits
looks good! Feel free to commit whenever, I'd definitely recommend posting a PSA on cfe-dev@ (after you commit) so that people know about it. You might also get some useful ideas for improvements that way too. On Thu, Oct 26, 2017 at 9:52 PM Don Hinton wrote: > On Thu, Oct 26, 2017 at 5:44 PM,

RE: r316518 - mplement __has_unique_object_representations

2017-10-26 Thread Richard Smith via cfe-commits
Incremental progress is fine :) On 26 Oct 2017 09:53, "Keane, Erich via cfe-commits" < cfe-commits@lists.llvm.org> wrote: Thanks for the review Richard. Would you like me to revert, or can I just make these changes in a new patch? *From:* Richard Smith [mailto:rich...@metafoo.co.uk] *Sent:*

[PATCH] D39360: [C++11] Don't put empty quotes in static_assert diagnostic.

2017-10-26 Thread Kim Gräsman via Phabricator via cfe-commits
kimgr added a comment. Why? It seems easier to me to map back if the diagnostic mirrors the code as-written. https://reviews.llvm.org/D39360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

<    1   2