[clang] Fix all mypy --strict errors in clang python binding (PR #101784)

2024-08-03 Thread via cfe-commits
TsXor wrote: @DeinAlptraum @Endilll I made this change mostly as a proof of concept: most type checking errors here originates from type information of C library functions invisible in type checker's eye. To really fix all type checking errors in a sane way instead of just putting a `#type: i

[clang] [clang-format] Handle parenthesized list in RemoveParentheses (PR #100852)

2024-08-03 Thread Owen Pan via cfe-commits
https://github.com/owenca demilestoned https://github.com/llvm/llvm-project/pull/100852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Warning Libc functions (PR #101583)

2024-08-03 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/101583 >From 8a8b317c2b1c73117bcbbf771a783338448724a5 Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Thu, 1 Aug 2024 16:36:27 -0700 Subject: [PATCH 1/2] [-Wunsafe-buffer-usage] Add warn on unsafe calls to libc f

[clang] [clang-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Timothy (tilobyte) Changes addresses https://github.com/clangd/clangd/issues/86 --- Full diff: https://github.com/llvm/llvm-project/pull/101857.diff 9 Files Affected: - (modified) clang-tools-extra/clangd/CodeComplete.cpp (+

[clang] [clang-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)

2024-08-03 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-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)

2024-08-03 Thread via cfe-commits
https://github.com/tilobyte created https://github.com/llvm/llvm-project/pull/101857 addresses https://github.com/clangd/clangd/issues/86 >From c1afe853ccacae1605fecfe552bb9a263c6b8c1d Mon Sep 17 00:00:00 2001 From: Timothy Akintilo Date: Sat, 27 Jul 2024 16:17:46 -0500 Subject: [PATCH] use la

[clang] Fix all mypy --strict errors in clang python binding (PR #101784)

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: Thank you for your contribution! This is somewhat tricky situation, now that we have multiple opened PR in the same area of the codebase. But I think there is way forward: 1. https://github.com/llvm/llvm-project/pull/78114 and related work has been underway for several weeks, a

[clang] Warning Libc functions (PR #101583)

2024-08-03 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/101583 >From 8a8b317c2b1c73117bcbbf771a783338448724a5 Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Thu, 1 Aug 2024 16:36:27 -0700 Subject: [PATCH] [-Wunsafe-buffer-usage] Add warn on unsafe calls to libc funct

[clang] Fix all mypy --strict errors in clang python binding (PR #101784)

2024-08-03 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 98e4413a38f286147b863a6ead9625228ab0ec7d...c3ebad6a3447101cb307d5ca118d28d1b78b4dbe clang

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p2 requirements (PR #101853)

2024-08-03 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/101853 >From f4f091b742d7b7ca0a96725b42a7cd09530240f5 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 4 Aug 2024 00:45:49 +0300 Subject: [PATCH] [Clang] strengthen checks for 'main' function to meet [basic.st

[clang] Fix all mypy --strict errors in clang python binding (PR #101784)

2024-08-03 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: @TsXor thank you for your work! I am generally all in favor of typing annotations, and I like that `ctyped` adds a stronger connection between the Python function definitions and the C library functions in terms of types. That said, this PR is pretty massive and grows the P

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() [Cont.] (PR #95220)

2024-08-03 Thread Carlos Galvez via cfe-commits
Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heidekrüger?= , Paul =?utf-8?q?Heide

[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p2 requirements (PR #101853)

2024-08-03 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/101853 Fixes #101512 >From 16706eb1648653f41da5b6d10c1104b1cf1609bf Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 4 Aug 2024 00:45:49 +0300 Subject: [PATCH] [Clang] strengthen checks for 'main' function to

[clang] [llvm] [BPF] introduce `__attribute__((bpf_fastcall))` (PR #101228)

2024-08-03 Thread via cfe-commits
eddyz87 wrote: @AaronBallman , @efriedma-quic , could you please check my last comment [here](https://github.com/llvm/llvm-project/pull/101228#issuecomment-2263848414)? https://github.com/llvm/llvm-project/pull/101228 ___ cfe-commits mailing list cfe-

[clang] [clang][Interp] Fix assignment operator call eval order (PR #101845)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/101845.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/Compiler.cpp (+24-2) - (modified) clang/test/AST/Interp/eval-order.cpp (+5-16)

[clang] [clang][Interp] Fix assignment operator call eval order (PR #101845)

2024-08-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/101845 None >From d3912da14ccba5ecc07ae229a95b647f78ea2001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 3 Aug 2024 21:15:35 +0200 Subject: [PATCH] [clang][Interp] Fix assignment operator ca

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: This one is the same, consequently not related: ``` [7789/8607] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Clauses.cpp.o FAILED: tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Clauses.cpp.o /home/tcwg-buildbot/worker/clang-aarch64-sve-v

[clang] [clang][ASTImporter] New fix for default template parameter values. (PR #101836)

2024-08-03 Thread Balázs Kéri via cfe-commits
@@ -9919,6 +9919,103 @@ TEST_P(ImportTemplateParmDeclDefaultValue, ImportExistingVarTemplate) { testImport(FromLastD); } +TEST_P(ImportTemplateParmDeclDefaultValue, + ImportParentTemplateDuringNonTypeTemplateParmDecl) { + // This wants to provoke that during import o

[clang] [clang][ASTImporter] New fix for default template parameter values. (PR #101836)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Balázs Kéri (balazske) Changes Commit e4440b8 added a change that introduced new crash in an incorrectly handled case. This is fixed here. --- Full diff: https://github.com/llvm/llvm-project/pull/101836.diff 2 Files Affected: - (modifi

[clang] [clang][ASTImporter] New fix for default template parameter values. (PR #101836)

2024-08-03 Thread Balázs Kéri via cfe-commits
https://github.com/balazske created https://github.com/llvm/llvm-project/pull/101836 Commit e4440b8 added a change that introduced new crash in an incorrectly handled case. This is fixed here. From 2e98fc222566c5e746ade4ccaba23de3b59e0a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20

[clang] a99e8c9 - [clang][Interp] Fix assignment eval order (#101833)

2024-08-03 Thread via cfe-commits
Author: Timm Baeder Date: 2024-08-03T17:57:23+02:00 New Revision: a99e8c9c1d624433b57e16d46ab4ecf9f944f6ae URL: https://github.com/llvm/llvm-project/commit/a99e8c9c1d624433b57e16d46ab4ecf9f944f6ae DIFF: https://github.com/llvm/llvm-project/commit/a99e8c9c1d624433b57e16d46ab4ecf9f944f6ae.diff L

[clang] [clang][Interp] Fix assignment eval order (PR #101833)

2024-08-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/101833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Fix function pointer callexpr eval order (PR #101821)

2024-08-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vls` running on `linaro-g3-02` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/143/builds/1240 Here is the relevant piece of the buil

[clang] [CodeGen][NFCI] Don't re-implement parts of ASTContext::getIntWidth (PR #101765)

2024-08-03 Thread Alexander Richardson via cfe-commits
https://github.com/arichardson approved this pull request. https://github.com/llvm/llvm-project/pull/101765 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

2024-08-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vls-2stage` running on `linaro-g3-03` while building `clang` at step 11 "build stage 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/4/builds/1144 Here is the relevant piece of t

[clang] [clang][Interp] Fix assignment eval order (PR #101834)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: layta (cIamor) Changes RHS first --- Full diff: https://github.com/llvm/llvm-project/pull/101834.diff 1 Files Affected: - (modified) clang/lib/AST/Interp/Compiler.cpp (+12-4) ``diff diff --git a/clang/lib/AST/Interp/Compiler.

[clang] [clang][Interp] Fix assignment eval order (PR #101834)

2024-08-03 Thread via cfe-commits
https://github.com/cIamor closed https://github.com/llvm/llvm-project/pull/101834 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Update argument checking tablegen code to use a 'full' name (PR #99993)

2024-08-03 Thread Mike Rice via cfe-commits
mikerice1969 wrote: Proposed fix for compile-time regression https://github.com/llvm/llvm-project/pull/101768 https://github.com/llvm/llvm-project/pull/3 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: The failure is not related to this PR ``` [7756/8607] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Clauses.cpp.o FAILED: tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/OpenMP/Clauses.cpp.o /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/

[clang] [clang][Interp] Fix assignment eval order (PR #101834)

2024-08-03 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][Interp] Fix assignment eval order (PR #101834)

2024-08-03 Thread via cfe-commits
https://github.com/cIamor created https://github.com/llvm/llvm-project/pull/101834 RHS first >From ddb379384065566c7b89de29f8084b172d885f52 Mon Sep 17 00:00:00 2001 From: layta Date: Sat, 3 Aug 2024 16:28:10 +0100 Subject: [PATCH] [clang][Interp] Fix assignment eval order RHS first --- clang

[clang] [clang][Interp] Fix assignment eval order (PR #101833)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes RHS first. --- Full diff: https://github.com/llvm/llvm-project/pull/101833.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/Compiler.cpp (+12-4) - (modified) clang/test/AST/Interp/eval-order.cpp (

[clang] [clang][Interp] Fix assignment eval order (PR #101833)

2024-08-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/101833 RHS first. >From dc4740dd572eb71af1a7cd33e2c4cf5400d7d5af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 3 Aug 2024 17:24:15 +0200 Subject: [PATCH] [clang][Interp] Fix assignment eval

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

2024-08-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vla-2stage` running on `linaro-g3-04` while building `clang` at step 11 "build stage 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/41/builds/1076 Here is the relevant piece of

[clang] [clang][Interp] Fix function pointer callexpr eval order (PR #101821)

2024-08-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/101821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f78d288 - [clang][Interp] Fix function pointer callexpr eval order (#101821)

2024-08-03 Thread via cfe-commits
Author: Timm Baeder Date: 2024-08-03T16:56:37+02:00 New Revision: f78d288d9d77c66f8b3036c62bb55160f19ba9cd URL: https://github.com/llvm/llvm-project/commit/f78d288d9d77c66f8b3036c62bb55160f19ba9cd DIFF: https://github.com/llvm/llvm-project/commit/f78d288d9d77c66f8b3036c62bb55160f19ba9cd.diff L

[clang] [llvm] [X86][AVX10.2] Support YMM rounding new instructions (PR #101825)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -785,9 +785,9 @@ void DisassemblerTables::emitModRMDecision(raw_ostream &o1, raw_ostream &o2, break; } - // We assume that the index can fit into uint16_t. - assert(sEntryNumber < 65536U && - "Index into ModRMDecision is too large for uint16_t!"); + // We

[clang] [llvm] [X86][AVX10.2] Support YMM rounding new instructions (PR #101825)

2024-08-03 Thread Shengchen Kan via cfe-commits
@@ -785,9 +785,9 @@ void DisassemblerTables::emitModRMDecision(raw_ostream &o1, raw_ostream &o2, break; } - // We assume that the index can fit into uint16_t. - assert(sEntryNumber < 65536U && - "Index into ModRMDecision is too large for uint16_t!"); + // We

[clang] [llvm] [X86][AVX10.2] Support YMM rounding new instructions (PR #101825)

2024-08-03 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️ > > You can test this locally with the following command: > View the diff from clang-format here. The clang-format seems problematic, and isn't compatible with previous version. It looks like a bug to me.

[clang] [llvm] [X86][AVX10.2] Support YMM rounding new instructions (PR #101825)

2024-08-03 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 79f7630e28589364ccf989a4a838f5dd74ce260a 520379066196ffc922c7d571399052a2eb7f869c --e

[clang] [llvm] [X86][AVX10.2] Support YMM rounding new instructions (PR #101825)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-clang-codegen Author: Phoebe Wang (phoebewang) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/828965 --- Patch is 767.98 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pu

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

2024-08-03 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#101824 https://github.com/llvm/llvm-project/pull/101820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: /cherry-pick 2bae7aeab42062e61d6f9d6458660d4a5646f7af https://github.com/llvm/llvm-project/pull/101820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

2024-08-03 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum closed https://github.com/llvm/llvm-project/pull/101820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2bae7ae - [libclang] Fix symbol version of `getBinaryOpcode` functions (#101820)

2024-08-03 Thread via cfe-commits
Author: Jannick Kremer Date: 2024-08-03T15:56:54+02:00 New Revision: 2bae7aeab42062e61d6f9d6458660d4a5646f7af URL: https://github.com/llvm/llvm-project/commit/2bae7aeab42062e61d6f9d6458660d4a5646f7af DIFF: https://github.com/llvm/llvm-project/commit/2bae7aeab42062e61d6f9d6458660d4a5646f7af.diff

[clang] [clang][ASTImporter] support import return with UnaryTransformType (PR #101517)

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

[clang] [clang][Interp] Fix function pointer callexpr eval order (PR #101821)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We need to evaluate the callee before the arguments. --- Full diff: https://github.com/llvm/llvm-project/pull/101821.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/Compiler.cpp (+13-9) - (modifi

[clang] [clang][Interp] Fix function pointer callexpr eval order (PR #101821)

2024-08-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/101821 We need to evaluate the callee before the arguments. >From ef92f7ef23014f001630fe9d30cdf7c39d19bfbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 3 Aug 2024 15:06:12 +0200 Subject: [P

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: I wrote a description to provide readers some context. In general PRs without descriptions are discouraged. Hope you don't mind. https://github.com/llvm/llvm-project/pull/101820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

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

[clang] [libclang] Fix symbol version of `getBinaryOpcode` functions (PR #101820)

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

[clang] [libclang] Move getBinaryOpcode library functions to LLVM 19 (PR #101820)

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. https://github.com/llvm/llvm-project/pull/101820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Move getBinaryOpcode library functions to LLVM 19 (PR #101820)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jannick Kremer (DeinAlptraum) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/101820.diff 1 Files Affected: - (modified) clang/tools/libclang/libclang.map (+6-2) ``diff diff --git a/clang/tools/libclang/libc

[clang] [libclang] Move getBinaryOpcode library functions to LLVM 19 (PR #101820)

2024-08-03 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/101820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Move getBinaryOpcode library functions to LLVM 19 (PR #101820)

2024-08-03 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/101820 None >From aff16c3b3a0cb7065a5ac143ae06850bbbeb666a Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 3 Aug 2024 13:43:41 +0100 Subject: [PATCH] [libclang] Move getBinaryOpcode library functions to

[clang] [libclang] Move getBinaryOpcode library functions to LLVM 19 (PR #101820)

2024-08-03 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum milestoned https://github.com/llvm/llvm-project/pull/101820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface (PR #98489)

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
@@ -54,6 +54,8 @@ LLVM_13 { clang_Cursor_Evaluate; clang_Cursor_getArgument; clang_Cursor_getBriefCommentText; +clang_Cursor_getBinaryOpcode; +clang_Cursor_getBinaryOpcodeStr; Endilll wrote: Make sure to fix this on `main` first, then we ca

[clang] Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface (PR #98489)

2024-08-03 Thread Jannick Kremer via cfe-commits
@@ -54,6 +54,8 @@ LLVM_13 { clang_Cursor_Evaluate; clang_Cursor_getArgument; clang_Cursor_getBriefCommentText; +clang_Cursor_getBinaryOpcode; +clang_Cursor_getBinaryOpcodeStr; DeinAlptraum wrote: I will open a fix PR rightaway https://gith

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

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/101807 >From 9c4e7ccf47d5ede2b6169effb2a09668f512a182 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Sat, 3 Aug 2024 13:05:21 +0300 Subject: [PATCH 1/2] [clang] Implement `__builtin_is_implicit_lifetime()` Th

[clang] Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface (PR #98489)

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
@@ -54,6 +54,8 @@ LLVM_13 { clang_Cursor_Evaluate; clang_Cursor_getArgument; clang_Cursor_getBriefCommentText; +clang_Cursor_getBinaryOpcode; +clang_Cursor_getBinaryOpcodeStr; Endilll wrote: This is symbol versioning, which allows us to upd

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -388,12 +388,27 @@ static const IntrinsicData IntrinsicsWithoutChain[] = { X86_INTRINSIC_DATA(avx_vpermilvar_ps, INTR_TYPE_2OP, X86ISD::VPERMILPV, 0), X86_INTRINSIC_DATA(avx_vpermilvar_ps_256, INTR_TYPE_2OP, X86ISD::VPERMILPV, 0), +X86_INTR

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,244 @@ +// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=x86_64 -target-feature +avx10.2-512 \ +// RUN: -emit-llvm -o - -Wno-invalid-feature-combination -Wall -Werror | FileCheck %s +// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffrees

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,219 @@ +/*===--- avx10_2_512minmaxintrin.h - AVX10_2_512MINMAX intrinsics + *-=== + * + * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. + * See https://llvm.org/LICENSE.txt for license information. + * SPDX-Li

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,188 @@ +/*===--- avx10_2minmaxintrin.h - AVX10_2MINMAX intrinsics + *-=== + * + * 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-Id

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,648 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown --show-mc-encoding -mattr=+avx10.2-512 | FileCheck %s --check-prefixes=X64 +; RUN: llc < %s -verify-machineinstr

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,210 @@ +// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=x86_64 -target-feature +avx10.2-512 \ +// RUN: -emit-llvm -o - -Wno-invalid-feature-combination -Wall -Werror | FileCheck %s +// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffrees

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -2022,6 +2022,22 @@ TARGET_BUILTIN(__builtin_ia32_vsm4key4256, "V8UiV8UiV8Ui", "nV:256:", "sm4") TARGET_BUILTIN(__builtin_ia32_vsm4rnds4128, "V4UiV4UiV4Ui", "nV:128:", "sm4") TARGET_BUILTIN(__builtin_ia32_vsm4rnds4256, "V8UiV8UiV8Ui", "nV:256:", "sm4") +// AVX10-MINMAX +TA

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,219 @@ +/*===--- avx10_2_512minmaxintrin.h - AVX10_2_512MINMAX intrinsics + *-=== + * + * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. + * See https://llvm.org/LICENSE.txt for license information. + * SPDX-Li

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,188 @@ +/*===--- avx10_2minmaxintrin.h - AVX10_2MINMAX intrinsics + *-=== phoebewang wrote: ditto. https://github.com/llvm/llvm-project/pull/101598 ___ cfe-commits mailing list cf

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,219 @@ +/*===--- avx10_2_512minmaxintrin.h - AVX10_2_512MINMAX intrinsics + *-=== phoebewang wrote: Make it one line. https://github.com/llvm/llvm-project/pull/101598 ___ cfe-comm

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -2022,6 +2022,22 @@ TARGET_BUILTIN(__builtin_ia32_vsm4key4256, "V8UiV8UiV8Ui", "nV:256:", "sm4") TARGET_BUILTIN(__builtin_ia32_vsm4rnds4128, "V4UiV4UiV4Ui", "nV:128:", "sm4") TARGET_BUILTIN(__builtin_ia32_vsm4rnds4256, "V8UiV8UiV8Ui", "nV:256:", "sm4") +// AVX10-MINMAX ---

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-MINMAX new instructions. (PR #101598)

2024-08-03 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,219 @@ +/*===--- avx10_2_512minmaxintrin.h - AVX10_2_512MINMAX intrinsics + *-=== + * + * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. + * See https://llvm.org/LICENSE.txt for license information. + * SPDX-Li

[clang] fix issue: [Clang][OpenMP] Implicit conversion with `pragma omp taskloop` #100536 (PR #101812)

2024-08-03 Thread via cfe-commits
HenryZ16 wrote: @jdoerfert @alexey-bataev https://github.com/llvm/llvm-project/pull/101812 ___ 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-03 Thread Timm Baeder 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] fix issue: [Clang][OpenMP] Implicit conversion with `pragma omp taskloop` #100536 (PR #101812)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (HenryZ16) Changes This PR fixes #100536 I've noticed that this issue was caused by setting `VType` and `StrideVType` to a specified type: ```cpp if (isOpenMPTaskLoopDirective(DKind)) { VType = SemaRef.Context.getIntTypeFo

[clang] fix issue: [Clang][OpenMP] Implicit conversion with `pragma omp taskloop` #100536 (PR #101812)

2024-08-03 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] fix issue: [Clang][OpenMP] Implicit conversion with `pragma omp taskloop` #100536 (PR #101812)

2024-08-03 Thread via cfe-commits
https://github.com/HenryZ16 created https://github.com/llvm/llvm-project/pull/101812 This PR fixes #100536 I've noticed that this issue was caused by setting `VType` and `StrideVType` to a specified type: ```cpp if (isOpenMPTaskLoopDirective(DKind)) { VType = SemaRef.Context.getIntT

[clang] [RISCV][sema] Correct the requirement of `vf[n|w]cvt.x[|u].f` intrinsics (PR #101811)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes Fix https://github.com/llvm/llvm-project/issues/101526 `vf[n|w]cvt.x[|u].f` for f16 needs `zvfh` instead of `zvfhmin`, current approach is not able to detect this. Ultimately

[clang] [RISCV][sema] Correct the requirement of `vf[n|w]cvt.x[|u].f` intrinsics (PR #101811)

2024-08-03 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/101811 Fix https://github.com/llvm/llvm-project/issues/101526 `vf[n|w]cvt.x[|u].f` for f16 needs `zvfh` instead of `zvfhmin`, current approach is not able to detect this. Ultimately we need to add `zvfh` to RequiredFea

[clang] Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface (PR #98489)

2024-08-03 Thread Thomas Wucher via cfe-commits
@@ -54,6 +54,8 @@ LLVM_13 { clang_Cursor_Evaluate; clang_Cursor_getArgument; clang_Cursor_getBriefCommentText; +clang_Cursor_getBinaryOpcode; +clang_Cursor_getBinaryOpcodeStr; thomaswucher wrote: I must have missed this when rebasing the pa

[clang] Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface (PR #98489)

2024-08-03 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/98489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface (PR #98489)

2024-08-03 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/98489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface (PR #98489)

2024-08-03 Thread Jannick Kremer via cfe-commits
@@ -54,6 +54,8 @@ LLVM_13 { clang_Cursor_Evaluate; clang_Cursor_getArgument; clang_Cursor_getBriefCommentText; +clang_Cursor_getBinaryOpcode; +clang_Cursor_getBinaryOpcodeStr; DeinAlptraum wrote: This is the `LLVM_13` section of the file. >

[clang] [clang][Interp] Fix array subscript eval order (PR #101804)

2024-08-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vls` running on `linaro-g3-02` while building `clang` at step 13 "test-suite". Full details are available at: https://lab.llvm.org/buildbot/#/builders/143/builds/1236 Here is the relevant piece of the build

[clang] [clang][Interp] Fix array subscript eval order (PR #101804)

2024-08-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-windows` running on `sanitizer-windows` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/107/builds/1553 Here is the relevant piece of the build lo

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

2024-08-03 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-03 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] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
@@ -386,6 +386,10 @@ def __contains__(self, other): # same file, in between lines if self.start.line < other.line < self.end.line: return True +# between columns in one-liner range +elif self.start.line == other.line == self.end.line:

[clang] [RISCV][sema] Correct the requirement of `vf[|n|w]cvt.f.*` intrinsics (PR #101608)

2024-08-03 Thread Brandon Wu via cfe-commits
4vtomat wrote: This has been resolved by: https://github.com/llvm/llvm-project/pull/101733 https://github.com/llvm/llvm-project/pull/101608 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [RISCV][sema] Correct the requirement of `vf[|n|w]cvt.f.*` intrinsics (PR #101608)

2024-08-03 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat closed https://github.com/llvm/llvm-project/pull/101608 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Fix array subscript eval order (PR #101804)

2024-08-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/101804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0dcada9 - [clang][Interp] Fix array subscript eval order (#101804)

2024-08-03 Thread via cfe-commits
Author: Timm Baeder Date: 2024-08-03T12:25:20+02:00 New Revision: 0dcada94bb1ae79f0edd91013038098c62a96b3b URL: https://github.com/llvm/llvm-project/commit/0dcada94bb1ae79f0edd91013038098c62a96b3b DIFF: https://github.com/llvm/llvm-project/commit/0dcada94bb1ae79f0edd91013038098c62a96b3b.diff L

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

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes This intrinsic supports [P2647R1](https://wg21.link/p2674r1) "A trait for implicit lifetime types". --- Full diff: https://github.com/llvm/llvm-project/pull/101807.diff 5 Files Affected: - (modified

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

2024-08-03 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/101807 This intrinsic supports [P2647R1](https://wg21.link/p2674r1) "A trait for implicit lifetime types". >From 9c4e7ccf47d5ede2b6169effb2a09668f512a182 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Sat, 3

[clang] [clang][Interp] Fix array subscript eval order (PR #101804)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Always evaluate LHS first, then RHS. --- Full diff: https://github.com/llvm/llvm-project/pull/101804.diff 4 Files Affected: - (modified) clang/lib/AST/Interp/Compiler.cpp (+17-7) - (modified) clang/lib/AS

[clang] [clang][Interp] Fix array subscript eval order (PR #101804)

2024-08-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/101804 Always evaluate LHS first, then RHS. >From b2295d98eb4c9b9810e4f380f4a768309765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 3 Aug 2024 11:31:38 +0200 Subject: [PATCH] [clang][In

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jannick Kremer (DeinAlptraum) Changes Resolves #22617 Resolves #52827 --- Full diff: https://github.com/llvm/llvm-project/pull/101802.diff 2 Files Affected: - (modified) clang/bindings/python/clang/cindex.py (+4) - (added) clang/bind

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-03 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/101802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-03 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/101802 This resolves #22617 and #52827 >From 444d9480cf9629c81ae26636922af20db5bd52bf Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 3 Aug 2024 09:28:02 +0100 Subject: [PATCH] [libclang/python] Fix bug

[clang] [Clang] Adjust `exit()` builtin impl (PR #101689)

2024-08-03 Thread Dmitry Chestnykh via cfe-commits
chestnykh wrote: > In #74803, the question of "why" came up and was never answered. Okay, i can remove `let AddBuiltinPrefixedAlias = 1;`, but IMO that the rest of changes makes sense. What do you think? https://github.com/llvm/llvm-project/pull/101689

  1   2   >