Re: [PATCH] D12022: Refactored dtor sanitizing into EHScopeStack

2015-08-24 Thread Evgeniy Stepanov via cfe-commits
eugenis added inline comments. Comment at: lib/CodeGen/CGCXX.cpp:44 @@ +43,3 @@ + // destructors. + const ASTRecordLayout &Layout = Context.getASTRecordLayout(D->getParent()); + This is unused. Comment at: lib/CodeGen/CGCXX.cpp:47 @@ +46,3 @@ +

r245914 - Reimplement the PPC explicit option checking to be a bit more obvious

2015-08-24 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Aug 24 19:59:11 2015 New Revision: 245914 URL: http://llvm.org/viewvc/llvm-project?rev=245914&view=rev Log: Reimplement the PPC explicit option checking to be a bit more obvious that we're looking for conflicting options and give an explanation. Modified: cfe/trunk/

[PATCH] D12306: [OpenMP] Implement the creation and registration of the offloading descriptor.

2015-08-24 Thread Samuel Antao via cfe-commits
sfantao created this revision. sfantao added reviewers: ABataev, rjmccall, hfinkel. sfantao added a subscriber: cfe-commits. All the offloading information is bundled into a descriptor that is passed to the runtime library so that it can extract all the binaries and map variables properly. This

r245915 - [ARM NEON] Remove the old AArch64 vset_lane tests. NFC.

2015-08-24 Thread Ahmed Bougacha via cfe-commits
Author: ab Date: Mon Aug 24 20:00:05 2015 New Revision: 245915 URL: http://llvm.org/viewvc/llvm-project?rev=245915&view=rev Log: [ARM NEON] Remove the old AArch64 vset_lane tests. NFC. They are now properly tested, since r245901. Removed: cfe/trunk/test/CodeGen/arm64_vset_lane.c Removed: cf

Re: patch: clarify diagnostic when returned value doesn't match function return type

2015-08-24 Thread Richard Smith via cfe-commits
LGTM On Mon, Aug 10, 2015 at 7:08 PM, Nick Lewycky via cfe-commits < cfe-commits@lists.llvm.org> wrote: > This simple-minded patch extends the case where we report "no viable > conversion from 'X' to 'Y'" to emit a more useful diagnostic "no viable > conversion from returned value of type 'X' to

Re: [PATCH] D11468: [Static Analyzer] The first implementation of nullability checker.

