[PATCH] D132531: [AArch64] Reserve more physical registers

2022-08-23 Thread Guozhi Wei via Phabricator via cfe-commits
Carrot created this revision. Carrot added a reviewer: dmgreen. Herald added subscribers: hiraditya, kristof.beyls. Herald added a project: All. Carrot requested review of this revision. Herald added subscribers: llvm-commits, cfe-commits, MaskRay. Herald added projects: clang, LLVM. Reserved

[PATCH] D132415: [LLDB] Add data formatter for std::coroutine_handle

2022-08-23 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik added inline comments. Comment at: lldb/source/Plugins/Language/CPlusPlus/Coroutines.cpp:39 + CompilerType coro_func_type = ast_ctx.CreateFunctionType( + /*result_type*/ void_type, /*args*/ _type, /*num_args*/ 1, + /*is_variadic*/ false, /*qualifiers*/ 0);

[PATCH] D113107: Support of expression granularity for _Float16.

2022-08-23 Thread Phoebe Wang via Phabricator via cfe-commits
pengfei added a comment. > I'm not sure what optimization you mean. Because the ABI returns 16-bit and > 32-bit FP values differently, there really isn't a way that we can return a > value without going through a truncation/extension cycle. I explained it to Zahira offline. I forgot we have

[PATCH] D116280: [clang] adds unary type trait checks as compiler built-ins

2022-08-23 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb updated this revision to Diff 455051. cjdb edited the summary of this revision. cjdb added a comment. changes RemoveReference to BuiltinRemoveReference Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116280/new/ https://reviews.llvm.org/D116280

[PATCH] D132141: [X86] Emulate _rdrand64_step with two rdrand32 if it is 32bit

2022-08-23 Thread Bing Yu 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 rG6d8ddf53cc80: [X86] Emulate _rdrand64_step with two rdrand32 if it is 32bit (authored by yubing). Repository: rG LLVM Github Monorepo CHANGES

[clang] 6d8ddf5 - [X86] Emulate _rdrand64_step with two rdrand32 if it is 32bit

2022-08-23 Thread Bing1 Yu via cfe-commits
Author: Bing1 Yu Date: 2022-08-24T10:22:46+08:00 New Revision: 6d8ddf53cc8026748a27a8964e117da371f2ccf2 URL: https://github.com/llvm/llvm-project/commit/6d8ddf53cc8026748a27a8964e117da371f2ccf2 DIFF: https://github.com/llvm/llvm-project/commit/6d8ddf53cc8026748a27a8964e117da371f2ccf2.diff

[PATCH] D132141: [X86] Emulate _rdrand64_step with two rdrand32 if it is 32bit

2022-08-23 Thread Bing Yu via Phabricator via cfe-commits
yubing updated this revision to Diff 455041. yubing added a comment. address sign-conversion issue Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132141/new/ https://reviews.llvm.org/D132141 Files: clang/lib/Headers/immintrin.h

[PATCH] D129824: [RISCV] Set triple based on -march flag which can be deduced in more generic way

2022-08-23 Thread Zixuan Wu via Phabricator via cfe-commits
zixuan-wu marked an inline comment as not done. zixuan-wu added a comment. ping... CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129824/new/ https://reviews.llvm.org/D129824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D131625: [HLSL] Entry functions require param annotation

2022-08-23 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/test/SemaHLSL/Semantics/missing_entry_annotation.hlsl:1 +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -fsyntax-only -hlsl-entry main -verify %s + beanz wrote: > aaron.ballman wrote: > > That's

[clang] 887bafb - [HLSL] Infer language from file extension

2022-08-23 Thread Chris Bieneman via cfe-commits
Author: Chris Bieneman Date: 2022-08-23T20:52:29-05:00 New Revision: 887bafb503c59c5ecef831c679a2b114ee6ef338 URL: https://github.com/llvm/llvm-project/commit/887bafb503c59c5ecef831c679a2b114ee6ef338 DIFF:

[PATCH] D131009: [analyzer] Fixing a bug raising false positives of stack block object leaking under ARC

2022-08-23 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Aha perfect, now the entire static analyzer knows how to work with these regions! I have one tiny remark and I think we can commit. Comment at: clang/lib/StaticAnalyzer/Core/MemRegion.cpp:1079 else { -if (LC) { +bool IsArcManagedBlock =

[PATCH] D113107: Support of expression granularity for _Float16.

2022-08-23 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: clang/lib/CodeGen/CGExprComplex.cpp:972 +} + } + auto result = Visit(const_cast(E)); The unary operator cases seem to have disappeared from this function. Comment at:

