[PATCH] D117087: [C++20] [Coroutines] Implement return value optimization for get_return_object

2022-02-15 Thread JunMa via Phabricator via cfe-commits
junparser accepted this revision. junparser added a comment. This revision is now accepted and ready to land. LGTM. Thanks! Comment at: clang/lib/CodeGen/CGCoroutine.cpp:650 - if (Stmt *Ret = S.getReturnStmt()) + if (Stmt *Ret = S.getReturnStmt()) { +// Since we already

[PATCH] D119716: [clang][lex] NFC: De-duplicate some #include_next logic

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 408730. jansvoboda11 added a comment. Return `std::pair` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119716/new/ https://reviews.llvm.org/D119716 Files: clang/include/clang/Lex/Preprocessor.h clang/

[clang] 86bde99 - Insert a blurb about the -fzero-call-used-regs feature

2022-02-15 Thread Bill Wendling via cfe-commits
Author: Bill Wendling Date: 2022-02-15T00:06:58-08:00 New Revision: 86bde99a9027f875383e38bfd3a863abae3d0e75 URL: https://github.com/llvm/llvm-project/commit/86bde99a9027f875383e38bfd3a863abae3d0e75 DIFF: https://github.com/llvm/llvm-project/commit/86bde99a9027f875383e38bfd3a863abae3d0e75.diff

[PATCH] D119592: Insert a blurb about the -fzero-call-used-regs feature

2022-02-15 Thread Bill Wendling via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG86bde99a9027: Insert a blurb about the -fzero-call-used-regs feature (authored by void). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119592/new/ https://r

[PATCH] D119721: [clang][lex] Use `ConstSearchDirIterator` in lookup cache

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added inline comments. Comment at: clang/lib/Lex/HeaderSearch.cpp:710 + CacheLookup.HitIt = HitIt; + noteLookupUsage(&*HitIt - &*search_dir_begin(), Loc); } ahoppen wrote: > I haven’t looked into this in total details but `&*` looks a little awkwa

[PATCH] D119721: [clang][lex] Use `ConstSearchDirIterator` in lookup cache

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 408733. jansvoboda11 added a comment. Use `std::next` and `ConstSearchDirIterator::Idx`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119721/new/ https://reviews.llvm.org/D119721 Files: clang/include/c

