[PATCH] D52926: Rename EM_ConstantExpressionUnevaluated to EM_ConstantFoldUnevaluated, which is actually what the code is currently doing.

2018-10-04 Thread James Y Knight via Phabricator via cfe-commits
jyknight created this revision. jyknight added a reviewer: rsmith. And, configure it to explicitly request equivalent behavior to ConstantFold, instead of getting that behavior accidentally. While it seems that diagnose_if and enable_if were intended to require a constexpr argument, the code was

[PATCH] D52924: Make __builtin_object_size use the EM_IgnoreSideEffects evaluation mode.

2018-10-04 Thread James Y Knight via Phabricator via cfe-commits
jyknight created this revision. jyknight added a reviewer: rsmith. And, since EM_OffsetFold is now unused, remove it. While builtin_object_size intends to ignore the presence of side-effects in its argument, the EM_OffsetFold mode was NOT configured to ignore side-effects. Rather it was effective

Re: r343790 - [clang] Add the exclude_from_explicit_instantiation attribute

2018-10-04 Thread Galina Kistanova via cfe-commits
Hello Louis, This commit broke build step on one of our builders: http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/13042 . . . FAILED: tools/clang/lib/Sema/CMakeFiles/clangSema.dir/SemaExprCXX.cpp.obj C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe /nologo /TP -DEXPENSI

[PATCH] D52891: [AMDGPU] Add -fvisibility-amdgpu-non-kernel-functions

2018-10-04 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added a comment. Tests should also include some global variables https://reviews.llvm.org/D52891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52891: [AMDGPU] Add -fvisibility-amdgpu-non-kernel-functions

2018-10-04 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added a comment. I think the name needs work, but I'm not sure what it should be. I think it should avoid using "non" and "amdgpu" https://reviews.llvm.org/D52891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

[PATCH] D52064: [Sema] Add a note pointing to the first use of an implicit capture

2018-10-04 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. @rsmith, friendly ping. I'm not in a rush on this one, but I know you wanted to see an improvement in lambda capture diagnostics. https://reviews.llvm.org/D52064 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

[PATCH] D52418: [driver][mips] Enable integrated assembler for MIPS64 except N32 ABI selected

2018-10-04 Thread Brad Smith via Phabricator via cfe-commits
brad added a comment. Simon, and what about lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp? Repository: rC Clang https://reviews.llvm.org/D52418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D52920: Introduce code_model macros

2018-10-04 Thread Ali Tamur via Phabricator via cfe-commits
tamur created this revision. tamur added reviewers: compnerd, MaskRay. tamur added a project: clang. Herald added a subscriber: cfe-commits. gcc defines macros such as __code_model_small_ based on the user passed command line flag -mcmodel. clang accepts a flag with the same name and similar eff

[PATCH] D52842: clang-format: Don't insert spaces in front of :: for Java 8 Method References.

2018-10-04 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. krasimir, do you do clang-format reviews these days? If not, do you know who does? https://reviews.llvm.org/D52842 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

r343837 - [WebAssembly] any_true and all_true builtins

2018-10-04 Thread Thomas Lively via cfe-commits
Author: tlively Date: Thu Oct 4 17:59:37 2018 New Revision: 343837 URL: http://llvm.org/viewvc/llvm-project?rev=343837&view=rev Log: [WebAssembly] any_true and all_true builtins Summary: Depends on D52858. Reviewers: aheejin, dschuff, craig.topper Subscribers: sbc100, jgravelle-google, sunfish