[PATCH] D132521: [AST] Reuse PrintingPolicy from ASTContext

2022-08-23 Thread Youngsuk Kim via Phabricator via cfe-commits
JOE1994 created this revision. Herald added a project: All. JOE1994 requested review of this revision. Herald added a project: clang. No need to create a duplicate PrintingPolicy when we can reuse the PrintingPolicy from ASTContext. Repository: rG LLVM Github Monorepo

[clang] 0d8f952 - Revert "[X86] Emulate _rdrand64_step with two rdrand32 if it is 32bit"

2022-08-23 Thread Bing1 Yu via cfe-commits
Author: Bing1 Yu Date: 2022-08-24T09:38:46+08:00 New Revision: 0d8f9520c5d8912e80b3f245d369c7b86fbd2d5d URL: https://github.com/llvm/llvm-project/commit/0d8f9520c5d8912e80b3f245d369c7b86fbd2d5d DIFF: https://github.com/llvm/llvm-project/commit/0d8f9520c5d8912e80b3f245d369c7b86fbd2d5d.diff

[clang] 07e3476 - [X86] Emulate _rdrand64_step with two rdrand32 if it is 32bit

2022-08-23 Thread Bing1 Yu via cfe-commits
Author: Bing1 Yu Date: 2022-08-24T09:28:55+08:00 New Revision: 07e34763b02728857e1d6e8ccd2b82820eb3c0cc URL: https://github.com/llvm/llvm-project/commit/07e34763b02728857e1d6e8ccd2b82820eb3c0cc DIFF: https://github.com/llvm/llvm-project/commit/07e34763b02728857e1d6e8ccd2b82820eb3c0cc.diff

[PATCH] D132141: [X86] Emulate _rdrand64_step with two rdrand32 if it is 32bit

2022-08-23 Thread Bing Yu 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 rG07e34763b027: [X86] Emulate _rdrand64_step with two rdrand32 if it is 32bit (authored by yubing). Repository: rG LLVM Github Monorepo CHANGES

[PATCH] D131625: [HLSL] Entry functions require param annotation

2022-08-23 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/test/SemaHLSL/Semantics/missing_entry_annotation.hlsl:1 +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -fsyntax-only -hlsl-entry main -verify %s + aaron.ballman wrote: > That's not needed,

[PATCH] D128113: Clang: fix AST representation of expanded template arguments.

2022-08-23 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. In D128113#3744315 , @alexfh wrote: > The whole project seems like a great improvement in clang diagnostics, but I > don't yet see how template parameter pack substitution indices fit into the > whole picture. If different

[PATCH] D131618: [WIP][Do NOT review] LLD related changes for -ffat-lto-objects support

2022-08-23 Thread Arda Unal via Phabricator via cfe-commits
arda marked 2 inline comments as done. arda added inline comments. Comment at: llvm/lib/Bitcode/Writer/EmbedBitcodePass.cpp:26 + +PreservedAnalyses EmbedBitcodePass::run(Module , ModuleAnalysisManager ) { + if (M.getGlobalVariable("llvm.embedded.module", true))

[PATCH] D128113: Clang: fix AST representation of expanded template arguments.

2022-08-23 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In D128113#3744296 , @mizvekov wrote: > In D128113#3744290 , @alexfh wrote: > >> Do you have a practical example that would use the substitution index? I >> believe you had something in

[PATCH] D128113: Clang: fix AST representation of expanded template arguments.

2022-08-23 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. In D128113#3744290 , @alexfh wrote: > Do you have a practical example that would use the substitution index? I > believe you had something in mind before you implemented this patch? Oh, yes, this is needed for / is going to

[PATCH] D128113: Clang: fix AST representation of expanded template arguments.

2022-08-23 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In D128113#3744128 , @mizvekov wrote: > In D128113#3743936 , @alexfh wrote: > >> I wonder what is the practical application of the substitution index in >> SubstTemplateTypeParmType?

[PATCH] D132415: [LLDB] Add data formatter for std::coroutine_handle

2022-08-23 Thread Adrian Vogelsgesang via Phabricator via cfe-commits
avogelsgesang added inline comments. Comment at: lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/coroutine_handle/TestCoroutineHandle.py:15 + +class TestCoroutineHandle(TestBase): +def do_test(self, stdlib_type): jingham wrote: >

[PATCH] D132415: [LLDB] Add data formatter for std::coroutine_handle

2022-08-23 Thread Adrian Vogelsgesang via Phabricator via cfe-commits
avogelsgesang updated this revision to Diff 455022. avogelsgesang marked 4 inline comments as done. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132415/new/ https://reviews.llvm.org/D132415 Files: clang/docs/tools/clang-formatted-files.txt

[clang] eca29d4 - [Clang] Avoid using unwind library in the MSVC environment

2022-08-23 Thread Petr Hosek via cfe-commits
Author: Petr Hosek Date: 2022-08-24T00:09:01Z New Revision: eca29d4a37b8d1c93fe99be6289a60bb11cf789d URL: https://github.com/llvm/llvm-project/commit/eca29d4a37b8d1c93fe99be6289a60bb11cf789d DIFF: https://github.com/llvm/llvm-project/commit/eca29d4a37b8d1c93fe99be6289a60bb11cf789d.diff LOG:

[PATCH] D132440: [Clang] Avoid using unwind library in the MSVC environment

2022-08-23 Thread Petr Hosek 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 rGeca29d4a37b8: [Clang] Avoid using unwind library in the MSVC environment (authored by phosek). Repository: rG LLVM Github Monorepo CHANGES SINCE

[PATCH] D132440: [Clang] Avoid using unwind library in the MSVC environment

2022-08-23 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 455020. phosek added a comment. Test added. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132440/new/ https://reviews.llvm.org/D132440 Files: clang/lib/Driver/ToolChains/CommonArgs.cpp

[PATCH] D130737: [analyzer] Process non-POD array element destructors

2022-08-23 Thread Domján Dániel via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGaac73a31add5: [analyzer] Process non-POD array element destructors (authored by isuckatcs). Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] aac73a3 - [analyzer] Process non-POD array element destructors