[PATCH] D119721: [clang][lex] Use `ConstSearchDirIterator` in lookup cache

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added inline comments. Comment at: clang/lib/Lex/HeaderSearch.cpp:710 + CacheLookup.HitIt = HitIt; + noteLookupUsage(&*HitIt - &*search_dir_begin(), Loc); } jansvoboda11 wrote: > ahoppen wrote: > > I haven’t looked into this in total details but `

[PATCH] D119785: [clang-format] Fix formatting of struct-like records followed by variable declaration.

2022-02-15 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay accepted this revision. MyDeveloperDay added a comment. This revision is now accepted and ready to land. LGTM, I really like the approach of us annotating more like this, it makes the token much easier to reason about when there is ambiguity. nice one! Comment a

[PATCH] D119785: [clang-format] Fix formatting of struct-like records followed by variable declaration.

2022-02-15 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks accepted this revision. HazardyKnusperkeks added inline comments. Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:470 +ShouldMerge = Style.AllowShortEnumsOnASingleLine; + } else if (TheLine->Last->isOneOf(TT_ClassLBrace, TT_StructLBrace)) {

[PATCH] D118700: Add support to --gcc-toolchain flag for GCC compiled with --enable-version-specific-runtime-libs.

2022-02-15 Thread Raúl Peñacoba via Phabricator via cfe-commits
rpenacob added a comment. To test that this change does not break anything we built clang trunk with the patch. Our stage one looks like this. -DCMAKE_INSTALL_PREFIX=/path/to/stage-one -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=clang -DLLVM_ENABLE_RUNTIMES="libcxx;compiler-rt;libcxxabi;li

[PATCH] D119682: [clang-format][docs] Fix incorrect 'clang-format 13' configuration options markers

2022-02-15 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay accepted this revision. MyDeveloperDay added a subscriber: HazardyKnusperkeks. MyDeveloperDay added a comment. This revision is now accepted and ready to land. @HazardyKnusperkeks could you validate the `IndentRequiresClause` I know I added `IndentRequires` in 13 but is this the sa

[PATCH] D119682: [clang-format][docs] Fix incorrect 'clang-format 13' configuration options markers

2022-02-15 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added a comment. I understand what you are saying re 'IndentRequiresClause' but this leaves us with people with "IndentRequires" in their .clang-format without any understanding of what it means? i.e. what about the 14.0 people? if we've renamed an option then the documentation s

[PATCH] D119716: [clang][lex] NFC: De-duplicate some #include_next logic

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added inline comments. Comment at: clang/include/clang/Lex/Preprocessor.h:2207 + const FileEntry *&LookupFromFile) const; + /// Install the standard preprocessor pragmas: ahoppen wrote: > I there a reason why this uses an

[PATCH] D119722: [clang][lex] Use `SearchDirIterator` types in for loops

2022-02-15 Thread Alex Hoppen via Phabricator via cfe-commits
ahoppen accepted this revision. ahoppen added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Lex/HeaderSearch.cpp:1450 Optional HeaderSearch::searchDirIdx(const DirectoryLookup &DL) const { - for (unsigned I = 0; I < SearchDirs.size();

[clang-tools-extra] 7a124f4 - [clang][lex] Remove `PPCallbacks::FileNotFound()`

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T09:48:25+01:00 New Revision: 7a124f4859d5c4093467abc2e734f8ab15e78cc6 URL: https://github.com/llvm/llvm-project/commit/7a124f4859d5c4093467abc2e734f8ab15e78cc6 DIFF: https://github.com/llvm/llvm-project/commit/7a124f4859d5c4093467abc2e734f8ab15e78cc6.diff L

[clang] edd09bb - [clang][lex] Remove `Preprocessor::GetCurDirLookup()`

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T09:48:25+01:00 New Revision: edd09bb5a49c6a5dac29714af661d1ddffe50a72 URL: https://github.com/llvm/llvm-project/commit/edd09bb5a49c6a5dac29714af661d1ddffe50a72 DIFF: https://github.com/llvm/llvm-project/commit/edd09bb5a49c6a5dac29714af661d1ddffe50a72.diff L

[PATCH] D119708: [clang][lex] Remove `PPCallbacks::FileNotFound()`

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG7a124f4859d5: [clang][lex] Remove `PPCallbacks::FileNotFound()` (authored by jansvoboda11). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119708/new/ https:

[PATCH] D119714: [clang][lex] Remove `Preprocessor::GetCurDirLookup()`

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGedd09bb5a49c: [clang][lex] Remove `Preprocessor::GetCurDirLookup()` (authored by jansvoboda11). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119714/new/ ht

[clang] fd2dff1 - [clang][lex][minimizer] Ensure whitespace between squashed lines

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T09:49:03+01:00 New Revision: fd2dff17c53dbfd89789989bedd949c496e7b6b7 URL: https://github.com/llvm/llvm-project/commit/fd2dff17c53dbfd89789989bedd949c496e7b6b7 DIFF: https://github.com/llvm/llvm-project/commit/fd2dff17c53dbfd89789989bedd949c496e7b6b7.diff L

[PATCH] D119231: [clang][lex][minimizer] Ensure whitespace between squashed lines

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGfd2dff17c53d: [clang][lex][minimizer] Ensure whitespace between squashed lines (authored by jansvoboda11). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D1192

[clang] d8298f0 - [clang][lex][minimizer] Avoid treating path separators as comments

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T09:49:19+01:00 New Revision: d8298f04a9681fcbb16d7fc4872690b5504a0d52 URL: https://github.com/llvm/llvm-project/commit/d8298f04a9681fcbb16d7fc4872690b5504a0d52 DIFF: https://github.com/llvm/llvm-project/commit/d8298f04a9681fcbb16d7fc4872690b5504a0d52.diff L

[PATCH] D119226: [clang][lex][minimizer] Avoid treating path separators as comments

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGd8298f04a968: [clang][lex][minimizer] Avoid treating path separators as comments (authored by jansvoboda11). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D11

[clang] c6f8704 - [clang][deps] Disable global module index

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T09:51:23+01:00 New Revision: c6f8704053ba364cf8cc9a0a966617efeda079f7 URL: https://github.com/llvm/llvm-project/commit/c6f8704053ba364cf8cc9a0a966617efeda079f7 DIFF: https://github.com/llvm/llvm-project/commit/c6f8704053ba364cf8cc9a0a966617efeda079f7.diff L

[PATCH] D118890: [clang][deps] Disable global module index

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGc6f8704053ba: [clang][deps] Disable global module index (authored by jansvoboda11). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D119814: [clang-format] Honour PointerAlignment in statements with initializers.

2022-02-15 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius created this revision. curdeius added reviewers: MyDeveloperDay, HazardyKnusperkeks, owenpan. curdeius requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Fixes https://github.com/llvm/llvm-project/issues/53843. Repository: rG LLVM

[PATCH] D115844: [ubsan] Using metadata instead of prologue data for function sanitizer

2022-02-15 Thread Yuanfang Chen via Phabricator via cfe-commits
ychen added inline comments. Comment at: clang/lib/CodeGen/CGExpr.cpp:5171 (!TargetDecl || !isa(TargetDecl))) { +assert((CGM.getCodeGenOpts().CodeModel == "default" || +CGM.getCodeGenOpts().CodeModel == "small") && pcc wrote: > What happens

[PATCH] D115844: [ubsan] Using metadata instead of prologue data for function sanitizer

2022-02-15 Thread Yuanfang Chen via Phabricator via cfe-commits
ychen updated this revision to Diff 408752. ychen added a comment. Herald added subscribers: jdoerfert, pengfei. - check code model in driver - document `func_sanitizer` in Langref - add a codegen test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D1

[PATCH] D119716: [clang][lex] NFC: De-duplicate some #include_next logic

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGa081a0654f35: [clang][lex] NFC: De-duplicate some #include_next logic (authored by jansvoboda11). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119716/new/

[clang] a081a06 - [clang][lex] NFC: De-duplicate some #include_next logic

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T09:52:39+01:00 New Revision: a081a0654f35c12ddc2afc072110098404434b6c URL: https://github.com/llvm/llvm-project/commit/a081a0654f35c12ddc2afc072110098404434b6c DIFF: https://github.com/llvm/llvm-project/commit/a081a0654f35c12ddc2afc072110098404434b6c.diff L

[PATCH] D119682: [clang-format][docs] Fix incorrect 'clang-format 13' configuration options markers

2022-02-15 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. In D119682#3321975 , @MyDeveloperDay wrote: > I understand what you are saying re 'IndentRequiresClause' but this leaves us > with people with "IndentRequires" in their .clang-format without any > understanding of wh

[PATCH] D119814: [clang-format] Honour PointerAlignment in statements with initializers.

2022-02-15 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks accepted this revision. HazardyKnusperkeks added a comment. Creating your own bug and fixing it within 10 minutes. Nice. ;) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119814/new/ https://reviews.llvm.org/D119814 _

[PATCH] D119816: Fix not working attribute no_sanitize bounds that affects linux kernel

2022-02-15 Thread Tong Zhang via Phabricator via cfe-commits
ztong0001 created this revision. Herald added subscribers: ormris, dexonsmith, jdoerfert, steven_wu, hiraditya. ztong0001 requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. Adding __attribute__((no_sanitize("bounds"))) is not

[PATCH] D117087: [C++20] [Coroutines] Implement return value optimization for get_return_object

2022-02-15 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu updated this revision to Diff 408761. ChuanqiXu added a comment. Update test. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D117087/new/ https://reviews.llvm.org/D117087 Files: clang/include/clang/AST/StmtCXX.h clang/lib/AST/StmtCXX.cpp clang/lib/CodeGen/CGCoroutine.cpp

[PATCH] D117087: [C++20] [Coroutines] Implement return value optimization for get_return_object

2022-02-15 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu added inline comments. Comment at: clang/lib/CodeGen/CGCoroutine.cpp:650 - if (Stmt *Ret = S.getReturnStmt()) + if (Stmt *Ret = S.getReturnStmt()) { +// Since we already emitted the return value above, so we shouldn't junparser wrote: > can we j

[PATCH] D119719: [Docs][OpenCL] Update OpenCL 3.0 status on release 14

2022-02-15 Thread Anton Zabaznov via Phabricator via cfe-commits
azabaznov added inline comments. Comment at: clang/docs/OpenCLSupport.rst:395 ++--+-+-+--+--

[clang] 7631c36 - [clang][lex] Introduce `ConstSearchDirIterator`

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T10:36:54+01:00 New Revision: 7631c366c8589dda488cb7ff1df26cc134002208 URL: https://github.com/llvm/llvm-project/commit/7631c366c8589dda488cb7ff1df26cc134002208 DIFF: https://github.com/llvm/llvm-project/commit/7631c366c8589dda488cb7ff1df26cc134002208.diff L

[PATCH] D117566: [clang][lex] Introduce `ConstSearchDirIterator`

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG7631c366c858: [clang][lex] Introduce `ConstSearchDirIterator` (authored by jansvoboda11). Changed prior to commit: https://reviews.llvm.org/D11756

[PATCH] D119788: [AArch64] Add support for -march=native for Apple M1 CPU

2022-02-15 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover added a comment. Things have moved on since the ARM and (especially) PPC variants of that function were written. That field (despite the name) is now more of an ABI tag and not going to be updated with each CPU. I think the modern replacement for it is `hw.cpufamily` obtained from

[PATCH] D119788: [AArch64] Add support for -march=native for Apple M1 CPU

2022-02-15 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover added a comment. Sorry, that was an old xnu version, the newest one is https://opensource.apple.com/source/xnu/xnu-7195.81.3/osfmk/mach/machine.h.auto.html which has | `CPUFAMILY_ARM_CYCLONE`| 0x37a09642 | `apple-a7` | | `CPUFAMILY_ARM_TYPHOON`

[clang] 17c9fcd - [clang][lex] Use `ConstSearchDirIterator` in lookup cache

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T10:39:05+01:00 New Revision: 17c9fcd6f6fc0926c1096242a2ddced9b523decd URL: https://github.com/llvm/llvm-project/commit/17c9fcd6f6fc0926c1096242a2ddced9b523decd DIFF: https://github.com/llvm/llvm-project/commit/17c9fcd6f6fc0926c1096242a2ddced9b523decd.diff L

[clang] e7dcf09 - [clang][lex] Use `SearchDirIterator` types in for loops

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T11:02:26+01:00 New Revision: e7dcf09fc321010fb012afd270afdef20378dee7 URL: https://github.com/llvm/llvm-project/commit/e7dcf09fc321010fb012afd270afdef20378dee7 DIFF: https://github.com/llvm/llvm-project/commit/e7dcf09fc321010fb012afd270afdef20378dee7.diff L

[PATCH] D119721: [clang][lex] Use `ConstSearchDirIterator` in lookup cache

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG17c9fcd6f6fc: [clang][lex] Use `ConstSearchDirIterator` in lookup cache (authored by jansvoboda11). Changed prior to commit: https://reviews.llvm.

[PATCH] D119722: [clang][lex] Use `SearchDirIterator` types in for loops

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGe7dcf09fc321: [clang][lex] Use `SearchDirIterator` types in for loops (authored by jansvoboda11). Changed prior to commit: https://reviews.llvm.or

[PATCH] D119785: [clang-format] Fix formatting of struct-like records followed by variable declaration.

2022-02-15 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius added inline comments. Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:470 +ShouldMerge = Style.AllowShortEnumsOnASingleLine; + } else if (TheLine->Last->isOneOf(TT_ClassLBrace, TT_StructLBrace)) { +// NOTE: We use AfterClass (whereas AfterSt

[PATCH] D119785: [clang-format] Fix formatting of struct-like records followed by variable declaration.

2022-02-15 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius added inline comments. Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:718 if (Line.Last->is(tok::l_brace)) { FormatToken *Tok = I[1]->First; @MyDeveloperDay, probably we'll need to check `LastNonComment` similarly to what I did wi

[PATCH] D119726: [asan] Add support for disable_sanitizer_instrumentation attribute

2022-02-15 Thread Alexander Potapenko via Phabricator via cfe-commits
glider updated this revision to Diff 408780. glider added a comment. Rebase Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119726/new/ https://reviews.llvm.org/D119726 Files: clang/docs/AddressSanitizer.rst clang/lib/CodeGen/CodeGenFunction.cpp

[PATCH] D119823: [Modules] Add module structure output to -module-file-info.

2022-02-15 Thread Iain Sandoe via Phabricator via cfe-commits
iains created this revision. iains added reviewers: dblaikie, aprantl, urnathan, ChuanqiXu. iains published this revision for review. Herald added a project: clang. Herald added a subscriber: cfe-commits. It is useful to be able to visualise the C++20 modules content of a PCM file both for inspect

[PATCH] D91605: [sanitizers] Implement GetTls on Solaris

2022-02-15 Thread Rainer Orth via Phabricator via cfe-commits
ro added a comment. In D91605#3321554 , @MaskRay wrote: > `GetTls` is about the static TLS block size. It consists of the main > executable's TLS, and initially loaded shared objects' TLS, `struct pthread`, > and padding. > Solaris should be able to just

[PATCH] D119825: [clang][lex] Introduce `SearchDirIndex` to usage tracking code

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 created this revision. jansvoboda11 added reviewers: ahoppen, Bigcheese, dexonsmith. Herald added a subscriber: arphaman. jansvoboda11 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This patch introduces new `SearchDirIndex` t

[PATCH] D119826: [clang] Remove a duplicate action kind table entry.

2022-02-15 Thread Iain Sandoe via Phabricator via cfe-commits
iains created this revision. iains added a reviewer: jansvoboda11. iains published this revision for review. iains added a comment. Herald added a project: clang. Herald added a subscriber: cfe-commits. probably trivial - but, in case there's some subtlety I missed... We have two entries for OPT

[PATCH] D119826: [clang] Remove a duplicate action kind table entry.

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 accepted this revision. jansvoboda11 added a comment. This revision is now accepted and ready to land. LGTM, must've been a mistake. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119826/new/ https://reviews.llvm.org/D119826 __

[clang] 2370977 - [clang] Remove a duplicate action kind table entry.

2022-02-15 Thread Iain Sandoe via cfe-commits
Author: iains Date: 2022-02-15T11:19:09Z New Revision: 2370977bdd0254d9d5424713513aeee233c647e4 URL: https://github.com/llvm/llvm-project/commit/2370977bdd0254d9d5424713513aeee233c647e4 DIFF: https://github.com/llvm/llvm-project/commit/2370977bdd0254d9d5424713513aeee233c647e4.diff LOG: [clang]

[PATCH] D119826: [clang] Remove a duplicate action kind table entry.

2022-02-15 Thread Iain Sandoe via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG2370977bdd02: [clang] Remove a duplicate action kind table entry. (authored by iains). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACT

[clang] ef378d7 - [clang][lex] Remove misleading comment

2022-02-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-02-15T12:39:43+01:00 New Revision: ef378d76b46091abfa548e698e5d7e03571bd5c1 URL: https://github.com/llvm/llvm-project/commit/ef378d76b46091abfa548e698e5d7e03571bd5c1 DIFF: https://github.com/llvm/llvm-project/commit/ef378d76b46091abfa548e698e5d7e03571bd5c1.diff L

[PATCH] D117087: [C++20] [Coroutines] Implement return value optimization for get_return_object

2022-02-15 Thread JunMa via Phabricator via cfe-commits
junparser added inline comments. Comment at: clang/lib/CodeGen/CGCoroutine.cpp:654 +cast(Ret)->setRetValue(nullptr); EmitStmt(Ret); + } I mean, remove the if statements here since the retuen expr is null. CHANGES SINCE LAST ACTION https://reviews.ll

[PATCH] D119719: [Docs][OpenCL] Update OpenCL 3.0 status

2022-02-15 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia updated this revision to Diff 408806. Anastasia retitled this revision from "[Docs][OpenCL] Update OpenCL 3.0 status on release 14" to "[Docs][OpenCL] Update OpenCL 3.0 status". Anastasia edited the summary of this revision. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119719/n

[PATCH] D119710: [Docs][OpenCL] Release 14 notes

2022-02-15 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia updated this revision to Diff 408810. Anastasia added a comment. - Fixed review comments - Updated OpenCL 3 state after backports CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119710/new/ https://reviews.llvm.org/D119710 Files: clang/docs/ReleaseNotes.rst Index: clang/doc

[clang] 074451b - [OpenCL] opencl-c.h: fix atomic_fetch_max with addrspace

2022-02-15 Thread Sven van Haastregt via cfe-commits
Author: Sven van Haastregt Date: 2022-02-15T12:12:03Z New Revision: 074451bd3352e022d015545e9091002d052daaa3 URL: https://github.com/llvm/llvm-project/commit/074451bd3352e022d015545e9091002d052daaa3 DIFF: https://github.com/llvm/llvm-project/commit/074451bd3352e022d015545e9091002d052daaa3.diff

[PATCH] D119829: [Driver] Support Solaris/amd64 GetTls

2022-02-15 Thread Rainer Orth via Phabricator via cfe-commits
ro created this revision. ro added a reviewer: MaskRay. ro added a project: clang. Herald added subscribers: fedor.sergeev, jyknight. ro requested review of this revision. This is the driver part of D91605 , a workaround to allow direct calls to `__tls_get_addr` o

[PATCH] D91605: [sanitizers] Implement GetTls on Solaris

2022-02-15 Thread Rainer Orth via Phabricator via cfe-commits
ro added a comment. In D91605#3321556 , @MaskRay wrote: > The Clang driver change should be in a separate patch with clang/test/Driver > tests. Done now: D119829 . Repository: rG LLVM Github Monorepo CHANGES SINCE L

[PATCH] D119409: [C++20] [Modules] Remain variable's definition in module interface

2022-02-15 Thread Nathan Sidwell via Phabricator via cfe-commits
urnathan added inline comments. Comment at: clang/test/CXX/modules-ts/basic/basic.def.odr/p4/module.cpp:5 // CHECK-DAG: @extern_var_exported = external {{(dso_local )?}}global -// CHECK-DAG: @inline_var_exported = linkonce_odr {{(dso_local )?}}global +// CHECK-DAG: @inline_var_e

[PATCH] D119560: [OpenCL] opencl-c.h: remove arg names from atomics

2022-02-15 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. > also makes the header no longer "claim" the identifiers "success", > "failure", "desired", "value" (such that you can compile with -Dvalue=... > when including the header for example, which currently breaks parsing > of the header). I don't get what you mean by this

[PATCH] D119560: [OpenCL] opencl-c.h: remove arg names from atomics

2022-02-15 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Thanks Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119560/new/ https://reviews.llvm.org/D119560 _

[PATCH] D119398: [OpenCL] Guard atomic_double with cl_khr_int64_base_atomics and cl_khr_int64_extended_atomics

2022-02-15 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. Can this be committed now? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119398/new/ https://reviews.llvm.org/D119398 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] 0209390 - [clang][NFC] Remove IgnoreLinkageSpecDecls

2022-02-15 Thread Nathan Sidwell via cfe-commits
Author: Nathan Sidwell Date: 2022-02-15T04:28:45-08:00 New Revision: 02093906fa0fd5bacc61b2189ea643c78cd02509 URL: https://github.com/llvm/llvm-project/commit/02093906fa0fd5bacc61b2189ea643c78cd02509 DIFF: https://github.com/llvm/llvm-project/commit/02093906fa0fd5bacc61b2189ea643c78cd02509.diff

[PATCH] D119748: [clang][NFC] Remove IgnoreLinkageSpecDecls

2022-02-15 Thread Nathan Sidwell via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG02093906fa0f: [clang][NFC] Remove IgnoreLinkageSpecDecls (authored by urnathan). Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo CHANGES SINCE

[PATCH] D119398: [OpenCL] Guard atomic_double with cl_khr_int64_base_atomics and cl_khr_int64_extended_atomics

2022-02-15 Thread Yang Haonan via Phabricator via cfe-commits
haonanya added a comment. Hi, @Anastasia. Please help to land it, thanks very much. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119398/new/ https://reviews.llvm.org/D119398 ___ cfe-commits mailing list

[PATCH] D119560: [OpenCL] opencl-c.h: remove arg names from atomics

2022-02-15 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh added a comment. In D119560#3322531 , @Anastasia wrote: >> also makes the header no longer "claim" the identifiers "success", >> "failure", "desired", "value" (such that you can compile with -Dvalue=... >> when including the header for example, whi

[PATCH] D119726: [asan] Add support for disable_sanitizer_instrumentation attribute

2022-02-15 Thread Alexander Potapenko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGdd145f953db3: [asan] Add support for disable_sanitizer_instrumentation attribute (authored by glider). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119726/n

[clang] dd145f9 - [asan] Add support for disable_sanitizer_instrumentation attribute

2022-02-15 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2022-02-15T14:06:12+01:00 New Revision: dd145f953db3dafbc019f1d3783bb4f09a28af92 URL: https://github.com/llvm/llvm-project/commit/dd145f953db3dafbc019f1d3783bb4f09a28af92 DIFF: https://github.com/llvm/llvm-project/commit/dd145f953db3dafbc019f1d3783bb4f09a28af92

[PATCH] D119823: [Modules] Add module structure output to -module-file-info.

2022-02-15 Thread Nathan Sidwell via Phabricator via cfe-commits
urnathan added inline comments. Comment at: clang/lib/Frontend/FrontendActions.cpp:817-824 +#if 0 + case Module::ModuleHeaderUnit: +return "Header Unit"; + case Module::ModulePartitionInterface: +return "Partition Interface"; + case Module::ModulePartitionImplementatio

[PATCH] D119363: [clang] Add `ObjCProtocolLoc` to represent protocol references

2022-02-15 Thread Egor Zhdan via Phabricator via cfe-commits
egorzhdan added a comment. Thank you @dgoldman, this approach looks good to me. I don't have anything to add other than what @sammccall has already commented. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119363/new/ https://reviews.llvm.org/D11936

[PATCH] D119713: [Docs] Release 14 notes for SPIR-V in clang

2022-02-15 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh accepted this revision. svenvh added a comment. This revision is now accepted and ready to land. LGTM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119713/new/ https://reviews.llvm.org/D119713 ___ cfe-commits mailing list cfe-commits@l

[PATCH] D119837: [RISCV] Fix the include search path order between sysroot and resource folder

2022-02-15 Thread Kito Cheng via Phabricator via cfe-commits
kito-cheng created this revision. Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, abidh, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, j

[PATCH] D119719: [Docs][OpenCL] Update OpenCL 3.0 status

2022-02-15 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh accepted this revision. svenvh added a comment. This revision is now accepted and ready to land. LGTM, just suggesting a minor textual improvement that can be made at commit time. Comment at: clang/docs/UsersManual.rst:3063 -There is ongoing support for OpenCL v3.0 th

[PATCH] D84225: [CFE] Add nomerge function attribute to inline assembly.

2022-02-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/lib/Sema/SemaStmtAttr.cpp:186 void VisitCallExpr(const CallExpr *E) { FoundCallExpr = true; } + void VisitAsmStmt(const AsmStmt *S) { FoundCallExpr = true; } xbolva00 wrote: > pengfei wrote: > > xbolva0

[PATCH] D119727: [RISCV] Add the policy operand for nomask vector Multiply-Add IR intrinsics.

2022-02-15 Thread Zakk Chen via Phabricator via cfe-commits
khchen updated this revision to Diff 408840. khchen added a comment. Rebase and refine code. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119727/new/ https://reviews.llvm.org/D119727 Files: clang/include/clang/Basic/riscv_vector.td clang/test

[PATCH] D116924: [clang-extdef-mapping] Allow clang-extdef-mapping tool to output customized filename for each index entry

2022-02-15 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added a comment. I'm not against the idea. However, the implementation seems to be quite complicated, compared to what it's actually doing. Can't we spare the heap allocation somehow? It doesn't seem necessary to me. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION ht

[PATCH] D119838: Revert "[asan] Add support for disable_sanitizer_instrumentation attribute"

2022-02-15 Thread Alexander Potapenko via Phabricator via cfe-commits
glider created this revision. glider added reviewers: melver, eugenis. Herald added a subscriber: hiraditya. glider requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. This reverts commit dd145f953db3dafbc019f1d3783bb4f09a28af

[clang] 05ee1f4 - Revert "[asan] Add support for disable_sanitizer_instrumentation attribute"

2022-02-15 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2022-02-15T15:04:53+01:00 New Revision: 05ee1f4af8972f021917fb1f96624050fc6268bd URL: https://github.com/llvm/llvm-project/commit/05ee1f4af8972f021917fb1f96624050fc6268bd DIFF: https://github.com/llvm/llvm-project/commit/05ee1f4af8972f021917fb1f96624050fc6268bd

[PATCH] D119838: Revert "[asan] Add support for disable_sanitizer_instrumentation attribute"

2022-02-15 Thread Alexander Potapenko via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG05ee1f4af897: Revert "[asan] Add support for disable_sanitizer_ins

[PATCH] D119560: [OpenCL] opencl-c.h: remove arg names from atomics

2022-02-15 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. In D119560#3322582 , @svenvh wrote: > In D119560#3322531 , @Anastasia > wrote: > >>> also makes the header no longer "claim" the identifiers "success", >>> "failure", "desired", "value"

[PATCH] D118370: [clang-tidy] bugprone-signal-handler: Message improvement and code refactoring.

2022-02-15 Thread Balázs Kéri via Phabricator via cfe-commits
balazske added a comment. ping Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D118370/new/ https://reviews.llvm.org/D118370 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[PATCH] D119398: [OpenCL] Guard atomic_double with cl_khr_int64_base_atomics and cl_khr_int64_extended_atomics

2022-02-15 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. In D119398#3322547 , @haonanya wrote: > Hi, @Anastasia. Please help to land it, thanks very much. Sure, I will kindly ask @svenvh since he has some related patches to land too. Repository: rG LLVM Github Monorepo CHANGES S

[PATCH] D119745: [libTooling] Change Tranformer's consumer to take multiple changes

2022-02-15 Thread Eric Li via Phabricator via cfe-commits
li.zhe.hua updated this revision to Diff 408847. li.zhe.hua added a comment. Remove old constructor Not sure how to resolve the ambiguous constructor issue on MSVC. This is probably SFINAE-able, but not sure how to repro locally to iterate. Repository: rG LLVM Github Monorepo CHANGES SINCE L

[PATCH] D102669: [analyzer][ctu] Fix wrong 'multiple definitions' errors caused by space characters in lookup names when parsing the ctu index file

2022-02-15 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added a subscriber: NoQ. steakhal added a comment. Thank you @OikawaKirie for the thorough investigation and explanation, even annotations and examples. I really appreciate it. However, you already surpassed my knowledge regarding the frontend, cc1, and other driver magic transformation

[PATCH] D84225: [CFE] Add nomerge function attribute to inline assembly.

2022-02-15 Thread Phoebe Wang via Phabricator via cfe-commits
pengfei added inline comments. Comment at: clang/lib/Sema/SemaStmtAttr.cpp:186 void VisitCallExpr(const CallExpr *E) { FoundCallExpr = true; } + void VisitAsmStmt(const AsmStmt *S) { FoundCallExpr = true; } aaron.ballman wrote: > xbolva00 wrote: > > pengfei

[PATCH] D119825: [clang][lex] Introduce `SearchDirIndex` to usage tracking code

2022-02-15 Thread Alex Hoppen via Phabricator via cfe-commits
ahoppen added a comment. Definitely a lot nicer 👍 Comment at: clang/include/clang/Lex/HeaderSearch.h:185 + /// Get search directory stored at the index. + DirectoryLookup &get(HeaderSearch &HS) const; +}; I would have expected these to be methods on `HeaderSe