r343835 - [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-04 Thread Thomas Lively via cfe-commits
Author: tlively Date: Thu Oct 4 17:58:07 2018 New Revision: 343835 URL: http://llvm.org/viewvc/llvm-project?rev=343835&view=rev Log: [WebAssembly] __builtin_wasm_replace_lane_* builtins Summary: Depends on D52852. Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, sunfish, kris

r343836 - [WebAssembly] saturating arithmetic builtins

2018-10-04 Thread Thomas Lively via cfe-commits
Author: tlively Date: Thu Oct 4 17:58:56 2018 New Revision: 343836 URL: http://llvm.org/viewvc/llvm-project?rev=343836&view=rev Log: [WebAssembly] saturating arithmetic builtins Summary: Depends on D52856. Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, sunfish, kristina, cf

r343834 - [WebAssembly] __builtin_wasm_extract_lane_* builtins

2018-10-04 Thread Thomas Lively via cfe-commits
Author: tlively Date: Thu Oct 4 17:54:44 2018 New Revision: 343834 URL: http://llvm.org/viewvc/llvm-project?rev=343834&view=rev Log: [WebAssembly] __builtin_wasm_extract_lane_* builtins Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, sunfish, kristina, cfe-commits Differenti

[PATCH] D52386: [Lexer] Add udefined_behavior_sanitizer feature

2018-10-04 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added a comment. > This sounds like something that would be better handled in the build system > rather than in source code. In particular, I think you don't actually want to > detect "is this translation unit being compiled with ubsan enabled?", you > instead want to detect "is the

[PATCH] D52913: [WebAssembly] abs and sqrt builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343838: [WebAssembly] abs and sqrt builtins (authored by tlively, committed by ). Changed prior to commit: https://reviews.llvm.org/D52913?vs=168402&id=168424#toc Repository: rC Clang https://review

r343838 - [WebAssembly] abs and sqrt builtins

2018-10-04 Thread Thomas Lively via cfe-commits
Author: tlively Date: Thu Oct 4 18:02:54 2018 New Revision: 343838 URL: http://llvm.org/viewvc/llvm-project?rev=343838&view=rev Log: [WebAssembly] abs and sqrt builtins Summary: Depends on D52910. Reviewers: aheejin, dschuff, craig.topper Subscribers: sbc100, jgravelle-google, sunfish, kristin

[PATCH] D52913: [WebAssembly] abs and sqrt builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343838: [WebAssembly] abs and sqrt builtins (authored by tlively, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D52913 Files: cfe/trunk/includ

[PATCH] D52910: [WebAssembly] any_true and all_true builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343837: [WebAssembly] any_true and all_true builtins (authored by tlively, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D52910 Files: cfe/tru

[PATCH] D52858: [WebAssembly] saturating arithmetic builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343836: [WebAssembly] saturating arithmetic builtins (authored by tlively, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D52858 Files: cfe/tru

[PATCH] D52856: [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343835: [WebAssembly] __builtin_wasm_replace_lane_* builtins (authored by tlively, committed by ). Changed prior to commit: https://reviews.llvm.org/D52856?vs=168387&id=168421#toc Repository: rC Clan

[PATCH] D52852: [WebAssembly] __builtin_wasm_extract_lane_* builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343834: [WebAssembly] __builtin_wasm_extract_lane_* builtins (authored by tlively, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D52852 Files:

Re: [libcxx] r342073 - Implement the infrastructure for feature-test macros. Very few actual feature test macros, though. Reviewed as: https://reviews.llvm.org/D51955

2018-10-04 Thread Eric Fiselier via cfe-commits
On Thu, Oct 4, 2018 at 11:42 AM Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Perhaps libc++ could provide a __version file that contains the headers, > and use #include <__version> internally? We'd still need a header > that just includes <__version> for conformance, but t

[PATCH] D52919: Emit diagnostic note when calling an invalid function declaration.

2018-10-04 Thread James Y Knight via Phabricator via cfe-commits
jyknight created this revision. jyknight added a reviewer: rsmith. The comment said it was intentionally not emitting any diagnostic because the declaration itself was already diagnosed. However, everywhere else that wants to not emit a diagnostic without an extra note emits note_invalid_subexpr_i

[PATCH] D52918: Emit CK_NoOp casts in C mode, not just C++.

2018-10-04 Thread James Y Knight via Phabricator via cfe-commits
jyknight created this revision. jyknight added a reviewer: rsmith. Previously, it had been using CK_BitCast even for casts that only change const/restrict/volatile. Now it will use CK_Noop where appropriate. This is an alternate solution to r336746. https://reviews.llvm.org/D52918 Files: cla

[PATCH] D52443: Thread safety analysis: Examine constructor arguments

2018-10-04 Thread Aaron Puchert via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343831: Thread safety analysis: Examine constructor arguments (authored by aaronpuchert, committed by ). Changed prior to commit: https://reviews.llvm.org/D52443?vs=167856&id=168414#toc Repository: r

r343831 - Thread safety analysis: Examine constructor arguments

2018-10-04 Thread Aaron Puchert via cfe-commits
Author: aaronpuchert Date: Thu Oct 4 16:51:14 2018 New Revision: 343831 URL: http://llvm.org/viewvc/llvm-project?rev=343831&view=rev Log: Thread safety analysis: Examine constructor arguments Summary: Instead of only examining call arguments, we also examine constructor arguments applying the sa

[PATCH] D52807: [COFF, ARM64] Add _InterlockedCompareExchangePointer_nf intrinsic

2018-10-04 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang updated this revision to Diff 168403. https://reviews.llvm.org/D52807 Files: include/clang/Basic/Builtins.def lib/CodeGen/CGBuiltin.cpp test/CodeGen/ms-intrinsics.c Index: test/CodeGen/ms-intrinsics.c === --- test/Code

[PATCH] D52807: [COFF, ARM64] Add _InterlockedCompareExchangePointer_nf intrinsic

2018-10-04 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang added a comment. In https://reviews.llvm.org/D52807#1255835, @efriedma wrote: > How are you testing? > > You might see different behavior at -O0. Yes, I was testing at -O0. At -O2 I can see monotonic ordering affect the choice of LD/ST insts used. https://reviews.llvm.org/D52807 __

[PATCH] D52578: Thread safety analysis: Allow scoped releasing of capabilities

2018-10-04 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:893 private: - SmallVector UnderlyingMutexes; + enum UnderlyingCapabilityKind { +UCK_Acquired, ///< Any kind of acquired capability. delesley wrote: > aaronpuchert wrote

[PATCH] D52913: [WebAssembly] abs and sqrt builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
tlively created this revision. tlively added reviewers: aheejin, dschuff, craig.topper. Herald added subscribers: cfe-commits, kristina, sunfish, jgravelle-google, sbc100. Depends on https://reviews.llvm.org/D52910. Repository: rC Clang https://reviews.llvm.org/D52913 Files: include/clang

[PATCH] D52443: Thread safety analysis: Examine constructor arguments

2018-10-04 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley accepted this revision. delesley added inline comments. This revision is now accepted and ready to land. Comment at: lib/Analysis/ThreadSafety.cpp:2046 const CXXConstructorDecl *D = Exp->getConstructor(); if (D && D->isCopyConstructor()) { const Expr* Source =

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Bill Wendling via Phabricator via cfe-commits
void updated this revision to Diff 168395. void marked an inline comment as done. Repository: rC Clang https://reviews.llvm.org/D52854 Files: include/clang/AST/Expr.h include/clang/Sema/Sema.h lib/AST/Expr.cpp lib/AST/ExprConstant.cpp lib/CodeGen/CGBuiltin.cpp lib/Sema/SemaExpr.cpp

r343824 - [COFF, ARM64] Add __getReg intrinsic

2018-10-04 Thread Mandeep Singh Grang via cfe-commits
Author: mgrang Date: Thu Oct 4 15:32:42 2018 New Revision: 343824 URL: http://llvm.org/viewvc/llvm-project?rev=343824&view=rev Log: [COFF, ARM64] Add __getReg intrinsic Reviewers: rnk, mstorsjo, compnerd, TomTan, haripul, javed.absar, efriedma Reviewed By: efriedma Subscribers: peter.smith, ef

[PATCH] D52838: [COFF, ARM64] Add __getReg intrinsic

2018-10-04 Thread Mandeep Singh Grang via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343824: [COFF, ARM64] Add __getReg intrinsic (authored by mgrang, committed by ). Repository: rC Clang https://reviews.llvm.org/D52838 Files: include/clang/Basic/BuiltinsAArch64.def lib/CodeGen/CG

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Bill Wendling via Phabricator via cfe-commits
void marked 9 inline comments as done. void added a comment. In https://reviews.llvm.org/D52854#1255755, @rsmith wrote: > Essentially, you would add a `ConstExpr` node (or similar), teach > `IgnoreImplicit` and friends to step over it I've been trying to do this to no avail. Here's the code I

[PATCH] D52910: [WebAssembly] any_true and all_true builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
tlively created this revision. tlively added reviewers: aheejin, dschuff, craig.topper. Herald added subscribers: cfe-commits, kristina, sunfish, jgravelle-google, sbc100. Depends on https://reviews.llvm.org/D52858. Repository: rC Clang https://reviews.llvm.org/D52910 Files: include/clang

[PATCH] D52807: [COFF, ARM64] Add _InterlockedCompareExchangePointer_nf intrinsic

2018-10-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:3003 + case Builtin::BI_InterlockedCompareExchangePointer: + case Builtin::BI_InterlockedCompareExchangePointer_nf: { llvm::Type *RTy; efriedma wrote: > rnk wrote: > > mgrang wrote: > >

[PATCH] D52578: Thread safety analysis: Allow scoped releasing of capabilities

2018-10-04 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:893 private: - SmallVector UnderlyingMutexes; + enum UnderlyingCapabilityKind { +UCK_Acquired, ///< Any kind of acquired capability. aaronpuchert wrote: > delesley wrote: >

[PATCH] D52578: Thread safety analysis: Allow scoped releasing of capabilities

2018-10-04 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:951 +} } else { +// We're removing the underlying mutex. Warn on double unlocking. aaronpuchert wrote: > delesley wrote: > > I find this very confusing. A lock here

[PATCH] D52856: [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
tlively added a comment. In https://reviews.llvm.org/D52856#1255905, @dschuff wrote: > W is int64_t (which is long long for wasm32 and would probably be long for > wasm64 since that would probably LP64 (like Linux) rather than LLP64 (Like > Win64). So if we want it to be the same for both wasm3

[PATCH] D52856: [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-04 Thread Derek Schuff via Phabricator via cfe-commits
dschuff added a comment. W is int64_t (which is long long for wasm32 and would probably be long for wasm64 since that would probably LP64 (like Linux) rather than LLP64 (Like Win64). So if we want it to be the same for both wasm32 and wasm64, I guess we want LL. Repository: rC Clang https:

[PATCH] D52858: [WebAssembly] saturating arithmetic builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
tlively updated this revision to Diff 168388. tlively added a comment. - Remove V:128: attributes Repository: rC Clang https://reviews.llvm.org/D52858 Files: include/clang/Basic/BuiltinsWebAssembly.def lib/CodeGen/CGBuiltin.cpp test/CodeGen/builtins-wasm.c Index: test/CodeGen/builtins

[PATCH] D52674: [AST] Add Obj-C discriminator to MS ABI RTTI

2018-10-04 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D52674#1253408, @rjmccall wrote: > In https://reviews.llvm.org/D52674#1253401, @smeenai wrote: > > > Actually, I take that back ... I just misread the stack trace. > > > > There are a bunch of hops between the `mangleCXXRTTI` call and the ultim

[PATCH] D52856: [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
tlively updated this revision to Diff 168387. tlively added a comment. - Replace Wi with LLi and remove V:128: Repository: rC Clang https://reviews.llvm.org/D52856 Files: include/clang/Basic/BuiltinsWebAssembly.def lib/CodeGen/CGBuiltin.cpp test/CodeGen/builtins-wasm.c Index: test/Cod

[PATCH] D52852: [WebAssembly] __builtin_wasm_extract_lane_* builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
tlively updated this revision to Diff 168385. tlively added a comment. - Replace Wi with LLi in signature string - Remove unnecessary V:128: attribute Repository: rC Clang https://reviews.llvm.org/D52852 Files: include/clang/Basic/BuiltinsWebAssembly.def lib/CodeGen/CGBuiltin.cpp test/

[PATCH] D52673: [HIP] Remove disabled irif library

2018-10-04 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 added a comment. I've added a hip.amdgcn.bc library for the fence functions that were originally in irif library. https://reviews.llvm.org/D52673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

[PATCH] D52673: [HIP] Remove disabled irif library

2018-10-04 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 168384. ashi1 edited the summary of this revision. Herald added a subscriber: jfb. https://reviews.llvm.org/D52673 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/hip-device-libs.hip Index: test/Driver/hip-device-libs.hip

[PATCH] D52311: [clangd] Add support for hierarchical documentSymbol

2018-10-04 Thread Simon Marchi via Phabricator via cfe-commits
simark added a comment. I just tried this, this looks very promising! It should help build our outline view in a much more robust way than we do currently. A nit for the final patch, I would suggest omitting the fields that are optional, like `children` (when the list is empty) and `deprecated

[PATCH] D52754: [clang-doc] Clean up Markdown output

2018-10-04 Thread Julie Hockett via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343818: [clang-doc] Clean up Markdown output (authored by juliehockett, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D52754?vs=167851&id=168

[clang-tools-extra] r343818 - [clang-doc] Clean up Markdown output

2018-10-04 Thread Julie Hockett via cfe-commits
Author: juliehockett Date: Thu Oct 4 14:34:13 2018 New Revision: 343818 URL: http://llvm.org/viewvc/llvm-project?rev=343818&view=rev Log: [clang-doc] Clean up Markdown output Make the output for the MDGenerator cleaner and more readable. Differential Revision: https://reviews.llvm.org/D52754 M

[PATCH] D52856: [WebAssembly] __builtin_wasm_replace_lane_* builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
tlively added inline comments. Comment at: include/clang/Basic/BuiltinsWebAssembly.def:55 +BUILTIN(__builtin_wasm_replace_lane_i32x4, "V4iV4iIii", "ncV:128:") +BUILTIN(__builtin_wasm_replace_lane_i64x2, "V2WiV2WiIiWi", "ncV:128:") +BUILTIN(__builtin_wasm_replace_lane_f32x4, "V4fV

[PATCH] D52858: [WebAssembly] saturating arithmetic builtins

2018-10-04 Thread Thomas Lively via Phabricator via cfe-commits
tlively added inline comments. Comment at: include/clang/Basic/BuiltinsWebAssembly.def:59 +BUILTIN(__builtin_wasm_add_saturate_s_i8x16, "V16cV16cV16c", "ncV:128:") +BUILTIN(__builtin_wasm_add_saturate_u_i8x16, "V16cV16cV16c", "ncV:128:") craig.topper wrote: > D

[PATCH] D52888: Thread safety analysis: Handle conditional expression in getTrylockCallExpr

2018-10-04 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added a comment. Additional branches (with non-tail recursion unfortunately) would allow the following to work: void foo16() { if (cond ? mu.TryLock() : false) mu.Unlock(); } void foo17() { if (cond ? true : !mu.TryLock()) return; mu.Unlock(); } W

[PATCH] D51741: [coro]Pass rvalue reference for named local variable to return_value

2018-10-04 Thread Tanoy Sinha via Phabricator via cfe-commits
tks2103 added a comment. @modocache I do need someone to land this for me! Take it away! Repository: rC Clang https://reviews.llvm.org/D51741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D51741: [coro]Pass rvalue reference for named local variable to return_value

2018-10-04 Thread Tanoy Sinha via Phabricator via cfe-commits
tks2103 updated this revision to Diff 168380. tks2103 added a comment. comply with clang-format Repository: rC Clang https://reviews.llvm.org/D51741 Files: lib/Sema/SemaCoroutine.cpp test/SemaCXX/coroutine-rvo.cpp Index: test/SemaCXX/coroutine-rvo.cpp ==

[PATCH] D52610: [Esan] Port cache frag to FreeBSD

2018-10-04 Thread David CARLIER via Phabricator via cfe-commits
devnexen added a comment. ping compiler-rt component committed :-) Repository: rC Clang https://reviews.llvm.org/D52610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52807: [COFF, ARM64] Add _InterlockedCompareExchangePointer_nf intrinsic

2018-10-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. How are you testing? You might see different behavior at -O0. Repository: rC Clang https://reviews.llvm.org/D52807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D52838: [COFF, ARM64] Add __getReg intrinsic

2018-10-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/D52838 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D52807: [COFF, ARM64] Add _InterlockedCompareExchangePointer_nf intrinsic

2018-10-04 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang added a comment. AArch64 Psuedo Expansion does not seem to honor AtomicOrdering types (SequentiallyConsistent/Monotonic). It seems to always generate LDAXRX/STLXRX for 64-bit Cmp_Xchg. Repository: rC Clang https://reviews.llvm.org/D52807 ___

[PATCH] D52807: [COFF, ARM64] Add _InterlockedCompareExchangePointer_nf intrinsic

2018-10-04 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang added a comment. MSVC seems to generate ldaxr/stlxr (as well as dmb) for InterlockedCompareExchangePointer and ldxr/stxr for InterlockedCompareExchangePointer_nf. void *test_InterlockedCompareExchangePointer(void * volatile *Destination, v

[PATCH] D52838: [COFF, ARM64] Add __getReg intrinsic

2018-10-04 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang updated this revision to Diff 168371. https://reviews.llvm.org/D52838 Files: include/clang/Basic/BuiltinsAArch64.def lib/CodeGen/CGBuiltin.cpp lib/Headers/intrin.h lib/Sema/SemaChecking.cpp test/CodeGen/arm64-microsoft-intrinsics.c test/Sema/builtins-microsoft-arm64.c Index: t

[PATCH] D52838: [COFF, ARM64] Add __getReg intrinsic

2018-10-04 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang updated this revision to Diff 168368. https://reviews.llvm.org/D52838 Files: include/clang/Basic/BuiltinsAArch64.def lib/CodeGen/CGBuiltin.cpp lib/Headers/intrin.h lib/Sema/SemaChecking.cpp test/CodeGen/arm64-microsoft-intrinsics.c test/Sema/builtins-microsoft-arm64.c Index: t

[PATCH] D52906: CSA: allow plugins built as shared libraries to receive events

2018-10-04 Thread Joe Ranieri via Phabricator via cfe-commits
jranieri-grammatech created this revision. Herald added a subscriber: cfe-commits. Event types are uniqued by using the addresses of a local static defined in a header files, but it isn't the same across shared library boundaries and plugins can't currently handle ImplicitNullDerefEvents. Repo

[PATCH] D52905: CSA: fix accessing GDM data from shared libraries

2018-10-04 Thread Joe Ranieri via Phabricator via cfe-commits
jranieri-grammatech created this revision. Herald added subscribers: cfe-commits, mgorny. The `GDMIndex` functions return a pointer that's used as a key for looking up data, but addresses of local statics defined in header files aren't the same across shared library boundaries and the result is

[PATCH] D52807: [COFF, ARM64] Add _InterlockedCompareExchangePointer_nf intrinsic

2018-10-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:3003 + case Builtin::BI_InterlockedCompareExchangePointer: + case Builtin::BI_InterlockedCompareExchangePointer_nf: { llvm::Type *RTy; mgrang wrote: > rnk wrote: > > Is the no fence version r

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added inline comments. Comment at: test/Sema/builtins.c:125 +// __builtin_constant_p cannot resolve non-constants as a file scoped array. +int expr; such as Otherwise it's possible to read this as the non-constants being resolved to a file sco

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added inline comments. Comment at: lib/Sema/SemaExpr.cpp:15621-15623 +for (InitListExpr::iterator II = E->begin(), IE = E->end(); + II != IE; ++II) + Visit(*II); nickdesaulniers wrote: > void wrote: > > nickdesaulniers

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. Rather than adding a `CanDelayEvaluation` flag to call expressions, I think it would be substantially better to introduce a new `Expr` wrapper node for expressions that are required to be constant expressions. (That'd eventually also give us a place to cache the evaluate

[PATCH] D52843: Update Clang Windows getting started docs

2018-10-04 Thread Reid Kleckner 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 rC343809: Update Clang Windows getting started docs (authored by rnk, committed by ). Changed prior to commit: https://re

[PATCH] D52843: Update Clang Windows getting started docs

2018-10-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk marked an inline comment as done. rnk added a comment. I'm going to go ahead and commit this. Hopefully it's more accurate and useful than what we have, and we can fix any issues in post. https://reviews.llvm.org/D52843 ___ cfe-commits mailing

r343809 - Update Clang Windows getting started docs

2018-10-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Oct 4 13:34:52 2018 New Revision: 343809 URL: http://llvm.org/viewvc/llvm-project?rev=343809&view=rev Log: Update Clang Windows getting started docs Summary: - Update the example VS project generation to use VS2017. - Add docs for generating ninja build files, since they ar

[PATCH] D52888: Thread safety analysis: Handle conditional expression in getTrylockCallExpr

2018-10-04 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added inline comments. Comment at: test/SemaCXX/warn-thread-safety-analysis.cpp:1879-1880 + void foo13() { +if (mu.TryLock() ? 1 : 0) + mu.Unlock(); + } aaron.ballman wrote: > aaronpuchert wrote: > > aaron.ballman wrote: > > > Can you add

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added inline comments. Comment at: lib/Sema/SemaExpr.cpp:15621-15623 +for (InitListExpr::iterator II = E->begin(), IE = E->end(); + II != IE; ++II) + Visit(*II); void wrote: > nickdesaulniers wrote: > > nickdesaulniers

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Bill Wendling via Phabricator via cfe-commits
void added inline comments. Comment at: lib/Sema/SemaExpr.cpp:15621-15623 +for (InitListExpr::iterator II = E->begin(), IE = E->end(); + II != IE; ++II) + Visit(*II); nickdesaulniers wrote: > nickdesaulniers wrote: > > `std::for_each`

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added inline comments. Comment at: lib/Sema/SemaExpr.cpp:15621-15623 +for (InitListExpr::iterator II = E->begin(), IE = E->end(); + II != IE; ++II) + Visit(*II); nickdesaulniers wrote: > `std::for_each`? Sorry, posted

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added inline comments. Comment at: lib/Sema/SemaExpr.cpp:15621-15623 +for (InitListExpr::iterator II = E->begin(), IE = E->end(); + II != IE; ++II) + Visit(*II); `std::for_each`? https://reviews.llvm.org/D52854 __

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Bill Wendling via Phabricator via cfe-commits
void updated this revision to Diff 168356. void added a comment. Removed unused field. https://reviews.llvm.org/D52854 Files: include/clang/AST/Expr.h include/clang/Sema/Sema.h lib/AST/Expr.cpp lib/AST/ExprConstant.cpp lib/CodeGen/CGBuiltin.cpp lib/Sema/SemaExpr.cpp lib/Sema/SemaT

[PATCH] D52418: [driver][mips] Enable integrated assembler for MIPS64 except N32 ABI selected

2018-10-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm, sorry it got lost. Repository: rC Clang https://reviews.llvm.org/D52418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D52892: [Clang-tidy] readability check to convert numerical constants to std::numeric_limits

2018-10-04 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: clang-tidy/readability/NumericalCostantsToMaxIntCheck.cpp:44 +SrcMgr::CharacteristicKind FileType) { + + if (FileName == "limits") { Unnecessary empty line. Repository: rCTE Clang Tools Extra https://rev

[PATCH] D52838: [COFF, ARM64] Add __getReg intrinsic

2018-10-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Needs a testcase for the error message like we have for other intrinsics in test/Sema/builtins-arm64.c . Otherwise LGTM. https://reviews.llvm.org/D52838 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

[PATCH] D52395: Thread safety analysis: Require exclusive lock for passing by non-const reference

2018-10-04 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley added a comment. For future patches, please add Richard Trieu (rtr...@google.com) as a subscriber. I will continue to try and do code reviews, but Richard is on the team that actually rolls out new compiler changes. Thanks! BTW, the issue is not just that changes may introduce false

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-10-04 Thread Shoaib Meenai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343808: [AST] Revert mangling changes from r339428 (authored by smeenai, committed by ). Changed prior to commit: https://reviews.llvm.org/D52581?vs=167219&id=168354#toc Repository: rC Clang https:/

r343808 - [AST] Revert mangling changes from r339428

2018-10-04 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Thu Oct 4 12:50:14 2018 New Revision: 343808 URL: http://llvm.org/viewvc/llvm-project?rev=343808&view=rev Log: [AST] Revert mangling changes from r339428 As discussed in https://reviews.llvm.org/D50144, we want Obj-C classes to have the same mangling as C++ structs, to supp

[PATCH] D52521: [Sema] DR727: Ensure we pick up enclosing template instantiation arguments for a class-scope explicit specialization.

2018-10-04 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added inline comments. Comment at: clang/include/clang/AST/DeclTemplate.h:1771-1779 + void setIsSpecializedMember(bool V = true) { IsSpecializedMember = V; } + + /// If this class template specialization was declared at class scope (DR727). + /// For example,

[PATCH] D52521: [Sema] DR727: Ensure we pick up enclosing template instantiation arguments for a class-scope explicit specialization.

2018-10-04 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington updated this revision to Diff 168352. erik.pilkington added a comment. Address @rsmith's review comments. https://reviews.llvm.org/D52521 Files: clang/include/clang/AST/DeclTemplate.h clang/lib/Sema/SemaTemplateInstantiate.cpp clang/test/SemaCXX/member-spec-dr727.cpp Inde

[PATCH] D52838: [COFF, ARM64] Add __getReg intrinsic

2018-10-04 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang updated this revision to Diff 168353. https://reviews.llvm.org/D52838 Files: include/clang/Basic/BuiltinsAArch64.def lib/CodeGen/CGBuiltin.cpp lib/Headers/intrin.h lib/Sema/SemaChecking.cpp test/CodeGen/arm64-microsoft-intrinsics.c Index: test/CodeGen/arm64-microsoft-intrinsics

[PATCH] D51725: Allow un-setting the compilation database path

2018-10-04 Thread Simon Marchi via Phabricator via cfe-commits
simark added a comment. So I revisited this today. In the end, restarting clangd in our IDE works well. It should be merged anytime soon: https://github.com/theia-ide/theia/pull/3017 But I am wondering what to do with the feature that allows clangd to change compilation database path using t

[PATCH] D52838: [COFF, ARM64] Add __getReg intrinsic

2018-10-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:6589 +std::string Reg = StrVal == "31" ? "sp" : + "x" + std::string(StrVal.c_str()); + Could you just write this as `std::string Reg = Value == 31 ? "sp" : "x" + Value

[PATCH] D52854: Use is.constant intrinsic for __builtin_constant_p

2018-10-04 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added inline comments. Comment at: lib/Sema/SemaExpr.cpp:15604 +public EvaluatedExprVisitor { + Sema &S; + ../tools/clang/lib/Sema/SemaExpr.cpp:15619:13: warning: private field 'S' is not used [-Wunused-private-field] Sema &S;

[PATCH] D52814: [PassManager/Sanitizer] Enable usage of ported AddressSanitizer passes with -fsanitize=address

2018-10-04 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan updated this revision to Diff 168348. leonardchan marked an inline comment as done. Repository: rC Clang https://reviews.llvm.org/D52814 Files: lib/CodeGen/BackendUtil.cpp test/CodeGen/asan-new-pm.ll Index: test/CodeGen/asan-new-pm.ll =

[PATCH] D52870: [NestedNameSpecifier] Add missing stream-specific dump methods

2018-10-04 Thread Stephen Kelly via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL343807: [NestedNameSpecifier] Add missing stream-specific dump methods (authored by steveire, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D5287

[PATCH] D52814: [PassManager/Sanitizer] Enable usage of ported AddressSanitizer passes with -fsanitize=address

2018-10-04 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added a comment. In https://reviews.llvm.org/D52814#1254901, @philip.pfaffe wrote: > Is this the right place in the pipeline to put the passes? The legacy PM > inserts the asan passes at EP_OptimizerLast, why not do the same thing? I noticed this also and thought adding this using

r343807 - [NestedNameSpecifier] Add missing stream-specific dump methods

2018-10-04 Thread Stephen Kelly via cfe-commits
Author: steveire Date: Thu Oct 4 12:22:00 2018 New Revision: 343807 URL: http://llvm.org/viewvc/llvm-project?rev=343807&view=rev Log: [NestedNameSpecifier] Add missing stream-specific dump methods Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org

[PATCH] D52870: [NestedNameSpecifier] Add missing stream-specific dump methods

2018-10-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Repository: rC Clang https://reviews.llvm.org/D52870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

[PATCH] D52888: Thread safety analysis: Handle conditional expression in getTrylockCallExpr

2018-10-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:1445 + if (!TCond && FCond) { +Negate = !Negate; +return getTrylockCallExpr(COP->getCond(), C, Negate); aaronpuchert wrote: > aaron.ballman wrote: > > Rather than

[PATCH] D52888: Thread safety analysis: Handle conditional expression in getTrylockCallExpr

2018-10-04 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added inline comments. Comment at: lib/Analysis/ThreadSafety.cpp:1445 + if (!TCond && FCond) { +Negate = !Negate; +return getTrylockCallExpr(COP->getCond(), C, Negate); aaron.ballman wrote: > Rather than do an assignment here, wh

[PATCH] D52773: clang-cl: Add /showFilenames option (PR31957)

2018-10-04 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. It doesn't address the version skew issue, but my blanket argument against any new environment variable is the existance of things like `_CL_` and `CCC_OVERRIDE_OPTIONS`. You can set any compiler flag you want from the environment, so we should standardize on one way of set

[PATCH] D52870: [NestedNameSpecifier] Add missing stream-specific dump methods

2018-10-04 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 168338. steveire added a comment. Format Repository: rC Clang https://reviews.llvm.org/D52870 Files: include/clang/AST/NestedNameSpecifier.h lib/AST/NestedNameSpecifier.cpp Index: lib/AST/NestedNameSpecifier.cpp ===

[PATCH] D52773: clang-cl: Add /showFilenames option (PR31957)

2018-10-04 Thread Zachary Turner via Phabricator via cfe-commits
zturner added a comment. In https://reviews.llvm.org/D52773#1255491, @thakis wrote: > In https://reviews.llvm.org/D52773#1255093, @zturner wrote: > > > I agree magic environment variables are bad, but without it we don’t > > address the only current actual use we have for this, which is making t

[PATCH] D52794: [analyzer][PlistMacroExpansion] Part 2.: Retrieving the macro name and primitive expansion

2018-10-04 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 168334. https://reviews.llvm.org/D52794 Files: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp.plist test/Analysis/plist-macros-with-expansion.cpp Index: test/Analysis/plist-macros-wit

  1   2   3   >