2022-08-23 Thread via cfe-commits
Author: isuckatcs Date: 2022-08-24T01:28:21+02:00 New Revision: aac73a31add5e80c746a7794d832f2cdf226486c URL: https://github.com/llvm/llvm-project/commit/aac73a31add5e80c746a7794d832f2cdf226486c DIFF: https://github.com/llvm/llvm-project/commit/aac73a31add5e80c746a7794d832f2cdf226486c.diff

[PATCH] D131632: [clang] Enable output of SARIF diagnostics

2022-08-23 Thread Abraham Corea Diaz via Phabricator via cfe-commits
abrahamcd updated this revision to Diff 455005. abrahamcd added a comment. Removed use of pointer reset in Printer. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131632/new/ https://reviews.llvm.org/D131632 Files:

[PATCH] D132192: [RISCV] Add '32bit' feature to rv32 only builtins.

2022-08-23 Thread Luís Marques via Phabricator via cfe-commits
luismarques added a comment. Overall LGTM. I have one concern, though. The old error message was more user friendly. Referring to RV32 as an extension is... weird. You're already massaging the error with the `OF = "RV64"` / `OF = "RV32"`. Can't you special case this feature check error

[PATCH] D128113: Clang: fix AST representation of expanded template arguments.

2022-08-23 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. In D128113#3743936 , @alexfh wrote: > I wonder what is the practical application of the substitution index in > SubstTemplateTypeParmType? Diagnostics? Matching AST? Something else? What > would be the cost of calculating the

[PATCH] D132415: [LLDB] Add data formatter for std::coroutine_handle