[PATCH] D119841: [OpenMP] Pass AMDGPU math libraries into the linker wrapper

2022-02-15 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 created this revision. jhuber6 added reviewers: JonChesterfield, jdoerfert. Herald added subscribers: kerbowa, guansong, t-tye, tpr, dstuttard, yaxunl, jvesely, kzhuravl. jhuber6 requested review of this revision. Herald added subscribers: cfe-commits, sstefan1, wdng. Herald added a projec

[PATCH] D119841: [OpenMP] Pass AMDGPU math libraries into the linker wrapper

2022-02-15 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 added a comment. I can't test this yet because the AMDGPU cluster is down for maintenance. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119841/new/ https://reviews.llvm.org/D119841 ___ cfe-commi

[PATCH] D119825: [clang][lex] Introduce `SearchDirIndex` to usage tracking code

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added inline comments. Comment at: clang/include/clang/Lex/HeaderSearch.h:185 + /// Get search directory stored at the index. + DirectoryLookup &get(HeaderSearch &HS) const; +}; ahoppen wrote: > I would have expected these to be methods on `HeaderS

[PATCH] D119842: [clangd] NFC: Cleanup IncludeCleaner API

2022-02-15 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added a reviewer: sammccall. Herald added subscribers: usaxena95, kadircet, arphaman. kbobyrev requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. Make a further improv

