[clang] [clang][Interp] Fix diagnosing uninitialized nested union fields (PR #102824)

2024-08-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/102824 >From d996308e8420f7735095c1118430531509e9264d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 11 Aug 2024 19:52:51 +0200 Subject: [PATCH] [clang][Interp] Fix diagnosing uninitialized ne

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102850)

2024-08-12 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/102850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86_64] Fix empty field error in vaarg of C++. (PR #101639)

2024-08-12 Thread Longsheng Mou via cfe-commits
https://github.com/CoTinker updated https://github.com/llvm/llvm-project/pull/101639 >From a1d5fffca7b8a63efa338f1aeac3a516145ca569 Mon Sep 17 00:00:00 2001 From: Longsheng Mou Date: Fri, 2 Aug 2024 16:36:31 +0800 Subject: [PATCH 1/2] [X86_64] Fix empty field error in vaarg of C++. Such struct

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102850)

2024-08-12 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 reopened https://github.com/llvm/llvm-project/pull/102850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102850)

2024-08-12 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 reopened https://github.com/llvm/llvm-project/pull/102850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102850)

2024-08-12 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/102850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102850)

2024-08-12 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/102850 >From 598ce1867b5ac36aa6da48be0556bb637ce1ddb0 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Mon, 12 Aug 2024 13:31:35 +0800 Subject: [PATCH] [Serialization] Add a callback to register new created predefin

[clang] [llvm] [DataLayout] Remove constructor accepting a pointer to Module (PR #102841)

2024-08-12 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/102841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102850)

2024-08-12 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/102850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d469794 - [clang] Avoid triggering vtable instantiation for C++23 constexpr dtor (#102605)

2024-08-12 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2024-08-12T09:08:46+02:00 New Revision: d469794d0cdfd2fea50a6ce0c0e33abb242d744c URL: https://github.com/llvm/llvm-project/commit/d469794d0cdfd2fea50a6ce0c0e33abb242d744c DIFF: https://github.com/llvm/llvm-project/commit/d469794d0cdfd2fea50a6ce0c0e33abb242d74

[clang] [clang] Avoid triggering vtable instantiation for C++23 constexpr dtor (PR #102605)

2024-08-12 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon closed https://github.com/llvm/llvm-project/pull/102605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102855)

2024-08-12 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/102855 Close https://github.com/llvm/llvm-project/issues/102684 The root cause of the issue is, it is possible that the predefined decl is not registered at the beginning of writing a module file but got created du

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102855)

2024-08-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes Close https://github.com/llvm/llvm-project/issues/102684 The root cause of the issue is, it is possible that the predefined decl is not registered at the beginning of writing a module file but got c

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102855)

2024-08-12 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff cb372bd5e789a7d5f1945b476e643d4abfd18f35 598ce1867b5ac36aa6da48be0556bb637ce1ddb0 --e