2022-08-23 Thread Jim Ingham via Phabricator via cfe-commits
jingham added inline comments. Comment at: lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/coroutine_handle/TestCoroutineHandle.py:44 + +lldbutil.run_to_source_breakpoint(self, '// Break after co_yield', +

[PATCH] D132415: [LLDB] Add data formatter for std::coroutine_handle

2022-08-23 Thread Jim Ingham via Phabricator via cfe-commits
jingham added inline comments. Comment at: lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/coroutine_handle/TestCoroutineHandle.py:15 + +class TestCoroutineHandle(TestBase): +def do_test(self, stdlib_type): aprantl wrote: > Nice

[PATCH] D131632: [clang] Enable output of SARIF diagnostics

2022-08-23 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb added inline comments. Comment at: clang/include/clang/Frontend/SARIFDiagnosticPrinter.h:41 + void setPrefix(llvm::StringRef Value) { +Prefix = std::move(Value); + } We don't need to move a StringRef. Comment at:

[PATCH] D128113: Clang: fix AST representation of expanded template arguments.

2022-08-23 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In D128113#3743736 , @mizvekov wrote: > In D128113#3742779 , @joanahalili > wrote: > >> This is the reproducer we managed to create for the memory increase. As >> mentioned above we

[PATCH] D132316: [CMake] `${LLVM_BINARY_DIR}/lib(${LLVM_LIBDIR_SUFFIX})?` -> `${LLVM_LIBRARY_DIR}`

2022-08-23 Thread John Ericson via Phabricator via cfe-commits
Ericson2314 marked 3 inline comments as done. Ericson2314 added inline comments. Comment at: llvm/tools/llvm-shlib/CMakeLists.txt:91 set(LIB_DIR ${LLVM_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX}) set(LIB_NAME ${LIB_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}LLVM)

[PATCH] D132316: [CMake] `${LLVM_BINARY_DIR}/lib(${LLVM_LIBDIR_SUFFIX})?` -> `${LLVM_LIBRARY_DIR}`

2022-08-23 Thread John Ericson via Phabricator via cfe-commits
Ericson2314 updated this revision to Diff 454982. Ericson2314 added a comment. Convert `CMAKE_CFG_INTDIR` as @sebastian-ne suggests, also .../bin Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132316/new/ https://reviews.llvm.org/D132316 Files:

[PATCH] D132430: [clang][modules] Track affecting modules

2022-08-23 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 454979. jansvoboda11 added a comment. Backslashes in tests on Windows Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132430/new/ https://reviews.llvm.org/D132430 Files:

[PATCH] D132430: [clang][modules] Track affecting modules

2022-08-23 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 454975. jansvoboda11 added a comment. Add `-fmodule-file=` assertions Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132430/new/ https://reviews.llvm.org/D132430 Files:

[PATCH] D132503: Add cxx scope if needed for requires clause.

2022-08-23 Thread Luke Nihlen via Phabricator via cfe-commits
luken-google created this revision. Herald added a project: All. luken-google requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Fixes issue #55216. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D132503 Files:

[PATCH] D132430: [clang][modules] Track affecting modules

2022-08-23 Thread Ben Langmuir via Phabricator via cfe-commits
benlangmuir added inline comments. Comment at: clang/test/ClangScanDeps/modules-incomplete-umbrella.c:82 +// CHECK_TU-NEXT: "command-line": [ +// CHECK_TU:], +// CHECK_TU-NEXT: "file-deps": [ jansvoboda11 wrote: > benlangmuir wrote: > >

[PATCH] D132430: [clang][modules] Track affecting modules

2022-08-23 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added inline comments. Comment at: clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp:311 +if (!MDC.isPrebuiltModule(M)) + DirectModularDeps.insert(M); + benlangmuir wrote: > If using eager loading, this will cause us to load the

[PATCH] D132501: [clang][modules] Consider M affecting after mapping M.Private to M_Private

2022-08-23 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 abandoned this revision. jansvoboda11 added a comment. Arcanist created two revisions, removing this one. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132501/new/ https://reviews.llvm.org/D132501

[PATCH] D132502: [clang][modules] Consider M affecting after mapping M.Private to M_Private

2022-08-23 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 created this revision. jansvoboda11 added reviewers: Bigcheese, benlangmuir. Herald added a project: All. jansvoboda11 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Wwhen Clang encounters `@import M.Private` during implicit

[PATCH] D132501: [clang][modules] Consider M affecting after mapping M.Private to M_Private

2022-08-23 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 created this revision. jansvoboda11 added reviewers: Bigcheese, benlangmuir. Herald added a project: All. jansvoboda11 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Wwhen Clang encounters `@import M.Private` during implicit

[PATCH] D128113: Clang: fix AST representation of expanded template arguments.

2022-08-23 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. In D128113#3742779 , @joanahalili wrote: > This is the reproducer we managed to create for the memory increase. As > mentioned above we notice both a difference in memory and execution time. Thanks. I also added a print of

[PATCH] D131718: [HLSL] Add abs library function

2022-08-23 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 454962. beanz added a comment. Herald added a subscriber: MaskRay. Updating with a fix for half type parameters. This addresses the issue I filed here: https://github.com/llvm/llvm-project/issues/57100 The issue was caused by HLSL not implying options to

[PATCH] D132486: SONAME introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION

2022-08-23 Thread H. Vetinari via Phabricator via cfe-commits
h-vetinari added a comment. > My concerns have already been raised by others in that thread and related > issues, I see no point in restating them yet again. I don't see consensus, I > see a handful of people discussing reverting a change that broke a whole > bunch of assumptions made by

[PATCH] D132487: [pseudo] Placeholder disambiguation strategy: always choose second

2022-08-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. This looks a good start! Comment at: clang-tools-extra/pseudo/tool/ClangPseudo.cpp:231 + +if (Disambiguate && PrintForest) { + ForestNode *DisambigRoot =

[PATCH] D132488: [CMake] Move cxx-headers to RUNTIME_DISTRIBUTION_COMPONENTS in Apple-stage2.cmake

2022-08-23 Thread Louis Dionne via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG7dfcf9342b5a: [CMake] Move cxx-headers to RUNTIME_DISTRIBUTION_COMPONENTS in Apple-stage2. (authored by ldionne). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] 7dfcf93 - [CMake] Move cxx-headers to RUNTIME_DISTRIBUTION_COMPONENTS in Apple-stage2.cmake

2022-08-23 Thread Louis Dionne via cfe-commits
Author: Louis Dionne Date: 2022-08-23T17:02:51-04:00 New Revision: 7dfcf9342b5af794aadd4ca81490090fe7ca6a45 URL: https://github.com/llvm/llvm-project/commit/7dfcf9342b5af794aadd4ca81490090fe7ca6a45 DIFF: https://github.com/llvm/llvm-project/commit/7dfcf9342b5af794aadd4ca81490090fe7ca6a45.diff

[PATCH] D132275: [clang] Create alloca to pass into static lambda

2022-08-23 Thread Vitaly Buka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGb5a9adf1f533: [clang] Create alloca to pass into static lambda (authored by vitalybuka). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132275/new/

[clang] b5a9adf - [clang] Create alloca to pass into static lambda

2022-08-23 Thread Vitaly Buka via cfe-commits
Author: Vitaly Buka Date: 2022-08-23T13:53:17-07:00 New Revision: b5a9adf1f533c6403d780bb127bda4b53f7dc7ed URL: https://github.com/llvm/llvm-project/commit/b5a9adf1f533c6403d780bb127bda4b53f7dc7ed DIFF: https://github.com/llvm/llvm-project/commit/b5a9adf1f533c6403d780bb127bda4b53f7dc7ed.diff

[PATCH] D131632: [clang] Enable output of SARIF diagnostics

2022-08-23 Thread Abraham Corea Diaz via Phabricator via cfe-commits
abrahamcd updated this revision to Diff 454950. abrahamcd marked 2 inline comments as done. abrahamcd added a comment. Added use of std::make_unique. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131632/new/ https://reviews.llvm.org/D131632

[PATCH] D132398: Allow constant static members to be used with 'this'

2022-08-23 Thread Utkarsh Saxena via Phabricator via cfe-commits
usaxena95 updated this revision to Diff 454947. usaxena95 added a comment. Format. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132398/new/ https://reviews.llvm.org/D132398 Files: clang/lib/AST/ExprConstant.cpp

[PATCH] D132398: Allow static consteval member functions to be used in const expressions.

2022-08-23 Thread Utkarsh Saxena via Phabricator via cfe-commits
usaxena95 updated this revision to Diff 454946. usaxena95 added a comment. Add constexpr tests. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132398/new/ https://reviews.llvm.org/D132398 Files: clang/lib/AST/ExprConstant.cpp

[PATCH] D132302: [clang] Add support for __attribute__((guard(nocf)))

2022-08-23 Thread Martin Storsjö via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG94778692ad25: [clang] Add support for __attribute__((guard(nocf))) (authored by alvinhochun, committed by mstorsjo). Changed prior to commit: https://reviews.llvm.org/D132302?vs=454798=454944#toc

[clang] 9477869 - [clang] Add support for __attribute__((guard(nocf)))

2022-08-23 Thread Martin Storsjö via cfe-commits
Author: Alvin Wong Date: 2022-08-23T23:39:38+03:00 New Revision: 94778692ad25456c9042caae96c40a7c066b6249 URL: https://github.com/llvm/llvm-project/commit/94778692ad25456c9042caae96c40a7c066b6249 DIFF: https://github.com/llvm/llvm-project/commit/94778692ad25456c9042caae96c40a7c066b6249.diff

[PATCH] D132398: Allow static consteval member functions to be used in const expressions.

2022-08-23 Thread Utkarsh Saxena via Phabricator via cfe-commits
usaxena95 updated this revision to Diff 454942. usaxena95 added a comment. only allow static members with this. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132398/new/ https://reviews.llvm.org/D132398 Files: clang/lib/AST/ExprConstant.cpp

[PATCH] D128830: [Pipelines] Introduce DAE after ArgumentPromotion

2022-08-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. sorry for the big delay, I did run the benchmarks and it looks fine ran this through llvm-compile-time-tracker, looks good

[clang-tools-extra] 083e3a1 - [clang-tidy] Skip unions in use-equals-default

2022-08-23 Thread Alexander Shaposhnikov via cfe-commits
Author: Alexander Shaposhnikov Date: 2022-08-23T20:09:47Z New Revision: 083e3a173d9e9d71733e0445e6f4a93e7f918dfa URL: https://github.com/llvm/llvm-project/commit/083e3a173d9e9d71733e0445e6f4a93e7f918dfa DIFF:

[PATCH] D132290: [clang-tidy] Skip unions in use-equals-default

2022-08-23 Thread Alexander Shaposhnikov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG083e3a173d9e: [clang-tidy] Skip unions in use-equals-default (authored by alexander-shaposhnikov). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132290/new/

[PATCH] D131632: [clang] Enable output of SARIF diagnostics

2022-08-23 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb added inline comments. Comment at: clang/lib/Frontend/FrontendAction.cpp:727-728 + static_cast(()) + ->setSarifWriter(std::unique_ptr( + new SarifDocumentWriter(CI.getSourceManager(; +} Now that the interface is using

[PATCH] D132415: [LLDB] Add data formatter for std::coroutine_handle

2022-08-23 Thread Adrian Vogelsgesang via Phabricator via cfe-commits
avogelsgesang marked an inline comment as done. avogelsgesang added inline comments. Comment at: lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/coroutine_handle/TestCoroutineHandle.py:44 + +lldbutil.run_to_source_breakpoint(self, '// Break after

[PATCH] D131632: [clang] Enable output of SARIF diagnostics

2022-08-23 Thread Abraham Corea Diaz via Phabricator via cfe-commits
abrahamcd added inline comments. Comment at: clang/lib/Frontend/SARIFDiagnostic.cpp:116 + +Locations.push_back( +CharSourceRange{SourceRange{BeginLoc, EndLoc}, /* ITR = */ false}); I noticed that when processing additional source ranges, regular

[PATCH] D132486: SONAME introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION

2022-08-23 Thread Jessica Clarke via Phabricator via cfe-commits
jrtc27 added a comment. In D132486#3743461 , @h-vetinari wrote: > Thanks for the review. Given that you have concerns, could you voice them in > a larger forum >

[PATCH] D132275: [clang] Create alloca to pass into static lambda

2022-08-23 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 (We might want to consider messing with the rules for calling lambdas that don't capture anything, since there's no way to actually access it from the lambda body. But it's

[PATCH] D132486: SONAME introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION

2022-08-23 Thread H. Vetinari via Phabricator via cfe-commits
h-vetinari added a comment. Thanks for the review. Given that you have concerns, could you voice them in a larger forum (https://discourse.llvm.org/t/rationale-for-removing-versioned-libclang-middle-ground-to-keep-it-behind-option/64410), where so far the direction was in favour of going back

[PATCH] D132131: [clang-format] Adds a formatter for aligning trailing comments over empty lines

2022-08-23 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. Please mark things as done. Comment at: clang/include/clang/Format/Format.h:297 AlignConsecutiveStyle AlignConsecutiveDeclarations; + /// Style of aligning consecutive trailing comments. + /// Run

[PATCH] D132405: [clang][deps] Split translation units into individual -cc1 or other commands

2022-08-23 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added inline comments. Comment at: clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h:34 +/// \see FullDependencies::Commands. +class Command { +public: benlangmuir wrote: > jansvoboda11 wrote: > > Have you considered using the

[PATCH] D131632: [clang] Enable output of SARIF diagnostics

2022-08-23 Thread Abraham Corea Diaz via Phabricator via cfe-commits
abrahamcd updated this revision to Diff 454926. abrahamcd added a comment. Documented issue with representing PresumedLocs modified by \#line directives. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131632/new/ https://reviews.llvm.org/D131632

[PATCH] D132256: [clang-format] Add DefinitionBlockSpacing option

2022-08-23 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. In D132256#3740714 , @alecto wrote: > If possible I would like to error out if MaxEmptyLinesToKeep < > DefinitionBlockSpacing, because that case is probably a mistake on the part > of the user, and a failure would be

[PATCH] D132486: SONAME introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION

2022-08-23 Thread Jessica Clarke via Phabricator via cfe-commits
jrtc27 requested changes to this revision. jrtc27 added inline comments. This revision now requires changes to proceed. Comment at: clang/CMakeLists.txt:467 +option(CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION + "Force the SOVERSION of libclang to be equal to CLANG_MAJOR" OFF) +

[PATCH] D127259: [CodeGen] guarantee templated static variables are initialized in the reverse instantiation order

2022-08-23 Thread Yuanfang Chen via Phabricator via cfe-commits
ychen planned changes to this revision. ychen added a comment. I'll do a compile-time impact measurement. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127259/new/ https://reviews.llvm.org/D127259 ___

[clang] 2b8f722 - [OpenMP] Add option to assert no nested OpenMP parallelism on the GPU

2022-08-23 Thread Joseph Huber via cfe-commits
Author: Joseph Huber Date: 2022-08-23T14:09:51-05:00 New Revision: 2b8f722e630d0fdf1ca267361866a27c8d4c9387 URL: https://github.com/llvm/llvm-project/commit/2b8f722e630d0fdf1ca267361866a27c8d4c9387 DIFF: https://github.com/llvm/llvm-project/commit/2b8f722e630d0fdf1ca267361866a27c8d4c9387.diff

[PATCH] D132074: [OpenMP] Add option to assert no nested OpenMP parallelism on the GPU

2022-08-23 Thread Joseph Huber 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 rG2b8f722e630d: [OpenMP] Add option to assert no nested OpenMP parallelism on the GPU (authored by jhuber6). Changed prior to commit:

[PATCH] D113107: Support of expression granularity for _Float16.

2022-08-23 Thread Zahira Ammarguellat via Phabricator via cfe-commits
zahiraam added inline comments. Comment at: clang/lib/CodeGen/CGExprComplex.cpp:615 + ComplexPairTy result = VisitMinus(E, promotionTy); + return result; +} rjmccall wrote: > This is not unpromoting if the original `PromotionType` is null. The idea for this

[PATCH] D113107: Support of expression granularity for _Float16.

2022-08-23 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. I'm not sure what optimization you mean. Because the ABI returns 16-bit and 32-bit FP values differently, there really isn't a way that we can return a value without going through a truncation/extension cycle. There's potential to eliminate those with IPO, but we

[PATCH] D131632: [clang] Enable output of SARIF diagnostics

2022-08-23 Thread Abraham Corea Diaz via Phabricator via cfe-commits
abrahamcd updated this revision to Diff 454918. abrahamcd marked 4 inline comments as done. abrahamcd added a comment. Modified Printer's interface to use unique pointers when setting the SARIF writer. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D128619: [Clang] Implement P0848 (Conditionally Trivial Special Member Functions)

2022-08-23 Thread Roy Jacobson 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 rG717161509914: [Clang] Implement P0848 (Conditionally Trivial Special Member Functions) (authored by royjacobson). Repository: rG LLVM Github

[clang] 7171615 - [Clang] Implement P0848 (Conditionally Trivial Special Member Functions)

2022-08-23 Thread Roy Jacobson via cfe-commits
Author: Roy Jacobson Date: 2022-08-23T21:48:42+03:00 New Revision: 7171615099142ed49042c0f27af437b05150dd9b URL: https://github.com/llvm/llvm-project/commit/7171615099142ed49042c0f27af437b05150dd9b DIFF: https://github.com/llvm/llvm-project/commit/7171615099142ed49042c0f27af437b05150dd9b.diff

[PATCH] D128619: [Clang] Implement P0848 (Conditionally Trivial Special Member Functions)

2022-08-23 Thread Roy Jacobson via Phabricator via cfe-commits
royjacobson updated this revision to Diff 454913. royjacobson added a comment. Rebase on main. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128619/new/ https://reviews.llvm.org/D128619 Files: clang/docs/ReleaseNotes.rst

[PATCH] D113107: Support of expression granularity for _Float16.

2022-08-23 Thread Zahira Ammarguellat via Phabricator via cfe-commits
zahiraam added a comment. In D113107#3743318 , @rjmccall wrote: > Somehow we've taken a huge step back on unpromotion, and I'm worried you're > now doing the exact thing I didn't want us doing and forcing all the > downstream clients to handle the

[PATCH] D131625: [HLSL] Entry functions require param annotation

2022-08-23 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 though I had a question about the test's RUN line. Comment at: clang/test/SemaHLSL/Semantics/missing_entry_annotation.hlsl:1 +// RUN: %clang_cc1 -triple

[PATCH] D132415: [LLDB] Add data formatter for std::coroutine_handle

2022-08-23 Thread Adrian Vogelsgesang via Phabricator via cfe-commits
avogelsgesang updated this revision to Diff 454911. avogelsgesang marked 6 inline comments as done. avogelsgesang added a comment. addressed comments from @aprantl Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132415/new/

[PATCH] D124033: [NFC] Adding a note about the macro __FLT_EVAL_METHOD__

2022-08-23 Thread Aaron Ballman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGba8b5ff874ad: Adding a note about the macro __FLT_EVAL_METHOD__; NFC (authored by zahiraam, committed by aaron.ballman). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] ba8b5ff - Adding a note about the macro __FLT_EVAL_METHOD__; NFC

2022-08-23 Thread Aaron Ballman via cfe-commits
Author: Zahira Ammarguellat Date: 2022-08-23T14:35:57-04:00 New Revision: ba8b5ff874ad438a07ac3cc4f2bc75898b1401f8 URL: https://github.com/llvm/llvm-project/commit/ba8b5ff874ad438a07ac3cc4f2bc75898b1401f8 DIFF:

[PATCH] D113107: Support of expression granularity for _Float16.

2022-08-23 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Somehow we've taken a huge step back on unpromotion, and I'm worried you're now doing the exact thing I didn't want us doing and forcing all the downstream clients to handle the possibility of a promoted result. Comment at:

[PATCH] D130867: [clang] adds builtin `std::invoke` and `std::invoke_r`

2022-08-23 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb updated this revision to Diff 454908. cjdb added a comment. rebases onto main Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130867/new/ https://reviews.llvm.org/D130867 Files: clang/docs/ReleaseNotes.rst

[PATCH] D132425: [clang] Do not instrument relative vtables under hwasan

2022-08-23 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr accepted this revision. mcgrathr added a comment. This revision is now accepted and ready to land. lgtm. You might add some comments in CGVTables.cpp about why this is done and what the alternatives might be in the future. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D131618: [WIP][Do NOT review] LLD related changes for -ffat-lto-objects support

2022-08-23 Thread Sean Fertile via Phabricator via cfe-commits
sfertile added inline comments. Comment at: llvm/lib/Bitcode/Writer/EmbedBitcodePass.cpp:26 + +PreservedAnalyses EmbedBitcodePass::run(Module , ModuleAnalysisManager ) { + if (M.getGlobalVariable("llvm.embedded.module", true)) From the discourse discussion: 1)

[PATCH] D132111: [clang][Interp] Implement pointer (de)ref operations and DeclRefExprs

2022-08-23 Thread Erich Keane via Phabricator via cfe-commits
erichkeane accepted this revision. erichkeane added a comment. I'm happy as well. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132111/new/ https://reviews.llvm.org/D132111 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [clang] acaf6b9 - [NFC] Add [[maybe_unused]] to avoid warning in gcc9

2022-08-23 Thread David Blaikie via cfe-commits
Thanks for the link - fair enough. We'll see how ubiquitous the constexpr-creating-sort-of-unused-variables situation is. If it comes up a lot we might want to disable the warning for GCC 9. On Mon, Aug 22, 2022 at 7:58 PM chuanqi.xcq wrote: > > Hi David, > > This is the reproduce link from

[PATCH] D132111: [clang][Interp] Implement pointer (de)ref operations and DeclRefExprs

2022-08-23 Thread Tom Honermann via Phabricator via cfe-commits
tahonermann accepted this revision. tahonermann added a comment. This revision is now accepted and ready to land. Thanks, Timm. The changes look reasonable to me, so I'll accept. Given my unfamiliarity with this code though, it would be great if someone else also gave it a nod. CHANGES SINCE

[clang] 088ba8e - [Clang] follow-up D128745, use ClangABICompat15 instead of ClangABICompat14

2022-08-23 Thread Yuanfang Chen via cfe-commits
Author: Yuanfang Chen Date: 2022-08-23T10:45:35-07:00 New Revision: 088ba8efeb4921deb49534714ddefb14a91afe46 URL: https://github.com/llvm/llvm-project/commit/088ba8efeb4921deb49534714ddefb14a91afe46 DIFF: https://github.com/llvm/llvm-project/commit/088ba8efeb4921deb49534714ddefb14a91afe46.diff

[PATCH] D132414: [Clang] follow-up D128745, use ClangABICompat15 instead of ClangABICompat14

2022-08-23 Thread Yuanfang Chen via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG088ba8efeb49: [Clang] follow-up D128745, use ClangABICompat15 instead of ClangABICompat14 (authored by ychen). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D132488: [CMake] Move cxx-headers to RUNTIME_DISTRIBUTION_COMPONENTS in Apple-stage2.cmake

2022-08-23 Thread Florian Hahn via Phabricator via cfe-commits
fhahn accepted this revision. fhahn 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/D132488/new/ https://reviews.llvm.org/D132488

[PATCH] D132421: [HLSL] Support PCH for cc1 mode

2022-08-23 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/test/SemaHLSL/pch.hlsl:5 +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -x hlsl \ +// RUN: -finclude-default-header -include-pch %t -ast-dump-all /dev/null \ +// RUN: | FileCheck %s I want to make

[PATCH] D131625: [HLSL] Entry functions require param annotation

2022-08-23 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 454892. beanz added a comment. Updates based on review feedback: - Wraped diagnostic text in td - Added FIXME for return type annotations Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131625/new/

  1   2   3   >