[PATCH] D119615: [CUDA][HIP] Do not promote constexpr var with non-constant initializer

2022-02-15 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked an inline comment as done. yaxunl added inline comments. Comment at: clang/lib/Sema/SemaCUDA.cpp:148-150 + if ((Var->isConstexpr() || Var->getType().isConstQualified()) && + Var->hasAttr() && !hasExplicitAttr(Var)) tra wrote: > So the i

[PATCH] D119825: [clang][lex] Introduce `SearchDirIndex` to usage tracking code

2022-02-15 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 408876. jansvoboda11 added a comment. Move `SearchDirIdx::get()` to `HeaderSearch` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119825/new/ https://reviews.llvm.org/D119825 Files: clang/include/clang/L

[PATCH] D119591: clang-analyzer plugins require LLVM_ENABLE_PLUGINS also

2022-02-15 Thread Simon Tatham via Phabricator via cfe-commits
simon_tatham added a comment. I ran another test of this patch, by trying the cross product of the following cmake configuration choices (on a build targeting Windows, with `LLVM_ENABLE_PROJECTS=clang`): - `LLVM_EXPORT_SYMBOLS_FOR_PLUGINS` set to each of `ON` and `OFF` - `CLANG_BUILD_EXAMPLES`

[PATCH] D118753: [PowerPC] Fix __builtin_pdepd and __builtin_pextd to be 64-bit and P10 only.