[clang] [llvm] [X86][AVX10.2] Support saturated converts (PR #102592)

2024-08-12 Thread Phoebe Wang via cfe-commits
@@ -2122,6 +2122,36 @@ TARGET_BUILTIN(__builtin_ia32_vpdpwuud256, "V8iV8iV8iV8i", "nV:256:", "avxvnniin TARGET_BUILTIN(__builtin_ia32_vpdpwuuds128, "V4iV4iV4iV4i", "nV:128:", "avxvnniint16|avx10.2-256") TARGET_BUILTIN(__builtin_ia32_vpdpwuuds256, "V8iV8iV8iV8i", "nV:256:", "a

[clang] [llvm] [X86][AVX10.2] Support saturated converts (PR #102592)

2024-08-12 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang deleted https://github.com/llvm/llvm-project/pull/102592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DataLayout] Remove constructor accepting a pointer to Module (PR #102841)

2024-08-12 Thread Sergei Barannikov via cfe-commits
https://github.com/s-barannikov updated https://github.com/llvm/llvm-project/pull/102841 >From 8382e3ed0a5546fff4ed662a7abbaa39e2f0c22a Mon Sep 17 00:00:00 2001 From: Sergei Barannikov Date: Mon, 12 Aug 2024 04:08:54 +0300 Subject: [PATCH] [DataLayout] Remove constructor accepting a pointer to

[clang] Revert "Revert "[clang][Interp] Improve "in call to" call argument printing"" (PR #102786)

2024-08-12 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > I am not sure what is going on there, maybe it needs // UNSUPPORTED: asan > > I am not going to reland, it's just a notice, to make sure you noticed the > revert. Looks like it some kind of flakiness in the test. It returned https://lab.llvm.org/buildbot/#/builders/52/bui

[clang] [Clang] Implement CWG2369 "Ordering between constraints and substitution" (PR #102857)

2024-08-12 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/102857 Some things are not completed yet: - [ ] CWG2369 for lambdas. We currently don't perform the concept checking before the substitution into lambdas because that requires us to put/instantiate captures to the sc

[clang] [Interp] Mark the test unsupported with Asan (PR #102859)

2024-08-12 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/102859 It's very flaky recently. Issue #102858 >From fcf5476d8e8ef543a50d33b379c79e761374b9ee Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Mon, 12 Aug 2024 00:42:28 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98

[clang] [Interp] Mark the test unsupported with Asan (PR #102859)

2024-08-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vitaly Buka (vitalybuka) Changes It's very flaky recently. Issue #102858 --- Full diff: https://github.com/llvm/llvm-project/pull/102859.diff 1 Files Affected: - (modified) clang/test/Interpreter/const.cpp (+3) ``diff diff

[clang] [clang-format] Fix a serious bug in `git clang-format -f` (PR #102629)

2024-08-12 Thread Stefan Pantic via cfe-commits
stefanpantic-pdftools wrote: FYI: this breaks the tool: ```bash git clang-format --binary /usr/bin/clang-format --extensions $INPUT_EXTENSIONS --diff origin/$INPUT_TARGET_BRANCH origin/$INPUT_SOURCE_BRANCH `/usr/bin/clang-format -list-ignored` returned 1 clang-format: Unknown command line argum

[clang] [lldb] [llvm] Extending LLDB to work on AIX (PR #102601)

2024-08-12 Thread via cfe-commits
https://github.com/Dhruv-Srivastava-IBM converted_to_draft https://github.com/llvm/llvm-project/pull/102601 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a serious bug in `git clang-format -f` (PR #102629)

2024-08-12 Thread Owen Pan via cfe-commits
owenca wrote: You need to use the clang-format built from this patch, which adds the new clang-format `-list-ignored` option. https://github.com/llvm/llvm-project/pull/102629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [clang-format] Fix a serious bug in `git clang-format -f` (PR #102629)

2024-08-12 Thread Stefan Pantic via cfe-commits
stefanpantic-pdftools wrote: Gotcha, thanks! https://github.com/llvm/llvm-project/pull/102629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-08-12 Thread via cfe-commits
zmodem wrote: > no. I do not want that complicated file structure. I just want normal GNU > style's sysroot. > > x86_64-windows-msvc sysroot should have exact the same file struct as > x86_64-windows-gnu. The -msvc triples are designed to work with libraries from MSVC and the Windows SDK. We

[clang] [clang][analyzer] Remove array bounds check from PointerSubChecker (PR #102580)

2024-08-12 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/102580 From 08367f06167d8b12ee4de06a37915decd1e754e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Fri, 9 Aug 2024 09:31:55 +0200 Subject: [PATCH 1/3] [clang][analyzer] Remove array bounds c

[clang] [clang] Fixing Clang HIP inconsistent order for template functions (PR #101627)

2024-08-12 Thread via cfe-commits
Ritanya-B-Bharadwaj wrote: ping https://github.com/llvm/llvm-project/pull/101627 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Interp] Mark the test unsupported with Asan (PR #102859)

2024-08-12 Thread Jonas Hahnfeld via cfe-commits
hahnjo wrote: Quick question for my understanding: With `spr` we don't get meaningful commit messages anymore? That's quite unfortunate... https://github.com/llvm/llvm-project/pull/102859 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] b680862 - [analyzer][NFC] Trivial refactoring of region invalidation (#102456)

2024-08-12 Thread via cfe-commits
Author: Donát Nagy Date: 2024-08-12T10:34:54+02:00 New Revision: b68086241b2f386fc5cc53af2b3ee90624104dc4 URL: https://github.com/llvm/llvm-project/commit/b68086241b2f386fc5cc53af2b3ee90624104dc4 DIFF: https://github.com/llvm/llvm-project/commit/b68086241b2f386fc5cc53af2b3ee90624104dc4.diff LO

[clang] [analyzer][NFC] Trivial refactoring of region invalidation (PR #102456)

2024-08-12 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/102456 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Model overflow builtins (PR #102602)

2024-08-12 Thread Donát Nagy via cfe-commits
@@ -50,6 +101,44 @@ class BuiltinFunctionChecker : public Checker { } // namespace +void BuiltinFunctionChecker::HandleOverflowBuiltin(const CallEvent &Call, + CheckerContext &C, +

[clang] [analyzer] Model overflow builtins (PR #102602)

2024-08-12 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/102602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement `__builtin_is_implicit_lifetime()` (PR #101807)

2024-08-12 Thread Vlad Serebrennikov via cfe-commits
@@ -5637,6 +5638,27 @@ static bool EvaluateUnaryTypeTrait(Sema &Self, TypeTrait UTT, return false; case UTT_IsTriviallyEqualityComparable: return isTriviallyEqualityComparableType(Self, T, KeyLoc); + case UTT_IsImplicitLifetime: { +DiagnoseVLAInCXXTypeTrait(Self

[clang] [clang] Implement `__builtin_is_implicit_lifetime()` (PR #101807)

2024-08-12 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/101807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement `__builtin_is_implicit_lifetime()` (PR #101807)

2024-08-12 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok edited https://github.com/llvm/llvm-project/pull/101807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement `__builtin_is_implicit_lifetime()` (PR #101807)

2024-08-12 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok edited https://github.com/llvm/llvm-project/pull/101807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-08-12 Thread via cfe-commits
https://github.com/yingopq updated https://github.com/llvm/llvm-project/pull/99615 >From f8a34c8015269cfc53666e9e28a2cb1290e96e70 Mon Sep 17 00:00:00 2001 From: Ying Huang Date: Fri, 19 Jul 2024 04:19:09 -0400 Subject: [PATCH] [clang] Support -Wa, options -mmsa and -mno-msa --- clang/include/

[clang] [clang] Avoid triggering vtable instantiation for C++23 constexpr dtor (PR #102605)

2024-08-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot2` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/2746 Here is the relevant piece of the bu

[clang] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-08-12 Thread via cfe-commits
@@ -2507,6 +2507,7 @@ static void CollectArgsForIntegratedAssembler(Compilation &C, bool Crel = false, ExperimentalCrel = false; bool UseRelaxRelocations = C.getDefaultToolChain().useRelaxRelocations(); bool UseNoExecStack = false; + bool Msa = false; y

[clang] d12250c - [NFC][Clang] clang-format a function declaration

2024-08-12 Thread Jeremy Morse via cfe-commits
Author: Jeremy Morse Date: 2024-08-12T09:49:55+01:00 New Revision: d12250ca7bea22ed12caf44fe80b203d83db75bb URL: https://github.com/llvm/llvm-project/commit/d12250ca7bea22ed12caf44fe80b203d83db75bb DIFF: https://github.com/llvm/llvm-project/commit/d12250ca7bea22ed12caf44fe80b203d83db75bb.diff

[clang] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-08-12 Thread via cfe-commits
https://github.com/yingopq updated https://github.com/llvm/llvm-project/pull/99615 >From f8a34c8015269cfc53666e9e28a2cb1290e96e70 Mon Sep 17 00:00:00 2001 From: Ying Huang Date: Fri, 19 Jul 2024 04:19:09 -0400 Subject: [PATCH] [clang] Support -Wa, options -mmsa and -mno-msa --- clang/include/

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-12 Thread via cfe-commits
https://github.com/zmodem commented: Thanks! Just some nits from me. https://github.com/llvm/llvm-project/pull/102848 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-12 Thread via cfe-commits
@@ -2494,6 +2506,58 @@ void MicrosoftCXXNameMangler::mangleAddressSpaceType(QualType T, mangleArtificialTagType(TagTypeKind::Struct, ASMangling, {"__clang"}); } +void MicrosoftCXXNameMangler::mangleAutoReturnType(QualType T, +

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-12 Thread via cfe-commits
@@ -408,6 +408,9 @@ class MicrosoftCXXNameMangler { void mangleSourceName(StringRef Name); void mangleNestedName(GlobalDecl GD); + void mangleAutoReturnType(QualType T, SourceRange Range, zmodem wrote: Is the SourceRange actually needed? I see it getting

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-12 Thread via cfe-commits
https://github.com/zmodem edited https://github.com/llvm/llvm-project/pull/102848 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] handle both gnu and cpp11 attributes to ensure correct parsing inside extern block (PR #102864)

2024-08-12 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/102864 Fixes #101990 >From d08d3f318ff64b1c7ff06ac3183c8b83de4021ed Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 12 Aug 2024 11:55:52 +0300 Subject: [PATCH] [Clang] handle both gnu and cpp11 attributes to

[clang] [Clang] handle both gnu and cpp11 attributes to ensure correct parsing inside extern block (PR #102864)

2024-08-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #101990 --- Full diff: https://github.com/llvm/llvm-project/pull/102864.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+1) - (modified) clang/lib/Parse/ParseDeclCXX.cpp (+4-1)

[clang] [Clang] handle both gnu and cpp11 attributes to ensure correct parsing inside extern block (PR #102864)

2024-08-12 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/102864 >From 08f2cc1cadfe81798ea2b07b1e601e6ea67ecf9a Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 12 Aug 2024 12:00:05 +0300 Subject: [PATCH] [Clang] handle both gnu and cpp11 attributes to ensure correct

[clang] [clang][PowerPC] Add flag to enable compatibility with GNU for complex arguments (PR #77732)

2024-08-12 Thread Kishan Parmar via cfe-commits
https://github.com/Long5hot updated https://github.com/llvm/llvm-project/pull/77732 >From f463f28b76c3cf9ff4d8a3b7a5522c322258b5a3 Mon Sep 17 00:00:00 2001 From: Kishan Parmar Date: Mon, 12 Aug 2024 14:27:25 +0530 Subject: [PATCH] [clang][PowerPC] Add flag to enable compatibility with GNU for

[clang] e607360 - [clang][analyzer] Remove array bounds check from PointerSubChecker (#102580)

2024-08-12 Thread via cfe-commits
Author: Balázs Kéri Date: 2024-08-12T11:22:30+02:00 New Revision: e607360fcde2994080bb8cec9d4be3a4091fe9a9 URL: https://github.com/llvm/llvm-project/commit/e607360fcde2994080bb8cec9d4be3a4091fe9a9 DIFF: https://github.com/llvm/llvm-project/commit/e607360fcde2994080bb8cec9d4be3a4091fe9a9.diff L

[clang] [clang][analyzer] Remove array bounds check from PointerSubChecker (PR #102580)

2024-08-12 Thread Balázs Kéri via cfe-commits
https://github.com/balazske closed https://github.com/llvm/llvm-project/pull/102580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [DebugInfo][RemoveDIs] Use iterator-inserters in clang (PR #102006)

2024-08-12 Thread Jeremy Morse via cfe-commits
jmorse wrote: Clang-formatted the declaration I touched in d12250ca7be, the other matters were already present in the code so I've shied away from addressing them. https://github.com/llvm/llvm-project/pull/102006 ___ cfe-commits mailing list cfe-commi

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102855)

2024-08-12 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/102855 >From 598ce1867b5ac36aa6da48be0556bb637ce1ddb0 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Mon, 12 Aug 2024 13:31:35 +0800 Subject: [PATCH] [Serialization] Add a callback to register new created predefin

[clang] [lldb] [llvm] Extending LLDB to work on AIX (PR #102601)

2024-08-12 Thread via cfe-commits
https://github.com/Dhruv-Srivastava-IBM edited https://github.com/llvm/llvm-project/pull/102601 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Compile field+base destruction into class dtor func (PR #102871)

2024-08-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/102871 None >From 1f04d85c024520ed0399ce3a363211f77c69d68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 12 Aug 2024 11:45:27 +0200 Subject: [PATCH] [clang][Interp] Compile field+base destru

[clang] [analyzer][NFC] Improve documentation of `invalidateRegion` methods (PR #102477)

2024-08-12 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > Do you plan to apply more refactors to invalidation and Store? These were opportunistic unplanned refactors, I was just familiarizing myself with the invalidation logic (because I'll need to use it in loop widening), and I quickly fixed some minor issues that I spotted. How

[clang] [clang][Interp] Compile field+base destruction into class dtor func (PR #102871)

2024-08-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/102871.diff 5 Files Affected: - (modified) clang/lib/AST/Interp/Compiler.cpp (+58-39) - (modified) clang/lib/AST/Interp/Compiler.h (+1) - (modifi

[clang] 908c89e - [analyzer][NFC] Improve documentation of `invalidateRegion` methods (#102477)

2024-08-12 Thread via cfe-commits
Author: Donát Nagy Date: 2024-08-12T11:48:13+02:00 New Revision: 908c89e04b6019bdb08bb5f1c861af42046db623 URL: https://github.com/llvm/llvm-project/commit/908c89e04b6019bdb08bb5f1c861af42046db623 DIFF: https://github.com/llvm/llvm-project/commit/908c89e04b6019bdb08bb5f1c861af42046db623.diff LO

[clang] [analyzer][NFC] Improve documentation of `invalidateRegion` methods (PR #102477)

2024-08-12 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/102477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][llvm-lit] Rewrite constexpr vectors test to use element access (PR #102757)

2024-08-12 Thread Timm Baeder via cfe-commits
tbaederr wrote: LGTM from my side but I added some other reviewers in case they have more comments. https://github.com/llvm/llvm-project/pull/102757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread Greg Roth via cfe-commits
https://github.com/pow2clk created https://github.com/llvm/llvm-project/pull/102872 Per https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294 `dot` should be an LLVM intrinsic. This adds the llvm intrinsics and updates HLSL builtin codegen to emit them. Removed some stale comments that

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx Author: Greg Roth (pow2clk) Changes Per https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294 `dot` should be an LLVM intrinsic. This adds the llvm intrinsics and updates HLSL builtin codegen to emit them. Removed some stale com

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-globalisel Author: Greg Roth (pow2clk) Changes Per https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294 `dot` should be an LLVM intrinsic. This adds the llvm intrinsics and updates HLSL builtin codegen to emit them. Removed some stale com

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-clang Author: Greg Roth (pow2clk) Changes Per https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294 `dot` should be an LLVM intrinsic. This adds the llvm intrinsics and updates HLSL builtin codegen to emit them. Remove

[clang] [llvm] [MC] Emit a jump table size section (PR #101962)

2024-08-12 Thread Nabeel Omer via cfe-commits
omern1 wrote: > Conventionally, .debug_* sections are reserved for DWARF, even without > official standards. GNU strip's default behavior --strip-all, emulated by llvm-objcopy's --strip-all-gnu option, is roughly to remove non-SHF_ALLOC sections that are not debug. > The .llvm prefix holds no

[clang] [clang][Interp] Compile field+base destruction into class dtor func (PR #102871)

2024-08-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/102871 >From c906a9932b68485e40b368cecd7f4b5c83fb47d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 12 Aug 2024 11:45:27 +0200 Subject: [PATCH] [clang][Interp] Compile field+base destruction

[libunwind] [libunwind] Add GCS support for AArch64 (PR #99335)

2024-08-12 Thread John Brawn via cfe-commits
john-brawn-arm wrote: /cherry-pick b32aac4 c649194 3952910 https://github.com/llvm/llvm-project/pull/99335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread Greg Roth via cfe-commits
https://github.com/pow2clk commented: The three commits are independently committable, but this is the grouping @farzonl and I agreed on. Reviewing them individually still might make this easier: 1. Create llvm dot intrinsic (6fde4bc98d0156024cf7acc27e2e986b9bec3993) 2. Update DX intrinsic ex

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread Greg Roth via cfe-commits
https://github.com/pow2clk edited https://github.com/llvm/llvm-project/pull/102872 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread Greg Roth via cfe-commits
@@ -18528,37 +18520,38 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID, Value *Op1 = EmitScalarExpr(E->getArg(1)); llvm::Type *T0 = Op0->getType(); llvm::Type *T1 = Op1->getType(); + +// If the arguments are scalars, just emit a multiply

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread Greg Roth via cfe-commits
@@ -659,7 +659,7 @@ def Dot3 : DXILOp<55, dot3> { def Dot4 : DXILOp<56, dot4> { let Doc = "dot product of two float vectors Dot(a,b) = a[0]*b[0] + ... + " -"a[n]*b[n] where n is between 0 and 3"; +"a[n]*b[n] where n is 0 to 3 inclusive"; ---

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread Greg Roth via cfe-commits
@@ -7,155 +7,155 @@ // RUN: -o - | FileCheck %s --check-prefixes=CHECK,NO_HALF #ifdef __HLSL_ENABLE_16_BIT -// NATIVE_HALF: %dx.dot = mul i16 %0, %1 -// NATIVE_HALF: ret i16 %dx.dot +// NATIVE_HALF: %dot = mul i16 %0, %1 +// NATIVE_HALF: ret i16 %dot int16_t test_dot_short(

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread Greg Roth via cfe-commits
@@ -380,6 +383,20 @@ bool SPIRVInstructionSelector::spvSelect(Register ResVReg, MIB.addImm(V); return MIB.constrainAllUses(TII, TRI, RBI); } + + case TargetOpcode::G_FDOTPROD: { +MachineBasicBlock &BB = *I.getParent(); +return BuildMI(BB, I, I.getDebugLoc()

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread Greg Roth via cfe-commits
@@ -1057,6 +1057,27 @@ def G_FTANH : GenericInstruction { let hasSideEffects = false; } +/// Floating point vector dot product +def G_FDOTPROD : GenericInstruction { + let OutOperandList = (outs type0:$dst); + let InOperandList = (ins type0:$src1, type0:$src2); + let hasS

[clang] 4915fdd - [Serialization] Add a callback to register new created predefined decls for DeserializationListener (#102855)

2024-08-12 Thread via cfe-commits
Author: Chuanqi Xu Date: 2024-08-12T18:27:37+08:00 New Revision: 4915fddbb2d79b5d67794b88c23da8d296968d0e URL: https://github.com/llvm/llvm-project/commit/4915fddbb2d79b5d67794b88c23da8d296968d0e DIFF: https://github.com/llvm/llvm-project/commit/4915fddbb2d79b5d67794b88c23da8d296968d0e.diff LO

[clang] [Serialization] Add a callback to register new created predefined decls for DeserializationListener (PR #102855)

2024-08-12 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/102855 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-12 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti requested changes to this pull request. > maintaining the name of the matched classes in a vector and checking for > every other class if it inherits from `::std::enable_shared_from_this` or > classes in the vector. You wouldn't want to save the name, because then y

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-12 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/102299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-12 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,34 @@ +.. title:: clang-tidy - bugprone-incorrect-enable-shared-from-this + +bugprone-incorrect-enable-shared-from-this +=== + +Checks if class/struct publicly derives from ``std::enable_shared_from_this``, +because otherwise when ``s

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-12 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,56 @@ +// RUN: %check_clang_tidy %s bugprone-incorrect-enable-shared-from-this %t -- -- + +namespace std { +template class enable_shared_from_this {}; +} //namespace std + +class BadClassExample : std::enable_shared_from_this {}; +// CHECK-MESSAGES: :[[@LINE-1]]:7

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-12 Thread Julian Schmidt via cfe-commits
@@ -53,6 +53,7 @@ #include "ParentVirtualCallCheck.h" #include "PointerArithmeticOnPolymorphicObjectCheck.h" #include "PosixReturnCheck.h" +#include "IncorrectEnableSharedFromThisCheck.h" 5chmidti wrote: Please sort this include correctly https://github.com/l

[clang-tools-extra] [clang-tidy] Create bugprone-public-enable-shared-from-this check (PR #102299)

2024-08-12 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,33 @@ +//===--- IncorrectEnableSharedFromThisCheck.h - clang-tidy --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-12 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti requested changes to this pull request. Please add tests, a release notes entry, and document the option in the documentation of the check. https://github.com/llvm/llvm-project/pull/102831 ___ cfe-commits mailing list cfe-c

[clang] [Clang][OpenMP] Fix the wrong transform of `num_teams` claused introduced in #99732 (PR #102716)

2024-08-12 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. LG https://github.com/llvm/llvm-project/pull/102716 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AST] Add Test Cases for Reference Qualifiers in Opr Overload (PR #102878)

2024-08-12 Thread Muhammad Abdul via cfe-commits
https://github.com/0xzre created https://github.com/llvm/llvm-project/pull/102878 Follow up of issue #102422 >From 11b625354ff05c4384603932e6acca347df2132b Mon Sep 17 00:00:00 2001 From: 0xzre Date: Mon, 12 Aug 2024 17:42:37 +0700 Subject: [PATCH] [Clang][AST] Add Test Cases for Reference Qu

[clang] [Clang][AST] Add Test Cases for Reference Qualifiers in Opr Overload (PR #102878)

2024-08-12 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [Clang][AST] Add Test Cases for Reference Qualifiers in Opr Overload (PR #102878)

2024-08-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Muhammad Abdul (0xzre) Changes Follow up of issue #102422 --- Full diff: https://github.com/llvm/llvm-project/pull/102878.diff 1 Files Affected: - (modified) clang/test/SemaCXX/function-type-qual.cpp (+14) ``diff diff --gi

[clang] Fix assertion failure during conversion function overload resolution. (PR #98671)

2024-08-12 Thread Daniel M. Katz via cfe-commits
katzdm wrote: @AaronBallman @cor3ntin Would you mind taking another look? https://github.com/llvm/llvm-project/pull/98671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] handle both gnu and cpp11 attributes to ensure correct parsing inside extern block (PR #102864)

2024-08-12 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/102864 >From b0e53b1c8a687165fa28bd21200f83bf1b1a9234 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 12 Aug 2024 13:56:30 +0300 Subject: [PATCH] [Clang] handle both gnu and cpp11 attributes to ensure correct

[clang] [clang] Fixing Clang HIP inconsistent order for template functions (PR #101627)

2024-08-12 Thread Shivam Gupta via cfe-commits
xgupta wrote: First CI is failing with error - ``` clang: error: cannot find ROCm device library; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library clang: error: cannot find HIP runtime; provide its path via '--rocm-path',

[clang] [Doc] [C++20] [Modules] Clarify the reachability of internal partition units (PR #102572)

2024-08-12 Thread Aaron Ballman via cfe-commits
@@ -1230,6 +1230,57 @@ parsing their headers, those should be included after the import. If the imported modules don't provide such a header, one can be made manually for improved compile time performance. +Reachability of internal partition units +---

[clang] [Doc] [C++20] [Modules] Clarify the reachability of internal partition units (PR #102572)

2024-08-12 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/102572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add flag to suppress overflow errors in C++ constant expressions. (PR #102390)

2024-08-12 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Thank you for putting together the experiment @efriedma-quic, it's greatly appreciated! I agree with closing it for now; we can resurrect it later if necessary. https://github.com/llvm/llvm-project/pull/102390 ___ cfe-commits mail

[clang] [clang][Interp] Compile field+base destruction into class dtor func (PR #102871)

2024-08-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/102871 >From 01849578372cc922562a97f1cfa034b30c0ac6d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 12 Aug 2024 11:45:27 +0200 Subject: [PATCH] [clang][Interp] Compile field+base destruction

[clang] [Clang][AST] Add Test Cases for Reference Qualifiers in Opr Overload (PR #102878)

2024-08-12 Thread Yanzuo Liu via cfe-commits
@@ -54,4 +54,18 @@ struct B { void operator delete(void*) volatile; //expected-error {{static member function cannot have 'volatile' qualifier}} void operator delete[](void*) volatile; //expected-error {{static member function cannot have 'volatile' qualifier}} }; + +stru

[clang] [Clang] [Sema] Error on reference types inside a union with msvc 1910+ (PR #102851)

2024-08-12 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > I definitely remember this being an extension in older versions of VS around > VS 2012 but don't know when MSVC no longer exactly removed support for this > extension wholesale. This was definitely required for MFC headers; I remember implementing this horrible nonsense

[clang] [X86_64] Fix empty field error in vaarg of C++. (PR #101639)

2024-08-12 Thread Longsheng Mou via cfe-commits
https://github.com/CoTinker updated https://github.com/llvm/llvm-project/pull/101639 >From 3ff5909e6c0cc7acff96ed4e8524a3b5949b209f Mon Sep 17 00:00:00 2001 From: Longsheng Mou Date: Fri, 2 Aug 2024 16:36:31 +0800 Subject: [PATCH 1/2] [X86_64] Fix empty field error in vaarg of C++. Such struct

[clang] [llvm] [HLSL][DXIL][SPIRV] Create llvm dot intrinsic and use for HLSL (PR #102872)

2024-08-12 Thread Greg Roth via cfe-commits
https://github.com/pow2clk updated https://github.com/llvm/llvm-project/pull/102872 >From 6fde4bc98d0156024cf7acc27e2e986b9bec3993 Mon Sep 17 00:00:00 2001 From: Greg Roth Date: Fri, 2 Aug 2024 20:10:04 -0600 Subject: [PATCH 1/3] Create llvm dot intrinsic Per https://discourse.llvm.org/t/rfc-a

[clang] [PS4/PS5][Driver] Allow -static in PlayStation drivers (PR #102020)

2024-08-12 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse approved this pull request. In lieu of Paul for a bit of time, LGTM. I feel like the check for matching the linker-line could be made even stronger (one wonders how many options end with 'ld"', but it's probably good enough. https://github.com/llvm/llvm-project/pull/1

  1   2   3   4   5   >