2015-08-24 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Another partial review. Thanks! Anna. Comment at: lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp:312 @@ +311,3 @@ + CheckerContext &C) const { + auto RetExpr = S->getRetValue(); + if (!RetExpr) --

[libcxx] r245918 - Refactor and fix more flaky shared_mutex tests

2015-08-24 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Aug 24 20:28:52 2015 New Revision: 245918 URL: http://llvm.org/viewvc/llvm-project?rev=245918&view=rev Log: Refactor and fix more flaky shared_mutex tests Modified: libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requiremen

Re: [PATCH] D11737: Add -linker (and -linker=) alias for -fuse-ld=

2015-08-24 Thread Richard Smith via cfe-commits
On Mon, Aug 24, 2015 at 5:50 PM, Eric Christopher via cfe-commits < cfe-commits@lists.llvm.org> wrote: > echristo added inline comments. > > > Comment at: include/clang/Driver/Options.td:1853 > @@ -1853,1 +1852,3 @@ > +def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, HelpText<"Use link

Re: [PATCH] D11468: [Static Analyzer] The first implementation of nullability checker.

2015-08-24 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Gabor, there is a lot of the same steps that all callbacks go through. I think refactoring those into subroutines will help with readability of the checker. Looking forward to seeing a new version soon! Anna. Comment at: lib/StaticAnalyzer/Checkers/N

Re: [PATCH] D12022: Refactored dtor sanitizing into EHScopeStack

2015-08-24 Thread Naomi Musgrave via cfe-commits
nmusgrave updated this revision to Diff 33037. nmusgrave marked 4 inline comments as done. nmusgrave added a comment. - Simplify function invocations http://reviews.llvm.org/D12022 Files: lib/CodeGen/CGCXX.cpp lib/CodeGen/CGClass.cpp lib/CodeGen/CodeGenModule.h test/CodeGenCXX/sanitize-

Re: [PATCH] D12278: [X86] Add MSVC-compatible intrinsics for clac, stac, lgdt and sgdt

2015-08-24 Thread Saleem Abdulrasool via cfe-commits
compnerd added a subscriber: compnerd. Comment at: lib/Headers/Intrin.h:961 @@ +960,3 @@ +static __inline__ void __DEFAULT_FN_ATTRS _lgdt(void *__ptr) { + __builtin_ia32_lgdt(__ptr); +} Why does this need a builtin? Is an inline assembly block using lgdt insuff

[PATCH] D12312: Emiting invariant.group.barrier and adding -fstrict-vptrs

2015-08-24 Thread Piotr Padlewski via cfe-commits
Prazek created this revision. Prazek added reviewers: rsmith, rjmccall, majnemer, nlewycky. Prazek added a subscriber: cfe-commits. Keep in mind, that I will not push it untill I will update GVN for using !invariant.group metadata http://reviews.llvm.org/D12312 Files: include/clang/Driver/Opt

Re: [PATCH] D12312: Emiting invariant.group.barrier and adding -fstrict-vptrs

2015-08-24 Thread Piotr Padlewski via cfe-commits
Prazek added a comment. @rsmith I wonder If we have to put invariant.group.barrier when we call regular new expression http://reviews.llvm.org/D12312 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[libcxx] r245922 - Mark test as XFAIL with MSAN until D12311 gets committed

2015-08-24 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Aug 24 23:35:55 2015 New Revision: 245922 URL: http://llvm.org/viewvc/llvm-project?rev=245922&view=rev Log: Mark test as XFAIL with MSAN until D12311 gets committed Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.co

Re: [PATCH] D11700: Added remove taint support to ProgramState.

2015-08-24 Thread Ted Kremenek via cfe-commits
krememek added inline comments. Comment at: include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h:444-448 @@ +443,7 @@ + + SymbolRef + getSymbolFromStmt(const Stmt *S, const LocationContext *LCtx) const; + + const MemRegion* + getRegionFromStmt(const Stmt *S, const L

Re: [PATCH] D11700: Added remove taint support to ProgramState.

2015-08-24 Thread Ted Kremenek via cfe-commits
krememek added inline comments. Comment at: include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h:444-448 @@ +443,7 @@ + + SymbolRef + getSymbolFromStmt(const Stmt *S, const LocationContext *LCtx) const; + + const MemRegion* + getRegionFromStmt(const Stmt *S, const L

Re: r245821 - [modules] Stop updating all identifiers when writing a module. This is

2015-08-24 Thread Sean Silva via cfe-commits
On Sun, Aug 23, 2015 at 8:33 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Sun Aug 23 22:33:22 2015 > New Revision: 245821 > > URL: http://llvm.org/viewvc/llvm-project?rev=245821&view=rev > Log: > [modules] Stop updating all identifiers when writin

[PATCH] D12313: Introduce __builtin_nontemporal_store and __builtin_nontemporal_load.

2015-08-24 Thread Michael Zolotukhin via cfe-commits
mzolotukhin created this revision. mzolotukhin added reviewers: rsmith, aaron.ballman, doug.gregor, t.p.northover, ab, mcrosier, hfinkel, majnemer. mzolotukhin added a subscriber: cfe-commits. Herald added a subscriber: aemerson. Currently clang provides no general way to generate nontemporal loa

Re: [PATCH] D12134: [DEBUG INFO] Source correlation for lambda captured values.

2015-08-24 Thread Eric Christopher via cfe-commits
echristo added a comment. How about: 13. [apple, 14. banana, 15. cherry]{ 16. printf("apple = %d\n",apple); 17. printf("banana = %d\n",banana); 18. printf("cherry = %d\n",cherry); Should be 13, 14, 15 yes? -eric http://reviews.llvm.org/D12134 ___

Re: [PATCH] D12271: [X86] Expose the various _rot intrinsics on non-MS platforms

2015-08-24 Thread Sean Silva via cfe-commits
silvas added a subscriber: silvas. silvas added a comment. In http://reviews.llvm.org/D12271#231204, @rnk wrote: > This looks good. > > As a larger issue, LLVM fast isel definitely won't pattern match this series > of shifts and selects to rotl at -O0. There are some users who want > branchless

Re: [PATCH] D12278: [X86] Add MSVC-compatible intrinsics for clac, stac, lgdt and sgdt

2015-08-24 Thread Michael Kuperstein via cfe-commits
mkuper added inline comments. Comment at: lib/Headers/Intrin.h:961 @@ +960,3 @@ +static __inline__ void __DEFAULT_FN_ATTRS _lgdt(void *__ptr) { + __builtin_ia32_lgdt(__ptr); +} compnerd wrote: > Why does this need a builtin? Is an inline assembly block using lgd

<    1   2