[PATCH] D137534: [C++20] [Modules] [ClangScanDeps] Allow clang-scan-deps to without specified compilation database in P1689 (3/3)

2022-11-23 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu marked an inline comment as done. ChuanqiXu added inline comments. Comment at: clang/tools/clang-scan-deps/ClangScanDeps.cpp:192 +"p1689-targeted-directory", llvm::cl::Optional, +llvm::cl::desc("Only supported for P1689, the targeted directory of which " +

[PATCH] D137534: [C++20] [Modules] [ClangScanDeps] Allow clang-scan-deps to without specified compilation database in P1689 (3/3)

2022-11-23 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu updated this revision to Diff 477687. ChuanqiXu added a comment. Use `--` instead `-` for parameters in tests to avoid confusion. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137534/new/ https://reviews.llvm.org/D137534 Files: clang/test/ClangScanDeps/P1689.cppm clang/to

[PATCH] D138554: [clang][Interp] Use placement new to construct opcode arguments into bytecode vector

2022-11-23 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added inline comments. Comment at: clang/lib/AST/Interp/ByteCodeEmitter.cpp:166 if constexpr (!std::is_pointer_v) { -const char *Data = reinterpret_cast(&Val); -Code.insert(Code.end(), Data, Data + Size); +if constexpr (std::is_trivially_copyable_v) { +

[clang] e690a34 - AST: Internalize functions after D111283

2022-11-23 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2022-11-23T22:53:23-08:00 New Revision: e690a346454958372de0ec1c762544864e9f5406 URL: https://github.com/llvm/llvm-project/commit/e690a346454958372de0ec1c762544864e9f5406 DIFF: https://github.com/llvm/llvm-project/commit/e690a346454958372de0ec1c762544864e9f5406.diff

[PATCH] D137531: [clang] Add the check of membership in decltype for the issue #58674

2022-11-23 Thread Liming Liu via Phabricator via cfe-commits
lime added a comment. Ping! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137531/new/ https://reviews.llvm.org/D137531 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D138489: [tsan] Add tsan support for loongarch64

2022-11-23 Thread Youling Tang via Phabricator via cfe-commits
tangyouling added inline comments. Comment at: compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp:269 val = FIRST_32_SECOND_64(1152, 1776); +#elif SANITIZER_LOONGARCH64 + val = 1936; MaskRay wrote: > We should add new code in this fallback function.

[PATCH] D138547: [X86][AMX] Fix typo of the headerfile.

2022-11-23 Thread LuoYuanke via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG55fceef61e0d: [X86][AMX] Fix typo of the headerfile. (authored by LuoYuanke). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138547/new/ https://reviews.llvm

[clang] 55fceef - [X86][AMX] Fix typo of the headerfile.

2022-11-23 Thread via cfe-commits
Author: Luo, Yuanke Date: 2022-11-24T10:33:44+08:00 New Revision: 55fceef61e0d244f2bbfc01c41eab43a77437aec URL: https://github.com/llvm/llvm-project/commit/55fceef61e0d244f2bbfc01c41eab43a77437aec DIFF: https://github.com/llvm/llvm-project/commit/55fceef61e0d244f2bbfc01c41eab43a77437aec.diff L

[PATCH] D138630: [modules] Fix marking `ObjCMethodDecl::isOverriding` when there a no overrides.

2022-11-23 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. vsapsai added reviewers: egorzhdan, akyrtzi. Herald added a subscriber: ributzka. Herald added a project: All. vsapsai requested review of this revision. Herald added a project: clang. Incorrect `isOverriding` flag triggers the assertion `!Overridden.empty()` in `Obj

[PATCH] D138628: [clang-fuzzer] Use new pass manager for optimizing IR

2022-11-23 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks updated this revision to Diff 477658. aeubanks added a comment. update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138628/new/ https://reviews.llvm.org/D138628 Files: clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp Index: clang/

[PATCH] D138628: [clang-fuzzer] Use new pass manager for optimizing IR

2022-11-23 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks created this revision. Herald added a project: All. aeubanks requested review of this revision. Herald added subscribers: cfe-commits, pcwang-thead. Herald added a project: clang. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D138628 Files: clang/tools/clang-fuzzer/ha

[PATCH] D138547: [X86][AMX] Fix typo of the headerfile.

2022-11-23 Thread Xiang Zhang via Phabricator via cfe-commits
xiangzhangllvm accepted this revision. xiangzhangllvm 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/D138547/new/ https://reviews.llvm.org/D138547 ___

[PATCH] D138463: [windows-itanium] Propagate DLL storage class to Initialisation Guard Variables

2022-11-23 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG437ccf5af9c2: [windows-itanium] Propagate DLL storage class to Initialisation Guard Variables (authored by Ben Dunbobbin ). Herald added a project: clang. Repository: rG LLVM Gi

[clang] 437ccf5 - [windows-itanium] Propagate DLL storage class to Initialisation Guard Variables

2022-11-23 Thread Ben Dunbobbin via cfe-commits
Author: Ben Dunbobbin Date: 2022-11-24T00:23:17Z New Revision: 437ccf5af9c2aec915a68a164a95d506fbac2324 URL: https://github.com/llvm/llvm-project/commit/437ccf5af9c2aec915a68a164a95d506fbac2324 DIFF: https://github.com/llvm/llvm-project/commit/437ccf5af9c2aec915a68a164a95d506fbac2324.diff LOG:

[PATCH] D97854: [RFC][nsan] A Floating-point numerical sanitizer.

2022-11-23 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. This looks very interesting and I wish that I can help as well (but I'll likely spend very little time in December due to holidays:) ). Hmm, I can't find it in an email archive. Perhaps there hasn't been a discussion so people are unaware of this work... Repository:

[PATCH] D138626: [Vectorize] Remove legacy passes

2022-11-23 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks created this revision. Herald added subscribers: kosarev, mattd, gchakrabarti, asavonic, ormris, foad, kerbowa, hiraditya, jvesely, arsenm. Herald added a reviewer: ctetreau. Herald added a reviewer: ctetreau. Herald added a project: All. aeubanks requested review of this revision. Herald

[PATCH] D131594: WORK IN PROGRESS Add Clang UEFI target to support "x86_64-unknown-uefi" triple

2022-11-23 Thread Prabhu Karthikeyan Rajasekaran via Phabricator via cfe-commits
Prabhuk updated this revision to Diff 477634. Prabhuk marked an inline comment as done. Prabhuk added a comment. Herald added a subscriber: wenlei. Added tests to the new UEFI target. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131594/new/ https:

[PATCH] D131594: WORK IN PROGRESS Add Clang UEFI target to support "x86_64-unknown-uefi" triple

2022-11-23 Thread Prabhu Karthikeyan Rajasekaran via Phabricator via cfe-commits
Prabhuk updated this revision to Diff 477622. Prabhuk marked an inline comment as done. Prabhuk added a comment. Herald added a subscriber: pengfei. Introducing a new toolchain for UEFI COFF. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131594/new/

[PATCH] D128958: Add assembler plumbing for sanitize_memtag

2022-11-23 Thread Mitch Phillips via Phabricator via cfe-commits
hctim updated this revision to Diff 477620. hctim marked 2 inline comments as done. hctim added a comment. Move isMemtag below assert(Sym) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128958/new/ https://reviews.llvm.org/D128958 Files: clang/te

[PATCH] D138614: [Clang][OpenMP][AMDGPU] Fix capture of variably modified type alias in teams distribute

2022-11-23 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
doru1004 created this revision. doru1004 added reviewers: carlo.bertolli, ronl, ABataev, jhuber6. doru1004 added a project: OpenMP. Herald added subscribers: kosarev, jeroen.dobbelaere, guansong, tpr, dstuttard, yaxunl, kzhuravl. Herald added a project: All. doru1004 requested review of this revis

[PATCH] D128958: Add assembler plumbing for sanitize_memtag

2022-11-23 Thread Florian Mayer via Phabricator via cfe-commits
fmayer added inline comments. Comment at: llvm/lib/MC/ELFObjectWriter.cpp:622 + assert(MemtagRelocs != nullptr && + "Tagged globals are only supported on AArch64"); + Asm.registerSection(*MemtagRelocs); Is the story here that on non-AArch64,

[PATCH] D138539: Use std::nullopt_t instead of NoneType (NFC)

2022-11-23 Thread Kazu Hirata 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 rG34bcadc38c22: Use std::nullopt_t instead of NoneType (NFC) (authored by kazu). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION ht

[PATCH] D128958: Add assembler plumbing for sanitize_memtag

2022-11-23 Thread Mitch Phillips via Phabricator via cfe-commits
hctim updated this revision to Diff 477600. hctim added a comment. Use new MemtagABI section types, now that it's merged upstream: https://github.com/ARM-software/abi-aa/blob/main/memtagabielf64/memtagabielf64.rst Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://review

[PATCH] D134177: Add MC support of RISCV Zcd Extension

2022-11-23 Thread Xinlong Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG0dbc52a0ab3c: Add MC support of RISCV Zcd Extension (authored by VincentWu). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134177/new/ https://reviews.llvm.

[clang] 0dbc52a - Add MC support of RISCV Zcd Extension

2022-11-23 Thread via cfe-commits
Author: WuXinlong Date: 2022-11-24T05:48:06+08:00 New Revision: 0dbc52a0ab3c2b32f729e985d62401ce9bd9853e URL: https://github.com/llvm/llvm-project/commit/0dbc52a0ab3c2b32f729e985d62401ce9bd9853e DIFF: https://github.com/llvm/llvm-project/commit/0dbc52a0ab3c2b32f729e985d62401ce9bd9853e.diff LOG

[PATCH] D137885: [modules] Support zstd in .pcm file

2022-11-23 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. In D137885#3947532 , @dyung wrote: > @MaskRay your change seems to be causing 1509 failures on the linux PS4 bot. > Most of the errors look similar to this: > > error: 'error' diagnostics seen but not expected: > (frontend

[PATCH] D138603: [Clang] Implement LWG3823 for __is_aggregate

2022-11-23 Thread Roy Jacobson via Phabricator via cfe-commits
royjacobson created this revision. Herald added a project: All. royjacobson requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. LWG3823 says that arrays of incomplete types are aggregates. Fix the clang builtin to match that. Repository: r

[clang] 8f43b84 - [ASTReader] Fix zlib header detection 0x78 after D137885

2022-11-23 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2022-11-23T13:22:44-08:00 New Revision: 8f43b84322cc255414ad996834dff09e90dc19af URL: https://github.com/llvm/llvm-project/commit/8f43b84322cc255414ad996834dff09e90dc19af DIFF: https://github.com/llvm/llvm-project/commit/8f43b84322cc255414ad996834dff09e90dc19af.diff

[PATCH] D138253: [-Wunsafe-buffer-usage] NFC: Implement fix-strategies and variable-use-claiming.

2022-11-23 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added inline comments. Comment at: clang/lib/Analysis/UnsafeBufferUsage.cpp:90 + /// returns an empty list if no fixes are necessary. + virtual Optional getFixits(const Strategy &) const { +return None; steakhal wrote: > I wonder if we should prefe

[PATCH] D138157: Make -fsanitize=scudo use scudo_standalone. Delete check-scudo.

2022-11-23 Thread Mitch Phillips via Phabricator via cfe-commits
hctim added a comment. Thanks for the detailed information folks. I'll probably fix it up and re-submit next week (after the US holidays) given that the blast radius seems to be bigger than I expected. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/

[PATCH] D137885: [modules] Support zstd in .pcm file

2022-11-23 Thread Douglas Yung via Phabricator via cfe-commits
dyung added a comment. In D137885#3947532 , @dyung wrote: > @MaskRay your change seems to be causing 1509 failures on the linux PS4 bot. > Most of the errors look similar to this: > > error: 'error' diagnostics seen but not expected: > (frontend):

[PATCH] D137885: [modules] Support zstd in .pcm file

2022-11-23 Thread Douglas Yung via Phabricator via cfe-commits
dyung added a comment. @MaskRay your change seems to be causing 1509 failures on the linux PS4 bot. Most of the errors look similar to this: error: 'error' diagnostics seen but not expected: (frontend): malformed or corrupted AST file: 'LLVM was not built with LLVM_ENABLE_ZSTD or did not

[PATCH] D138598: [OpenMP] Do not add wrapper headers if using '-nogpuinc'

2022-11-23 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert accepted this revision. jdoerfert added a comment. This revision is now accepted and ready to land. LG Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138598/new/ https://reviews.llvm.org/D138598 ___

[PATCH] D138539: Use std::nullopt_t instead of NoneType (NFC)

2022-11-23 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added inline comments. Comment at: clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp:218 + explicit NameLookup(std::nullopt_t) : Data(nullptr, true) {} explicit NameLookup(std::nullptr_t) : Data(nullptr, false) {} NameLookup() : NameLookup(nullptr) {} --

[PATCH] D138552: [docs] Document that the modules can improve the linking time

2022-11-23 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. This seems comparing different things... As mentioned, header files can be refactored to reduce the number of symbols as well. I'd be curious to learn how linking time can be reduced significantly by deploying modules. Repository: rG LLVM Github Monorepo CHANGES SIN

[PATCH] D138598: [OpenMP] Do not add wrapper headers if using '-nogpuinc'

2022-11-23 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 created this revision. jhuber6 added reviewers: jdoerfert, tianshilei1992, tra, yaxunl, JonChesterfield, ye-luo. Herald added a subscriber: guansong. Herald added a project: All. jhuber6 requested review of this revision. Herald added subscribers: cfe-commits, sstefan1, MaskRay. Herald add

[clang] fa7bc38 - [modules] Support zstd in .pcm file

2022-11-23 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2022-11-23T11:27:49-08:00 New Revision: fa7bc386ec7565ccfdfa75b272079ee03604e3ba URL: https://github.com/llvm/llvm-project/commit/fa7bc386ec7565ccfdfa75b272079ee03604e3ba DIFF: https://github.com/llvm/llvm-project/commit/fa7bc386ec7565ccfdfa75b272079ee03604e3ba.diff

[PATCH] D137885: [modules] Support zstd in .pcm file

2022-11-23 Thread Fangrui Song 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 rGfa7bc386ec75: [modules] Support zstd in .pcm file (authored by MaskRay). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://

[PATCH] D138597: DebugInfo: Add/support new DW_LANG codes for recent C and C++ versions

2022-11-23 Thread David Blaikie via Phabricator via cfe-commits
dblaikie created this revision. dblaikie added reviewers: aprantl, probinson. Herald added a reviewer: deadalnix. Herald added a subscriber: hiraditya. Herald added a project: All. dblaikie requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits

[PATCH] D137894: [clangd] Add extension for adding context (enclosing function or class) in references results

2022-11-23 Thread Tom Praschan via Phabricator via cfe-commits
tom-anders updated this revision to Diff 477566. tom-anders added a comment. Add end-to-end test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137894/new/ https://reviews.llvm.org/D137894 Files: clang-tools-extra/clangd/ClangdLSPServer.cpp cla

[PATCH] D137375: [AIX][pg] Add Correct Search Paths for Profiled Libraries

2022-11-23 Thread Chris Bowler via Phabricator via cfe-commits
cebowleratibm accepted this revision. cebowleratibm 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/D137375/new/ https://reviews.llvm.org/D137375

[clang] 2cea4c2 - Do not suggest taking the address of a const pointer to get void*

2022-11-23 Thread David Blaikie via cfe-commits
Author: Alexey Kreshchuk Date: 2022-11-23T18:43:06Z New Revision: 2cea4c239570c37f46ad0003b3d41d9473aca60f URL: https://github.com/llvm/llvm-project/commit/2cea4c239570c37f46ad0003b3d41d9473aca60f DIFF: https://github.com/llvm/llvm-project/commit/2cea4c239570c37f46ad0003b3d41d9473aca60f.diff L

[PATCH] D138426: Fix #58958 on github

2022-11-23 Thread David Blaikie via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG2cea4c239570: Do not suggest taking the address of a const pointer to get void* (authored by krsch, committed by dblaikie). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://revie

[PATCH] D138539: Use std::nullopt_t instead of NoneType (NFC)

2022-11-23 Thread David Blaikie via Phabricator via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Sounds good to me, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138539/new/ https://reviews.llvm.org/D138539 _

[PATCH] D138552: [docs] Document that the modules can improve the linking time

2022-11-23 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. I'm not sure I follow this - the comparison doesn't seem equal. If you wanted the modules-like code in non-modules, you could get it by having `notDirectlyUsed` declared-but-not-defined in the header file, and defined in the corresponding .cpp file, yeah? Repository:

[PATCH] D137885: [modules] Support zstd in .pcm file

2022-11-23 Thread David Blaikie via Phabricator via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Sounds good Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137885/new/ https://reviews.llvm.org/D137885

[PATCH] D138554: [clang][Interp] Use placement new to construct opcode arguments into bytecode vector

2022-11-23 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added inline comments. Comment at: clang/lib/AST/Interp/ByteCodeEmitter.cpp:166 if constexpr (!std::is_pointer_v) { -const char *Data = reinterpret_cast(&Val); -Code.insert(Code.end(), Data, Data + Size); +if constexpr (std::is_trivially_copyable_v) { +

[PATCH] D138559: Record macro references in #ifdef clause.

2022-11-23 Thread Viktoriia Bakalova via Phabricator via cfe-commits
VitaNuo updated this revision to Diff 477554. VitaNuo added a comment. Make explicit RefType default. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138559/new/ https://reviews.llvm.org/D138559 Files: clang-tools-extra/include-cleaner/lib/Record.

[PATCH] D138387: [Clang] Implement static operator[]

2022-11-23 Thread Roy Jacobson via Phabricator via cfe-commits
royjacobson marked an inline comment as done. royjacobson added a comment. In D138387#3944211 , @cor3ntin wrote: > Beside the formatting nitpick this looks good Thanks! I'll wait until next week to let other people have a chance to take a look. Reposi

[PATCH] D138387: [Clang] Implement static operator[]

2022-11-23 Thread Roy Jacobson via Phabricator via cfe-commits
royjacobson marked 3 inline comments as done. royjacobson added inline comments. Comment at: clang/lib/Sema/SemaOverload.cpp:14462-14467 + RLoc, CurFPFeatureOverrides()); +else + TheCall = + CallExpr::Create(Context, FnExpr.get(), Method

[PATCH] D138559: Record macro references in #ifdef clause.

2022-11-23 Thread Viktoriia Bakalova via Phabricator via cfe-commits
VitaNuo updated this revision to Diff 477551. VitaNuo added a comment. Remove the extra test. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138559/new/ https://reviews.llvm.org/D138559 Files: clang-tools-extra/include-cleaner/lib/Record.cpp cl

[PATCH] D138387: [Clang] Implement static operator[]

2022-11-23 Thread Roy Jacobson via Phabricator via cfe-commits
royjacobson updated this revision to Diff 477550. royjacobson added a comment. Add a missing test case. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138387/new/ https://reviews.llvm.org/D138387 Files: clang/docs/ReleaseNotes.rst clang/include

[PATCH] D138559: Record macro references in #ifdef clause.

2022-11-23 Thread Viktoriia Bakalova via Phabricator via cfe-commits
VitaNuo updated this revision to Diff 477549. VitaNuo added a comment. Update. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138559/new/ https://reviews.llvm.org/D138559 Files: clang-tools-extra/include-cleaner/lib/Record.cpp clang-tools-extra

[PATCH] D137534: [C++20] [Modules] [ClangScanDeps] Allow clang-scan-deps to without specified compilation database in P1689 (3/3)

2022-11-23 Thread Ben Boeckel via Phabricator via cfe-commits
ben.boeckel added inline comments. Comment at: clang/tools/clang-scan-deps/ClangScanDeps.cpp:192 +"p1689-targeted-directory", llvm::cl::Optional, +llvm::cl::desc("Only supported for P1689, the targeted directory of which " + "the dependencies are to be c

[PATCH] D137258: [clang] Optimize storage and lookup of analyzer options

2022-11-23 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added a comment. Are you sure about the speedup? When I looked at the implementation of the `StringSwitch`, it boiled down to an `if-else` chain under the hood. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137258/new/ https://reviews.llv

[PATCH] D137149: Use PassGate from LLVMContext if any otherwise global one

2022-11-23 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks accepted this revision. aeubanks added a comment. This revision is now accepted and ready to land. the precommit bot is still complaining that flang/lib/Frontend/FrontendActions.cpp needs to be updated lgtm if the precommit bot doesn't show anything related to this patch Repository:

[PATCH] D138426: Fix #58958 on github

2022-11-23 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. In D138426#3947044 , @aeubanks wrote: > In D138426#3946202 , @krsch wrote: > >> Should I change the title myself or you can change it during commit? If it's >> on me, how do I change it?

[PATCH] D138426: Fix #58958 on github

2022-11-23 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks added a comment. In D138426#3946202 , @krsch wrote: > Should I change the title myself or you can change it during commit? If it's > on me, how do I change it? `git commit --amend; arc diff`? phabricator isn't very elegant, locally changing the

[PATCH] D138577: Use proper triple in CmdArgsSansAnalyses for html info files

2022-11-23 Thread Anthony Groyer via Phabricator via cfe-commits
angroyer added a reviewer: honggyu.kim. angroyer added a comment. Please review this one. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138577/new/ https://reviews.llvm.org/D138577 ___ cfe-commits mailin

[PATCH] D138583: Create unused non-trivially-destructible check in clang-tidy

2022-11-23 Thread Andrei via Phabricator via cfe-commits
ankineri created this revision. ankineri added a reviewer: sammccall. Herald added a subscriber: carlosgalvezp. Herald added a reviewer: njames93. Herald added a project: All. ankineri requested review of this revision. Herald added a project: clang-tools-extra. Herald added a subscriber: cfe-commi

[PATCH] D138579: [AArch64] Assembly support for FEAT_LRCPC3

2022-11-23 Thread Tomas Matheson via Phabricator via cfe-commits
tmatheson created this revision. Herald added subscribers: hiraditya, kristof.beyls. Herald added a project: All. tmatheson requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. This patch implements assembly support for the 202

[PATCH] D138554: [clang][Interp] Use placement new to construct opcode arguments into bytecode vector

2022-11-23 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added inline comments. Comment at: clang/lib/AST/Interp/ByteCodeEmitter.cpp:166 if constexpr (!std::is_pointer_v) { -const char *Data = reinterpret_cast(&Val); -Code.insert(Code.end(), Data, Data + Size); +if constexpr (std::is_trivially_copyable_v) { +

[PATCH] D138577: Use proper triple in CmdArgsSansAnalyses for html info files

2022-11-23 Thread Anthony Groyer via Phabricator via cfe-commits
angroyer created this revision. angroyer added a reviewer: LLVM. angroyer added a project: LLVM. Herald added a reviewer: NoQ. Herald added a project: All. angroyer requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. The CmdArgsSansAnalyses arr

[PATCH] D138554: [clang][Interp] Use placement new to construct opcode arguments into bytecode vector

2022-11-23 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added inline comments. Comment at: clang/lib/AST/Interp/ByteCodeEmitter.cpp:166 if constexpr (!std::is_pointer_v) { -const char *Data = reinterpret_cast(&Val); -Code.insert(Code.end(), Data, Data + Size); +if constexpr (std::is_trivially_copyable_v) { +

[PATCH] D138329: [-Wunsafe-buffer-usage] Add a new recursive matcher to replace `forEachDescendant` in unsafe buffer check

2022-11-23 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added inline comments. Comment at: clang/lib/Analysis/UnsafeBufferUsage.cpp:54-55 + bool TraverseDecl(Decl *Node) { +if (!Node) + return true; +if (!match(*Node)) Can `Node` be ever null if the visitor is initiated only be `AST_MATCHER_P`?

[PATCH] D138157: Make -fsanitize=scudo use scudo_standalone. Delete check-scudo.

2022-11-23 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. Reverted in 907baeec49bfbe9e76498634a9418e1dc6c973d9 for now. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138157/new/ https://reviews.llvm.org/D138157 ___ cfe-commits mailing list

[PATCH] D138319: [analyzer] Prepare structures for integral cast feature introducing

2022-11-23 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added a comment. I spent some time on this patch. But I'm left thinking about why we need the extra indirection? Couldn't we just use a `std::pair` pair as a key instead? You mention //effective// bitwidths in your summary, but the code does not mention this concept. Maybe you could ela

[PATCH] D138216: [AMDGPU] Intrinsic to expose s_wait_event for export ready

2022-11-23 Thread Joe Nash via Phabricator via cfe-commits
Joe_Nash accepted this revision. Joe_Nash 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/D138216/new/ https://reviews.llvm.org/D138216 ___

[PATCH] D136603: [analyzer] getBinding should auto-detect type only if it was not given

2022-11-23 Thread Balázs Benics via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG93b98eb399a1: [analyzer] getBinding should auto-detect type only if it was not given (authored by steakhal). Changed prior to commit: https://reviews.llvm.org/D136603?vs=471112&id=477493#toc Repository

[clang] 93b98eb - [analyzer] getBinding should auto-detect type only if it was not given

2022-11-23 Thread Balazs Benics via cfe-commits
Author: Balazs Benics Date: 2022-11-23T15:52:11+01:00 New Revision: 93b98eb399a14f2c626ed82eaaa70997f8323406 URL: https://github.com/llvm/llvm-project/commit/93b98eb399a14f2c626ed82eaaa70997f8323406 DIFF: https://github.com/llvm/llvm-project/commit/93b98eb399a14f2c626ed82eaaa70997f8323406.diff

Re: [clang] 5cfc22c - Revert "[SROA] `isVectorPromotionViable()`: memory intrinsics operate on vectors of bytes"

2022-11-23 Thread Roman Lebedev via cfe-commits
Thank you! On Wed, Nov 23, 2022 at 3:11 PM Benjamin Kramer via cfe-commits wrote: > > > Author: Benjamin Kramer > Date: 2022-11-23T13:11:16+01:00 > New Revision: 5cfc22cafe3f2465e0bb324f8daba82ffcabd0df > > URL: > https://github.com/llvm/llvm-project/commit/5cfc22cafe3f2465e0bb324f8daba82ffcabd0

[PATCH] D138559: Record macro references in #ifdef clause.

2022-11-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. Thanks, this code looks good to me overall. I think we can extend it to handle the `Defined`, `Elifdef`, `Elifndef` cases. And please add a `[include-cleaner]` prefix in the commit title. Comment at: clang-tools-extra/include-cleaner/lib/Record.cpp:95

[PATCH] D138571: Update ninja and cmake installation commands on LibASTMatchersTutorial

2022-11-23 Thread Ismael via Phabricator via cfe-commits
ismaelJimenez updated this revision to Diff 477488. ismaelJimenez added a comment. Fix Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138571/new/ https://reviews.llvm.org/D138571 Files: clang/docs/LibASTMatchersTutorial.rst Index: clang/docs/Li

[PATCH] D138571: Update ninja and cmake installation commands on LibASTMatchersTutorial

2022-11-23 Thread Ismael via Phabricator via cfe-commits
ismaelJimenez created this revision. Herald added a project: All. ismaelJimenez requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D138571 Files: clang/docs/LibASTMatchersTutor

[PATCH] D137343: [clang] add -Wvla-stack-allocation

2022-11-23 Thread Tao Liang via Phabricator via cfe-commits
Origami404 updated this revision to Diff 477482. Origami404 added a comment. Update release notes. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137343/new/ https://reviews.llvm.org/D137343 Files: clang/docs/ReleaseNotes.rst clang/include/clan

[PATCH] D134177: Add MC support of RISCV Zcd Extension

2022-11-23 Thread Xinlong Wu via Phabricator via cfe-commits
VincentWu updated this revision to Diff 477475. VincentWu added a comment. rebase Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134177/new/ https://reviews.llvm.org/D134177 Files: clang/test/Preprocessor/riscv-target-features.c llvm/lib/Suppor

[PATCH] D137944: [ObjC][ARC] Teach the OptimizeSequences step of ObjCARCOpts about WinEH funclet tokens

2022-11-23 Thread Stefan Gränitz via Phabricator via cfe-commits
sgraenitz updated this revision to Diff 477471. sgraenitz added a comment. Handle potential multi-color basic blocks in addOpBundleForFunclet() Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137944/new/ https://reviews.llvm.org/D137944 Files: cla

[PATCH] D137944: [ObjC][ARC] Teach the OptimizeSequences step of ObjCARCOpts about WinEH funclet tokens

2022-11-23 Thread Stefan Gränitz via Phabricator via cfe-commits
sgraenitz updated this revision to Diff 477470. sgraenitz marked an inline comment as done. sgraenitz added a comment. Rebase and update check-lines after D137939 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D13794

[PATCH] D90568: [clang] Add [is|set]Nested methods to NamespaceDecl

2022-11-23 Thread Nathan James via Phabricator via cfe-commits
njames93 updated this revision to Diff 477467. njames93 added a comment. Hopefully fixed line endings Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90568/new/ https://reviews.llvm.org/D90568 Files: clang/include/clang/AST/Decl.h clang/include/

[PATCH] D138157: Make -fsanitize=scudo use scudo_standalone. Delete check-scudo.

2022-11-23 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. Chromium is broken too CMake Error at /b/s/w/ir/cache/builder/src/third_party/llvm/llvm/cmake/modules/AddLLVM.cmake:1915 (add_dependencies): The dependency target "ScudoUnitTests" of target "check-runtimes" does not exist. Call Stack (most recent call first):

[PATCH] D138559: Record macro references in #ifdef clause.

2022-11-23 Thread Viktoriia Bakalova via Phabricator via cfe-commits
VitaNuo updated this revision to Diff 477461. VitaNuo added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138559/new/ https://reviews.llvm.org/D138559 Files: clang-tools-extra/include-cleaner/lib/Record.cpp clang-tools-extra/

[PATCH] D138219: [include-cleaner] Show includes matched by refs in HTML report.

2022-11-23 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. sammccall marked an inline comment as done. Closed by commit rG19ab2a671eb3: [include-cleaner] Show includes matched by refs in HTML report. (authored by sammccall). Changed prior to commit: https://reviews.llvm.org/D1382

[clang-tools-extra] 19ab2a6 - [include-cleaner] Show includes matched by refs in HTML report.

2022-11-23 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-11-23T13:41:24+01:00 New Revision: 19ab2a671eb32bede5a0bf686aebf3c6838848e3 URL: https://github.com/llvm/llvm-project/commit/19ab2a671eb32bede5a0bf686aebf3c6838848e3 DIFF: https://github.com/llvm/llvm-project/commit/19ab2a671eb32bede5a0bf686aebf3c6838848e3.diff LO

[PATCH] D138566: [clang-tidy][NFC] Make CheckFactories::CreateChecks* const

2022-11-23 Thread Nathan James via Phabricator via cfe-commits
njames93 created this revision. njames93 added reviewers: aaron.ballman, gribozavr2, JonasToth. Herald added subscribers: carlosgalvezp, xazax.hun. Herald added a project: All. njames93 requested review of this revision. Herald added a project: clang-tools-extra. Herald added a subscriber: cfe-comm

[PATCH] D138564: Format changes with clang-format

2022-11-23 Thread Viktoriia Bakalova via Phabricator via cfe-commits
VitaNuo created this revision. Herald added a project: All. VitaNuo requested review of this revision. Herald added a project: clang-tools-extra. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D138564 Files: clang-tools-extra/include-clea

[PATCH] D137043: [clang] add implicit include for Linux/gnu compatibility

2022-11-23 Thread Tao Liang via Phabricator via cfe-commits
Origami404 updated this revision to Diff 477453. Origami404 added a comment. Change implements according reviews. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137043/new/ https://reviews.llvm.org/D137043 Files: clang/docs/ReleaseNotes.rst cla

[PATCH] D137399: [clang][Interp] Emit negated integers directly as constants

2022-11-23 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder abandoned this revision. tbaeder added a comment. This was just to make the byte code a little more readable, but given the amount of pending patches I already have, I'll abandon this and maybe revisit at a later point, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D137386: [clang][Interp] Reject invalid declarations and expressions

2022-11-23 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added a comment. Ping CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137386/new/ https://reviews.llvm.org/D137386 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5cfc22c - Revert "[SROA] `isVectorPromotionViable()`: memory intrinsics operate on vectors of bytes"

2022-11-23 Thread Benjamin Kramer via cfe-commits
Author: Benjamin Kramer Date: 2022-11-23T13:11:16+01:00 New Revision: 5cfc22cafe3f2465e0bb324f8daba82ffcabd0df URL: https://github.com/llvm/llvm-project/commit/5cfc22cafe3f2465e0bb324f8daba82ffcabd0df DIFF: https://github.com/llvm/llvm-project/commit/5cfc22cafe3f2465e0bb324f8daba82ffcabd0df.dif

[PATCH] D138157: Make -fsanitize=scudo use scudo_standalone. Delete check-scudo.

2022-11-23 Thread David Spickett via Phabricator via cfe-commits
DavidSpickett added a comment. We (Linaro) also have an issue with a bot that uses `-DCOMPILER_RT_BUILD_SANITIZERS=OFF`. https://lab.llvm.org/buildbot/#/builders/178/builds/3318 CMake Error at cmake/modules/AddLLVM.cmake:1915 (add_dependencies): The dependency target "ScudoUnitTests" of t

[PATCH] D137149: Use PassGate from LLVMContext if any otherwise global one

2022-11-23 Thread Evgeniy via Phabricator via cfe-commits
ebrevnov updated this revision to Diff 477446. ebrevnov marked an inline comment as done. ebrevnov added a comment. Herald added a project: clang. Herald added a subscriber: cfe-commits. Updated Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137149/n

[PATCH] D138491: [clangd] Add script to maintain list of fast clang-tidy checks

2022-11-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 477443. sammccall added a comment. Script reads/writes from file rather than redirecting output. Update .inc file to show "no-op" changes. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138491/new/ https://rev

[PATCH] D138559: Record macro references in #ifdef clause.

2022-11-23 Thread Viktoriia Bakalova via Phabricator via cfe-commits
VitaNuo created this revision. Herald added a project: All. VitaNuo requested review of this revision. Herald added a project: clang-tools-extra. Herald added a subscriber: cfe-commits. Records macro references in #ifdef clauses as ambiguous. Repository: rG LLVM Github Monorepo https://review

[PATCH] D138505: [clangd] Don't run slow clang-tidy checks

2022-11-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall planned changes to this revision. sammccall added inline comments. Comment at: clang-tools-extra/clangd/ConfigCompile.cpp:518 + +if (F.SlowChecks.has_value()) + Out.Apply.push_back([V = **F.SlowChecks](const Params &, Config &C) { kadircet wrot

[PATCH] D135750: [clang][Interp] Track initialization state of local variables

2022-11-23 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder updated this revision to Diff 477437. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D135750/new/ https://reviews.llvm.org/D135750 Files: clang/lib/AST/Interp/ByteCodeExprGen.cpp clang/lib/AST/Interp/ByteCodeStmtGen.cpp clang/lib/AST/Interp/Context.cpp clang/lib/AST/Interp/

[PATCH] D135750: [clang][Interp] Track initialization state of local variables

2022-11-23 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder marked 10 inline comments as done. tbaeder added inline comments. Comment at: clang/lib/AST/Interp/Descriptor.h:141-145 unsigned getAllocSize() const { return AllocSize; } /// returns the size of an element when the structure is viewed as an array. unsigned getEl

[PATCH] D138505: [clangd] Don't run slow clang-tidy checks

2022-11-23 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added a comment. i can't think of a proper way to test this out either. unless we somehow let slow-tidy-check list to be configurable, so probably fine to make sure it works locally and hope that new people introducing tidy checks do complain. Comment at: clang-tools

[PATCH] D138505: [clangd] Don't run slow clang-tidy checks

2022-11-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/ParsedAST.cpp:487 + } + CTFactories = std::move(FastFactories); +} njames93 wrote: > Not exactly related but surely both check factories could be made into static > variables and

[PATCH] D138539: Use std::nullopt_t instead of NoneType (NFC)

2022-11-23 Thread David Spickett via Phabricator via cfe-commits
DavidSpickett added a reviewer: DavidSpickett. DavidSpickett added a comment. lldb parts LGTM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138539/new/ https://reviews.llvm.org/D138539 ___ cfe-commits m

[PATCH] D138122: Lift EHPersonalities from Analysis to IR (NFC)

2022-11-23 Thread Stefan Gränitz via Phabricator via cfe-commits
sgraenitz updated this revision to Diff 477433. sgraenitz added a comment. clang-format includes and sort clang-formatted-files.txt Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138122/new/ https://reviews.llvm.org/D138122 Files: clang/docs/tool

  1   2   >