2022-02-15 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai accepted this revision. nemanjai added a comment. This revision is now accepted and ready to land. LGTM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D118753/new/ https://reviews.llvm.org/D118753 __

[PATCH] D119841: [OpenMP] Pass AMDGPU math libraries into the linker wrapper

2022-02-15 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added inline comments. Comment at: clang/lib/Driver/ToolChains/Clang.cpp:8195 + // Get the AMDGPU math libraries. + // FIXME: This method is bad, remove once AMDGPU has a proper math library. + for (auto &I : llvm::make_range(OpenMPTCRange.first, OpenMPTCRange.second

[PATCH] D119841: [OpenMP] Pass AMDGPU math libraries into the linker wrapper

2022-02-15 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 added inline comments. Comment at: clang/lib/Driver/ToolChains/Clang.cpp:8195 + // Get the AMDGPU math libraries. + // FIXME: This method is bad, remove once AMDGPU has a proper math library. + for (auto &I : llvm::make_range(OpenMPTCRange.first, OpenMPTCRange.second))

[PATCH] D119846: [NFC][MC] remove unused argument `MCRegisterInfo` in `MCCodeEmitter`

2022-02-15 Thread Shao-Ce SUN via Phabricator via cfe-commits
achieveartificialintelligence created this revision. achieveartificialintelligence added reviewers: grosbach, Eugene.Zelenko, asb, jrtc27, craig.topper. Herald added subscribers: ayermolo, sdasgup3, wenzhicui, wrengr, Chia-hungDuan, dcaballe, cota, teijeong, frasercrmck, rdzhabarov, tatianashp, m

[PATCH] D119537: [clangd] Treat 'auto' params as deduced if there's a single instantiation.

2022-02-15 Thread Trass3r via Phabricator via cfe-commits
Trass3r added a comment. Is it intentional that the resolved type is not shown in the variable hover: param payload Type: const auto & // In subscribe::(anonymous class)::operator() const auto& payload Only when hovering over `auto`? type-alias auto struct Foo Repository: rG

  1   2   3   >