[clang] [clang][ExprConst] Don't try to evaluate value-dependent DeclRefExprs (PR #67778)

2023-10-03 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/67778 >From 1b6fcc49f5ef9b99b4b2f7019de6d8d24a03f232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 3 Oct 2023 08:35:57 +0200 Subject: [PATCH

[clang] Avoid need for SLocEntryLoaded BitVector (PR #67960)

2023-10-03 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf updated https://github.com/llvm/llvm-project/pull/67960 >From 9fde224de6baa5b1fb3713d810ce835d4456b457 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+...@users.noreply.github.com> Date: Fri, 29 Sep 2023 08:37:57 +0200 Subject: [PATCH 1/7] Avoid need for SLocEntryLoade

[clang] [clang][ASTImporter] Fix of possible crash "Did not find base!". (PR #67680)

2023-10-03 Thread Balázs Kéri via cfe-commits
balazske wrote: The format checker job looks faulty, it fails in other patches too. I remember that clang-format was used on the code, because I usually don't add line breaks to long code lines. https://github.com/llvm/llvm-project/pull/67680 ___ cfe

[PATCH] D158413: [Lex] Introduce Preprocessor::LexTokensUntilEOF()

2023-10-03 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. ping CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158413/new/ https://reviews.llvm.org/D158413 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D158414: [LexerTest] Use LexTokensUntilEOF() in StringifyArgs

2023-10-03 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. ping CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158414/new/ https://reviews.llvm.org/D158414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Add MC layer support for Zicfiss. (PR #66043)

2023-10-03 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk updated https://github.com/llvm/llvm-project/pull/66043 >From 91bb1d9884276a37f93515a648aa6ece353fdc70 Mon Sep 17 00:00:00 2001 From: Yeting Kuo Date: Tue, 12 Sep 2023 12:28:00 +0800 Subject: [PATCH 1/2] [RISCV] Add MC layer support for Zicfiss. The patch adds the in

[clang] [RISCV] Add MC layer support for Zicfiss. (PR #66043)

2023-10-03 Thread Yeting Kuo via cfe-commits
@@ -165,6 +167,10 @@ def SP : GPRRegisterClass<(add X2)>; def SR07 : GPRRegisterClass<(add (sequence "X%u", 8, 9), (sequence "X%u", 18, 23))>; +def GPRRA : RegisterClass<"RISCV", [XLenVT], 32, (add X1, X5)> { yetingk wrote: Do

[clang] [RISCV] Add MC layer support for Zicfiss. (PR #66043)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support Changes The patch adds the instructions in Zicfiss extension. Zicfiss extension is to support shadow stack for control flow integrity. This patch is based on version [0.3.1]. [0.3.1]: https://github.com/riscv/riscv-cfi/releases/tag/v0.3.1

[PATCH] D158413: [Lex] Introduce Preprocessor::LexTokensUntilEOF()

2023-10-03 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. This looks reasonable to me, but I'd wait for @aaron.ballman greenlight as he seems to have had more comments/ideas. Comment at: clang/lib/Lex/Preprocessor.cpp:1000 + std::vector toks; + while (1) { +Token tok; Hahnfeld wrot

[clang] [lld][ELF] Warn instead of error when linker script fails to find section (PR #68058)

2023-10-03 Thread Fangrui Song via cfe-commits
MaskRay wrote: I can understand downgrading an error could be convenient for for (optimizing section layout or alleviate relocation overflow) but the motivation is a bit strange. GNU ld does use an error for this case and this change would not address `--fatal-warnings` builds. In the absence

[clang] [CodeGen] Allow mixed scalar type constraints for inline asm (PR #65465)

2023-10-03 Thread Dávid Ferenc Szabó via cfe-commits
https://github.com/dfszabo updated https://github.com/llvm/llvm-project/pull/65465 From ea6ac8788b383ba22073e631d12a80f421c36a1a Mon Sep 17 00:00:00 2001 From: dszabo Date: Mon, 18 Sep 2023 17:47:15 +0200 Subject: [PATCH] [CodeGen] Allow mixed scalar type constraints for inline asm --- .../Se

[clang] [clang-repl] Emit const variables only once (PR #65257)

2023-10-03 Thread Jonas Hahnfeld via cfe-commits
@@ -0,0 +1,29 @@ +// UNSUPPORTED: system-aix +// RUN: cat %s | clang-repl | FileCheck %s +// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s + +extern "C" int printf(const char*, ...); + hahnjo wrote: `const A a(1);` is a file-scope constant, no? We don't need i

[clang] [clang-repl][CUDA] Move CUDA module registration to beginning of global_ctors (PR #66658)

2023-10-03 Thread Jonas Hahnfeld via cfe-commits
@@ -794,7 +794,7 @@ void CodeGenModule::Release() { AddGlobalCtor(ObjCInitFunction); if (Context.getLangOpts().CUDA && CUDARuntime) { if (llvm::Function *CudaCtorFunction = CUDARuntime->finalizeModule()) - AddGlobalCtor(CudaCtorFunction); + AddGlobalCtor(C

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-03 Thread Yeting Kuo via cfe-commits
https://github.com/yetingk created https://github.com/llvm/llvm-project/pull/68075 There are two shadow stack implements with Zicfiss in [spec] now. In Shadow stack mode, programs still store the return address to regular address. In Control stack mode, programs only store the return address to

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-03 Thread Yeting Kuo via cfe-commits
yetingk wrote: This is based on #66762. https://github.com/llvm/llvm-project/pull/68075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Implement shadow stack on shadow stack mode with Zicfiss. (PR #68075)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support Changes There are two shadow stack implements with Zicfiss in [spec] now. In Shadow stack mode, programs still store the return address to regular address. In Control stack mode, programs only store the return address to shadow stack. This p

[PATCH] D126691: ASTContext: Provide a query for module initializer contents.

2023-10-03 Thread Iain Sandoe via Phabricator via cfe-commits
iains abandoned this revision. iains added a comment. although this was approved, we did not need to use it to implement the dependent changes. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126691/new/ https://reviews.llvm.org/D126691 ___

[clang] [Clang] Do not try to classify dependant call expression (PR #68078)

2023-10-03 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/68078 when the callee is an object. When implementing deducing this, we changed `DeduceTemplateArgumentsFromCallArgument` to take an argument classification because we need to deduce the type of argument for which we

[clang] [Clang] Do not try to classify dependant call expression (PR #68078)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes when the callee is an object. When implementing deducing this, we changed `DeduceTemplateArgumentsFromCallArgument` to take an argument classification because we need to deduce the type of argument for which we might not have an expressio

[clang] [clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record (PR #67522)

2023-10-03 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky updated https://github.com/llvm/llvm-project/pull/67522 >From 9dc31bfb012c32da7a1bf511db04df9c6c480a78 Mon Sep 17 00:00:00 2001 From: huqizhi Date: Wed, 27 Sep 2023 15:32:10 +0800 Subject: [PATCH] [clang][ASTImporter] fix clash when import `VarTemplateDecl` in record

[libunwind] [mlir][OpenMP] Added translation for `omp.teams` to LLVM IR (PR #68042)

2023-10-03 Thread Kiran Chandramohan via cfe-commits
@@ -0,0 +1,136 @@ +// RUN: mlir-translate -mlir-to-llvmir -split-input-file %s | FileCheck %s + +llvm.func @foo() + +// CHECK-LABEL: @omp_teams_simple +// CHECK: call void {{.*}} @__kmpc_fork_teams(ptr @{{.+}}, i32 0, ptr [[wrapperfn:.+]]) kiranchandramohan wrote

[clang] [mlir][OpenMP] Added translation for `omp.teams` to LLVM IR (PR #68042)

2023-10-03 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan approved this pull request. LGTM. Will the wrapper function stay or be removed? https://github.com/llvm/llvm-project/pull/68042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[libunwind] [mlir][OpenMP] Added translation for `omp.teams` to LLVM IR (PR #68042)

2023-10-03 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan approved this pull request. LGTM. Will the wrapper function stay or be removed? https://github.com/llvm/llvm-project/pull/68042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [mlir][OpenMP] Added translation for `omp.teams` to LLVM IR (PR #68042)

2023-10-03 Thread Kiran Chandramohan via cfe-commits
@@ -0,0 +1,136 @@ +// RUN: mlir-translate -mlir-to-llvmir -split-input-file %s | FileCheck %s + +llvm.func @foo() + +// CHECK-LABEL: @omp_teams_simple +// CHECK: call void {{.*}} @__kmpc_fork_teams(ptr @{{.+}}, i32 0, ptr [[wrapperfn:.+]]) kiranchandramohan wrote

[clang] [clang] remove ClassScopeFunctionSpecializationDecl (PR #66636)

2023-10-03 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian updated https://github.com/llvm/llvm-project/pull/66636 >From d11d546f3190936ba45c57b4825073026d817878 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Fri, 25 Aug 2023 14:07:32 -0400 Subject: [PATCH 1/5] [clang] remove ClassScopeFunctionSpecializationDecl

[clang] Add Documentation for Execution Results Handling in Clang-Repl (PR #65650)

2023-10-03 Thread Pavel Kalugin via cfe-commits
@@ -213,6 +213,411 @@ concept helps support advanced use cases such as template instantiations on dema automatic language interoperability. It also helps static languages such as C/C++ become apt for data science. +Execution Results Handling in Clang-Repl +==

[PATCH] D148381: [Clang] Implement the 'counted_by' attribute

2023-10-03 Thread Bill Wendling via Phabricator via cfe-commits
void added inline comments. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:8420-8428 +if (Result.getResultKind() == LookupResult::Found) { + SourceRange SR = CBA->getCountedByFieldLoc(); + Diag(SR.getBegin(), + diag::err_flexible_array_counted_by_attr_field_n

[clang] [clang][Interp] IntegralAP zero-init (PR #68081)

2023-10-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/68081 Not adding any tests since I'm waiting for https://github.com/llvm/llvm-project/pull/68069/ >From dabd2ea3311929d446499e94fc2647e18183ea8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue

[clang] [clang][Interp] IntegralAP zero-init (PR #68081)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes Not adding any tests since I'm waiting for https://github.com/llvm/llvm-project/pull/68069/ --- Full diff: https://github.com/llvm/llvm-project/pull/68081.diff 4 Files Affected: - (modified) clang/lib/AST/Interp/ByteCodeExprGen.cpp (+2-

[clang] [Clang] Do not try to classify dependant call expression (PR #68078)

2023-10-03 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/68078 >From a14d189cfd513d4b2c8353fbab1a53927d2feaf5 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 3 Oct 2023 09:55:08 +0200 Subject: [PATCH] [Clang] Do not try to classify dependant call expression when t

[clang] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-03 Thread Botond István Hprváth via cfe-commits
HoBoIs wrote: The paper where this came from is: https://wg21.link/P0620R0. most of this paper was already implemented. Where is the paper tracking doc I need to update? https://clang.llvm.org/cxx_status.html claims this paper is implemented. Sorry if the following questions are trivial, I'm n

[clang] [clang] Implement constexpr bit_cast for vectors (PR #66894)

2023-10-03 Thread via cfe-commits
@@ -7304,6 +7382,21 @@ class BufferToAPValueConverter { return ArrayValue; } + std::optional visit(const VectorType *Ty, CharUnits Offset) { +SmallVector Bytes; +if (!Buffer.readObject(Offset, Info.Ctx.getTypeSizeInChars(Ty), Bytes)) + return std::nullopt;

[clang] [clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record (PR #67522)

2023-10-03 Thread Balázs Kéri via cfe-commits
@@ -4988,6 +4988,39 @@ TEST_P(ASTImporterOptionSpecificTestBase, } } +TEST_P(ImportFriendClasses, RecordVarTemplateDecl) { + Decl *ToTU = getToTuDecl( + R"( + template + class A { + public: +template +static constexpr bool X = true; +

[clang] [clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record (PR #67522)

2023-10-03 Thread Balázs Kéri via cfe-commits
@@ -4988,6 +4988,39 @@ TEST_P(ASTImporterOptionSpecificTestBase, } } +TEST_P(ImportFriendClasses, RecordVarTemplateDecl) { + Decl *ToTU = getToTuDecl( + R"( + template + class A { + public: +template +static constexpr bool X = true; +

[clang] [clang-repl] Emit const variables only once (PR #65257)

2023-10-03 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,29 @@ +// UNSUPPORTED: system-aix +// RUN: cat %s | clang-repl | FileCheck %s +// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s + +extern "C" int printf(const char*, ...); + vgvassilev wrote: > const A a(1); is a file-scope constant, no? Yes, misse

[clang] [clang-repl] Emit const variables only once (PR #65257)

2023-10-03 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. LGTM. Let's move forward here and rely on a further post-commit review if necessary. https://github.com/llvm/llvm-project/pull/65257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[clang] [clang-repl] Emit const variables only once (PR #65257)

2023-10-03 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev edited https://github.com/llvm/llvm-project/pull/65257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record (PR #67522)

2023-10-03 Thread Balázs Kéri via cfe-commits
@@ -4988,6 +4988,39 @@ TEST_P(ASTImporterOptionSpecificTestBase, } } +TEST_P(ImportFriendClasses, RecordVarTemplateDecl) { + Decl *ToTU = getToTuDecl( + R"( + template + class A { + public: +template +static constexpr bool X = true; +

[clang] [clang-repl] Emit const variables only once (PR #65257)

2023-10-03 Thread Jonas Hahnfeld via cfe-commits
https://github.com/hahnjo closed https://github.com/llvm/llvm-project/pull/65257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 05137ec - [clang-repl] Emit const variables only once (#65257)

2023-10-03 Thread via cfe-commits
Author: Jonas Hahnfeld Date: 2023-10-03T11:58:23+02:00 New Revision: 05137ecfca0bd2f7fa6cd30c771dfacbb8188785 URL: https://github.com/llvm/llvm-project/commit/05137ecfca0bd2f7fa6cd30c771dfacbb8188785 DIFF: https://github.com/llvm/llvm-project/commit/05137ecfca0bd2f7fa6cd30c771dfacbb8188785.diff

[clang] [clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record (PR #67522)

2023-10-03 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky updated https://github.com/llvm/llvm-project/pull/67522 >From 4a14372fc7856adb5a6d2c2c04eaec8c3a518075 Mon Sep 17 00:00:00 2001 From: huqizhi Date: Wed, 27 Sep 2023 15:32:10 +0800 Subject: [PATCH] [clang][ASTImporter] fix clash when import `VarTemplateDecl` in record

[clang] Add Documentation for Execution Results Handling in Clang-Repl (PR #65650)

2023-10-03 Thread Vassil Vassilev via cfe-commits
@@ -213,6 +213,411 @@ concept helps support advanced use cases such as template instantiations on dema automatic language interoperability. It also helps static languages such as C/C++ become apt for data science. +Execution Results Handling in Clang-Repl +==

[clang] Add Documentation for Execution Results Handling in Clang-Repl (PR #65650)

2023-10-03 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: @Krishna-13-cyber, can you rebase this PR? @gribozavr ping. https://github.com/llvm/llvm-project/pull/65650 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ASTImporter] Fix crash when import `VarTemplateDecl` in record (PR #67522)

2023-10-03 Thread Qizhi Hu via cfe-commits
@@ -4988,6 +4988,39 @@ TEST_P(ASTImporterOptionSpecificTestBase, } } +TEST_P(ImportFriendClasses, RecordVarTemplateDecl) { + Decl *ToTU = getToTuDecl( + R"( + template + class A { + public: +template +static constexpr bool X = true; +

[clang] [analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker (PR #67663)

2023-10-03 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 updated https://github.com/llvm/llvm-project/pull/67663 From 9f7f577c95d7e9fb7e2f929215ff217ca2d7ed53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Endre=20F=C3=BCl=C3=B6p?= Date: Fri, 8 Sep 2023 14:20:00 +0200 Subject: [PATCH 1/8] [analyzer][clangsa] Add new option to

[clang] [clang] Implement constexpr bit_cast for vectors (PR #66894)

2023-10-03 Thread via cfe-commits
https://github.com/DaMatrix updated https://github.com/llvm/llvm-project/pull/66894 >From c05ee51f4d930014ac7ff4adb7232ecdaceec7f9 Mon Sep 17 00:00:00 2001 From: DaPorkchop_ Date: Sun, 13 Aug 2023 22:39:12 +0200 Subject: [PATCH] [clang] Implement constexpr bit_cast for vectors --- .../include

[clang] [clang][codegen] Add a verifier IR pass before any further passes. (PR #68015)

2023-10-03 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: The latest revision now has the new pass under control of the same flag. I will drop the matter of whether we do it for release builds by default, for this MR at least, because otherwise this is a useful change. https://github.com/llvm/llvm-project/pull/68015 __

[clang] [analyzer][clangsa] Add new option to alpha.security.cert.InvalidPtrChecker (PR #67663)

2023-10-03 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 updated https://github.com/llvm/llvm-project/pull/67663 From 9f7f577c95d7e9fb7e2f929215ff217ca2d7ed53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Endre=20F=C3=BCl=C3=B6p?= Date: Fri, 8 Sep 2023 14:20:00 +0200 Subject: [PATCH 1/8] [analyzer][clangsa] Add new option to

[clang] [flang][Driver] Support -rpath, -shared, and -static in the frontend (PR #66702)

2023-10-03 Thread David Truby via cfe-commits
DavidTruby wrote: Sorry I haven’t had a chance to look at this yet but I can help you resolve the Windows issues here. Windows does support static libraries and that’s the default for the runtime at the moment, I’ve not actually tried linking the flang runtime dynamically on Windows so that

[clang] [clang] Document -Wglobal-constructors behavior (PR #68084)

2023-10-03 Thread via cfe-commits
https://github.com/serge-sans-paille created https://github.com/llvm/llvm-project/pull/68084 It's a drop in the ocean considering the lack of documentation of our diagnostics, but it's a start. >From 9d8da7e0221ec408db68d84f3edd4aec58883eb1 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Dat

[clang] [clang] Document -Wglobal-constructors behavior (PR #68084)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes It's a drop in the ocean considering the lack of documentation of our diagnostics, but it's a start. --- Full diff: https://github.com/llvm/llvm-project/pull/68084.diff 1 Files Affected: - (modified) clang/include/clang/Basic/Diagnostic

[clang] [clang][Sema] Fix a bug when instantiating a lambda with requires clause (PR #65193)

2023-10-03 Thread via cfe-commits
https://github.com/0x59616e updated https://github.com/llvm/llvm-project/pull/65193 >From 3eafb85ff74271456cba24ea5892dd5660c1d332 Mon Sep 17 00:00:00 2001 From: Sheng Date: Wed, 30 Aug 2023 11:44:23 +0800 Subject: [PATCH 1/5] [clang][Sema] Fix a bug when instantiating a lambda with requires c

[clang] [clang][Sema] Fix a bug when instantiating a lambda with requires clause (PR #65193)

2023-10-03 Thread via cfe-commits
https://github.com/0x59616e updated https://github.com/llvm/llvm-project/pull/65193 >From 3eafb85ff74271456cba24ea5892dd5660c1d332 Mon Sep 17 00:00:00 2001 From: Sheng Date: Wed, 30 Aug 2023 11:44:23 +0800 Subject: [PATCH 1/5] [clang][Sema] Fix a bug when instantiating a lambda with requires c

[clang] [clang][Sema] Fix a bug when instantiating a lambda with requires clause (PR #65193)

2023-10-03 Thread via cfe-commits
0x59616e wrote: The typo and the style issues have been fixed. Thank you. Now I'm going to rebase to main and add release note. https://github.com/llvm/llvm-project/pull/65193 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [clang][Sema] Fix a bug when instantiating a lambda with requires clause (PR #65193)

2023-10-03 Thread via cfe-commits
https://github.com/0x59616e updated https://github.com/llvm/llvm-project/pull/65193 >From 8abb437d97382f517bcbf0b5c4a542172c5ae144 Mon Sep 17 00:00:00 2001 From: Sheng Date: Wed, 30 Aug 2023 11:44:23 +0800 Subject: [PATCH 1/6] [clang][Sema] Fix a bug when instantiating a lambda with requires c

[clang] [NFC][clang] change remaining context-dependent type nodes to ContextualFoldingSet (PR #67751)

2023-10-03 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @shafik from the last message, it seemed like this is good to go, but you didn't approve, so I am wondering if you forgot. https://github.com/llvm/llvm-project/pull/67751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [RISCV][AArch64] Don't allow -mvscale-min/max options to be passed to the clang driver. (PR #68065)

2023-10-03 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm approved this pull request. https://github.com/llvm/llvm-project/pull/68065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b6ee41f - [clang-repl] Relax regular expression for new const.cpp test

2023-10-03 Thread Jonas Hahnfeld via cfe-commits
Author: Jonas Hahnfeld Date: 2023-10-03T13:10:31+02:00 New Revision: b6ee41f83c6ea361bfafc2168e9223379b32773f URL: https://github.com/llvm/llvm-project/commit/b6ee41f83c6ea361bfafc2168e9223379b32773f DIFF: https://github.com/llvm/llvm-project/commit/b6ee41f83c6ea361bfafc2168e9223379b32773f.diff

[clang] [Clang] Fix constant evaluating a captured variable in a lambda (PR #68090)

2023-10-03 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/68090 with an explicit parameter. Fixes #68070 >From d3c5351c0bddd0bf9cd743471beafbf18bbab77c Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 3 Oct 2023 13:19:50 +0200 Subject: [PATCH] [Clang] Fix constant

[clang] Use platform specific calls to get the executable absolute path (PR #68091)

2023-10-03 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul created https://github.com/llvm/llvm-project/pull/68091 This patch fixes #66704. >From f3812174546270051c4a2903b9a99408bf5b7ba0 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 3 Oct 2023 14:07:48 +0300 Subject: [PATCH 1/2] [clang][driver] Use platform specific

[clang] [Clang] Fix constant evaluating a captured variable in a lambda (PR #68090)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes with an explicit parameter. Fixes #68070 --- Full diff: https://github.com/llvm/llvm-project/pull/68090.diff 2 Files Affected: - (modified) clang/lib/AST/ExprConstant.cpp (+7-1) - (modified) clang/test/SemaCXX/cxx2b-deducing-this-const

[clang] Use platform specific calls to get the executable absolute path (PR #68091)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes This patch fixes #66704. --- Full diff: https://github.com/llvm/llvm-project/pull/68091.diff 1 Files Affected: - (modified) clang/tools/driver/driver.cpp (+61) ``diff diff --git a/clang/tools/driver/driver.cpp b/clang/tools/dr

[clang] [clang][driver] Use platform specific calls to get the executable absolute path (PR #68091)

2023-10-03 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul edited https://github.com/llvm/llvm-project/pull/68091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4812eec - [clang-repl] XFAIL new const.cpp test on Windows

2023-10-03 Thread Jonas Hahnfeld via cfe-commits
Author: Jonas Hahnfeld Date: 2023-10-03T13:30:01+02:00 New Revision: 4812eecd7106200c0330d6371afbe036f577244a URL: https://github.com/llvm/llvm-project/commit/4812eecd7106200c0330d6371afbe036f577244a DIFF: https://github.com/llvm/llvm-project/commit/4812eecd7106200c0330d6371afbe036f577244a.diff

[PATCH] D158540: Improve error message for constexpr constructors of virtual base classes

2023-10-03 Thread Nouman Amir via Phabricator via cfe-commits
NoumanAmir657 updated this revision to Diff 557555. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158540/new/ https://reviews.llvm.org/D158540 Files: clang/docs/ReleaseNotes.rst clang/include/clang/Basic/DiagnosticSemaKinds.td clang/lib/Sema/SemaDeclCXX.cpp clang/test/CXX/dcl.dcl

[clang] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-03 Thread Botond István Hprváth via cfe-commits
HoBoIs wrote: Deduction guides were added in C++17, and This paper is also in C++17, so I don't think we need to check for versions in the code (I don't create any deduction guides I just use them so before C++17 my code is never used). https://github.com/llvm/llvm-project/pull/66487 _

[clang] [Clang] Fix constant evaluating a captured variable in a lambda (PR #68090)

2023-10-03 Thread Timm Baeder via cfe-commits
@@ -8366,8 +8366,14 @@ bool LValueExprEvaluator::VisitVarDecl(const Expr *E, const VarDecl *VD) { return false; if (auto *FD = Info.CurrentCall->LambdaCaptureFields.lookup(VD)) { + auto *MD = cast(Info.CurrentCall->Callee); // Start with 'Result' referri

[clang] [Clang] Fix constant evaluating a captured variable in a lambda (PR #68090)

2023-10-03 Thread Timm Baeder via cfe-commits
@@ -8366,8 +8366,14 @@ bool LValueExprEvaluator::VisitVarDecl(const Expr *E, const VarDecl *VD) { return false; if (auto *FD = Info.CurrentCall->LambdaCaptureFields.lookup(VD)) { + auto *MD = cast(Info.CurrentCall->Callee); // Start with 'Result' referri

[clang] [OpenMP] Improve omp offload profiler (PR #68016)

2023-10-03 Thread via cfe-commits
https://github.com/fel-cab updated https://github.com/llvm/llvm-project/pull/68016 >From dd44de067c26ba94b6561c5ed7fa4a5d812a3d1a Mon Sep 17 00:00:00 2001 From: Felipe Cabarcas Date: Mon, 18 Sep 2023 12:07:12 + Subject: [PATCH 01/11] testing Profiler features --- openmp/libomptarget/src/i

[clang-tools-extra] [OpenMP] Improve omp offload profiler (PR #68016)

2023-10-03 Thread via cfe-commits
https://github.com/fel-cab updated https://github.com/llvm/llvm-project/pull/68016 >From dd44de067c26ba94b6561c5ed7fa4a5d812a3d1a Mon Sep 17 00:00:00 2001 From: Felipe Cabarcas Date: Mon, 18 Sep 2023 12:07:12 + Subject: [PATCH 01/11] testing Profiler features --- openmp/libomptarget/src/i

[libunwind] [OpenMP] Improve omp offload profiler (PR #68016)

2023-10-03 Thread via cfe-commits
https://github.com/fel-cab updated https://github.com/llvm/llvm-project/pull/68016 >From dd44de067c26ba94b6561c5ed7fa4a5d812a3d1a Mon Sep 17 00:00:00 2001 From: Felipe Cabarcas Date: Mon, 18 Sep 2023 12:07:12 + Subject: [PATCH 01/11] testing Profiler features --- openmp/libomptarget/src/i

[clang] 9a40858 - [HIP][Clang][Driver] Add Driver support for `hipstdpar`

2023-10-03 Thread Alex Voicu via cfe-commits
Author: Alex Voicu Date: 2023-10-03T13:14:46+01:00 New Revision: 9a408588d1b8b7899eff593c537de539a4a12651 URL: https://github.com/llvm/llvm-project/commit/9a408588d1b8b7899eff593c537de539a4a12651 DIFF: https://github.com/llvm/llvm-project/commit/9a408588d1b8b7899eff593c537de539a4a12651.diff LO

[PATCH] D155775: [HIP][Clang][Driver][RFC] Add driver support for C++ Parallel Algorithm Offload

2023-10-03 Thread Alex Voicu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG9a408588d1b8: [HIP][Clang][Driver] Add Driver support for `hipstdpar` (authored by AlexVlx). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D155775/new/ https

[PATCH] D158540: Improve error message for constexpr constructors of virtual base classes

2023-10-03 Thread Nouman Amir via Phabricator via cfe-commits
NoumanAmir657 updated this revision to Diff 557557. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158540/new/ https://reviews.llvm.org/D158540 Files: clang/docs/ReleaseNotes.rst clang/include/clang/Basic/DiagnosticSemaKinds.td clang/lib/Sema/SemaDeclCXX.cpp clang/test/CXX/dcl.dcl

[clang] [Clang] Fix constant evaluating a captured variable in a lambda (PR #68090)

2023-10-03 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/68090 >From d3c5351c0bddd0bf9cd743471beafbf18bbab77c Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 3 Oct 2023 13:19:50 +0200 Subject: [PATCH 1/2] [Clang] Fix constant evaluating a captured variable in a la

[clang] c0f8748 - [HIP][Clang][Preprocessor] Add Preprocessor support for `hipstdpar`

2023-10-03 Thread Alex Voicu via cfe-commits
Author: Alex Voicu Date: 2023-10-03T13:18:31+01:00 New Revision: c0f8748d448be69748fee73014a60ada22b41b0d URL: https://github.com/llvm/llvm-project/commit/c0f8748d448be69748fee73014a60ada22b41b0d DIFF: https://github.com/llvm/llvm-project/commit/c0f8748d448be69748fee73014a60ada22b41b0d.diff LO

[PATCH] D155826: [HIP][Clang][Preprocessor][RFC] Add preprocessor support for C++ Parallel Algorithm Offload

2023-10-03 Thread Alex Voicu 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 rGc0f8748d448b: [HIP][Clang][Preprocessor] Add Preprocessor support for `hipstdpar` (authored by AlexVlx). Changed prior to commit: https://reviews.

[clang] [Clang] Fix constant evaluating a captured variable in a lambda (PR #68090)

2023-10-03 Thread via cfe-commits
@@ -8366,8 +8366,14 @@ bool LValueExprEvaluator::VisitVarDecl(const Expr *E, const VarDecl *VD) { return false; if (auto *FD = Info.CurrentCall->LambdaCaptureFields.lookup(VD)) { + auto *MD = cast(Info.CurrentCall->Callee); // Start with 'Result' referri

[clang] Extension: allow recursive macros (PR #65851)

2023-10-03 Thread via cfe-commits
https://github.com/kelbon updated https://github.com/llvm/llvm-project/pull/65851 >From d10ce5dd9e49fe85eac2e1f93a65cb27b511a71f Mon Sep 17 00:00:00 2001 From: Kelbon Nik Date: Sat, 9 Sep 2023 17:51:15 +0400 Subject: [PATCH 01/17] add define2 pp directive --- clang/include/clang/Basic/TokenKi

[clang] [OpenMP] Improve omp offload profiler (PR #68016)

2023-10-03 Thread via cfe-commits
@@ -79,15 +79,15 @@ struct TimeTraceProfilerEntry { // Calculate timings for FlameGraph. Cast time points to microsecond precision fel-cab wrote: Removed this file from this PR https://github.com/llvm/llvm-project/pull/68016 _

[libunwind] [OpenMP] Improve omp offload profiler (PR #68016)

2023-10-03 Thread via cfe-commits
@@ -79,15 +79,15 @@ struct TimeTraceProfilerEntry { // Calculate timings for FlameGraph. Cast time points to microsecond precision fel-cab wrote: Removed this file from this PR https://github.com/llvm/llvm-project/pull/68016 _

[clang-tools-extra] [OpenMP] Improve omp offload profiler (PR #68016)

2023-10-03 Thread via cfe-commits
@@ -79,15 +79,15 @@ struct TimeTraceProfilerEntry { // Calculate timings for FlameGraph. Cast time points to microsecond precision fel-cab wrote: Removed this file from this PR https://github.com/llvm/llvm-project/pull/68016 _

[clang] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-03 Thread Botond István Hprváth via cfe-commits
https://github.com/HoBoIs updated https://github.com/llvm/llvm-project/pull/66487 From 258462cc65403af147bb47cbeb95210df8e18cd3 Mon Sep 17 00:00:00 2001 From: hobois Date: Fri, 15 Sep 2023 09:28:21 +0200 Subject: [PATCH] Choose the correct deduction guide If there are two guides, one of them g

[libclc] [LIBCLC] Teach prepare-builtins how to handle text based IR (PR #66993)

2023-10-03 Thread Jakub Chlanda via cfe-commits
https://github.com/jchlanda closed https://github.com/llvm/llvm-project/pull/66993 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 5ec9faf - [LIBCLC] Teach prepare-builtins how to handle text based IR (#66993)

2023-10-03 Thread via cfe-commits
Author: Jakub Chlanda Date: 2023-10-03T14:28:01+02:00 New Revision: 5ec9faf007cc2589682cd28a10aa5a351f6aebda URL: https://github.com/llvm/llvm-project/commit/5ec9faf007cc2589682cd28a10aa5a351f6aebda DIFF: https://github.com/llvm/llvm-project/commit/5ec9faf007cc2589682cd28a10aa5a351f6aebda.diff

[clang] 4d680f5 - [HIP][Clang][Sema] Add Sema support for `hipstdpar`

2023-10-03 Thread Alex Voicu via cfe-commits
Author: Alex Voicu Date: 2023-10-03T13:29:12+01:00 New Revision: 4d680f56475ce17d8fb793655eb3d77ac8aee1b9 URL: https://github.com/llvm/llvm-project/commit/4d680f56475ce17d8fb793655eb3d77ac8aee1b9 DIFF: https://github.com/llvm/llvm-project/commit/4d680f56475ce17d8fb793655eb3d77ac8aee1b9.diff LO

[PATCH] D155833: [HIP][Clang][Sema][RFC] Add Sema support for C++ Parallel Algorithm Offload

2023-10-03 Thread Alex Voicu 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 rG4d680f56475c: [HIP][Clang][Sema] Add Sema support for `hipstdpar` (authored by AlexVlx). Changed prior to commit: https://reviews.llvm.org/D155833

[clang-tools-extra] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-03 Thread Botond István Hprváth via cfe-commits
https://github.com/HoBoIs updated https://github.com/llvm/llvm-project/pull/66487 From 258462cc65403af147bb47cbeb95210df8e18cd3 Mon Sep 17 00:00:00 2001 From: hobois Date: Fri, 15 Sep 2023 09:28:21 +0200 Subject: [PATCH 1/2] Choose the correct deduction guide If there are two guides, one of th

[clang] [clang][driver] Use platform specific calls to get the executable absolute path (PR #68091)

2023-10-03 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: You have failed tests on Linux CI: ``` Failed Tests (4): Clang :: Driver/mingw-sysroot.cpp Clang :: Driver/no-canonical-prefixes.c Clang :: Driver/program-path-priority.c Clang :: Driver/rocm-detect.hip ``` Windows CI has another test in Clang interpreter failing, but that

[clang] [clang-repl] Emit const variables only once (PR #65257)

2023-10-03 Thread Jonas Hahnfeld via cfe-commits
hahnjo wrote: Note that this currently doesn't seem to work on Windows: https://github.com/llvm/llvm-project/issues/68092 https://github.com/llvm/llvm-project/pull/65257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] 3e3cf77 - [HIP][Clang][Driver] Fix build failure introduced by https://reviews.llvm.org/rG9a408588d1b8b7899eff593c537de539a4a12651

2023-10-03 Thread Alex Voicu via cfe-commits
Author: Alex Voicu Date: 2023-10-03T13:45:32+01:00 New Revision: 3e3cf77cbebab237b3f9379fc07d4b1af391f874 URL: https://github.com/llvm/llvm-project/commit/3e3cf77cbebab237b3f9379fc07d4b1af391f874 DIFF: https://github.com/llvm/llvm-project/commit/3e3cf77cbebab237b3f9379fc07d4b1af391f874.diff LO

[clang] Add Documentation for Execution Results Handling in Clang-Repl (PR #65650)

2023-10-03 Thread Krishna Narayanan via cfe-commits
https://github.com/Krishna-13-cyber updated https://github.com/llvm/llvm-project/pull/65650 >From 145ff3877b588aebd811f26b6d596257ea889957 Mon Sep 17 00:00:00 2001 From: Krishna-13-cyber Date: Thu, 7 Sep 2023 22:35:53 +0530 Subject: [PATCH 1/2] Add Documentation for Execution Results Handling i

[PATCH] D158540: Improve error message for constexpr constructors of virtual base classes

2023-10-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/docs/ReleaseNotes.rst:211-212 with terminals with dark background colors. This is also more consistent with GCC. +- Clang now displays an improved diagnostic and a note when defaulted special + member is a contexpr in a

[clang] 0bb4b24 - [clang][AIX]Fix -flto-jobs for AIX. (#67853)

2023-10-03 Thread via cfe-commits
Author: Dhanrajbir-Hira Date: 2023-10-03T09:18:21-04:00 New Revision: 0bb4b24ca35e1e67efc8ea2152085f981207210c URL: https://github.com/llvm/llvm-project/commit/0bb4b24ca35e1e67efc8ea2152085f981207210c DIFF: https://github.com/llvm/llvm-project/commit/0bb4b24ca35e1e67efc8ea2152085f981207210c.dif

[clang] [clang][AIX]Fix -flto-jobs for AIX. (PR #67853)

2023-10-03 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu closed https://github.com/llvm/llvm-project/pull/67853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bc0c178 - [Clang][OpenMP][OMPIRBuilder] Move Clang's OpenMP Member/MemberOf flag helpers into the OMPIRBuilder (#67844)

2023-10-03 Thread via cfe-commits
Author: agozillon Date: 2023-10-03T15:20:44+02:00 New Revision: bc0c1783fd5a4b0a2202ee9613cefd2c67d7 URL: https://github.com/llvm/llvm-project/commit/bc0c1783fd5a4b0a2202ee9613cefd2c67d7 DIFF: https://github.com/llvm/llvm-project/commit/bc0c1783fd5a4b0a2202ee9613cefd2c67d7.diff LOG

[clang] [Clang][OpenMP][OMPIRBuilder] Move Clang's OpenMP Member/MemberOf flag helpers into the OMPIRBuilder (PR #67844)

2023-10-03 Thread via cfe-commits
https://github.com/agozillon closed https://github.com/llvm/llvm-project/pull/67844 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Do not try to classify dependant call expression (PR #68078)

2023-10-03 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/68078 >From a14d189cfd513d4b2c8353fbab1a53927d2feaf5 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 3 Oct 2023 09:55:08 +0200 Subject: [PATCH 1/2] [Clang] Do not try to classify dependant call expression wh

[PATCH] D148381: [Clang] Implement the 'counted_by' attribute

2023-10-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:8420-8428 +if (Result.getResultKind() == LookupResult::Found) { + SourceRange SR = CBA->getCountedByFieldLoc(); + Diag(SR.getBegin(), + diag::err_flexible_array_counted_by_att

[clang] [clang-format] Fix alignment in presence of template functions (PR #68029)

2023-10-03 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks edited https://github.com/llvm/llvm-project/pull/68029 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >