[clang] nolock/noalloc attributes (PR #84983)

2024-03-14 Thread via cfe-commits
Sirraide wrote: > > I was testing with `noreturn` earlier. It's hard to compare, because (at > least in C23): > > ``` > ../clang/test/Sema/attr-nolock-wip.cpp:15:19: error: 'noreturn' attribute > cannot be applied to types >15 | void noret(int) [[noreturn]]; > | ^

[clang] nolock/noalloc attributes (PR #84983)

2024-03-14 Thread via cfe-commits
Sirraide wrote: > Adapted from `test/Sema/initialize-noreturn.c` Seeing as that test does check that we’re issuing an error for this, and seeing that this seems to be handled in `isFunctionConversion()`, it really just seems like that function is supposed to error if there is a conversion (i.e

[clang] nolock/noalloc attributes (PR #84983)

2024-03-14 Thread via cfe-commits
Sirraide wrote: > Just tried. In C mode, it works to do nothing about effect changes in > isFunctionConversion (!). I would maybe try going with that then for now (and maybe add a comment about that too); I’m not sure my function pointer example is really the same situation, but I remember fi

[clang] [Clang] Bugfixes and improved support for `AttributedType`s in lambdas (PR #85325)

2024-03-14 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/85325 >From 907210a3ad3d829a8e49a5c976d129f8653801bf Mon Sep 17 00:00:00 2001 From: Sirraide Date: Thu, 14 Mar 2024 18:24:37 +0100 Subject: [PATCH 01/11] [Clang] Add `dump()` method for `Attr` --- clang/include/clan

[clang] [Clang] Bugfixes and improved support for `AttributedType`s in lambdas (PR #85325)

2024-03-14 Thread via cfe-commits
Sirraide wrote: Seeing as there are now two places where we want to adjust function types but also preserve sugar, I’ve gone ahead and added a generic `adjustType()` function that handles all of the sugar and takes a `function_ref` to perform the actual adjustment. The intent here is that, i

[clang] [Clang] Bugfixes and improved support for `AttributedType`s in lambdas (PR #85325)

2024-03-14 Thread via cfe-commits
@@ -3140,13 +3140,35 @@ const FunctionType *ASTContext::adjustFunctionType(const FunctionType *T, return cast(Result.getTypePtr()); } +QualType ASTContext::adjustFunctionResultType(QualType FunctionType, + QualType ResultType) {

[clang] [libclc] [llvm] [openmp] [Clang] `__attribute__((assume))` refactor (PR #84934)

2024-03-14 Thread via cfe-commits
Sirraide wrote: List of issues that may be fixed by this: - #71858 https://github.com/llvm/llvm-project/pull/84934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [InstCombine] Canonicalize constant GEPs to i8 source element type (PR #68882)

2024-03-14 Thread via cfe-commits
Prabhuk wrote: > I am debugging an assertion failure regression in one of our projects that > uses the FlatMap data structure implemented here: > > https://pigweed.googlesource.com/pigweed/pigweed/+/refs/heads/main/pw_containers/public/pw_containers/flat_map.h#180 > > The regression was that t

[clang] 0c07102 - [clang-format][NFC] Eliminate the IsCpp parameter in all functions (#84599)

2024-03-14 Thread via cfe-commits
Author: Owen Pan Date: 2024-03-14T18:56:24-07:00 New Revision: 0c07102927869f9cd23889e0666774f6298e824f URL: https://github.com/llvm/llvm-project/commit/0c07102927869f9cd23889e0666774f6298e824f DIFF: https://github.com/llvm/llvm-project/commit/0c07102927869f9cd23889e0666774f6298e824f.diff LOG:

[clang] [Driver] Don't alias -mstrict-align to -mno-unaligned-access (PR #85350)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: Fangrui Song (MaskRay) Changes GCC ports only supports one of the options, with -mstrict-align preferred by newer ports. And they reject adding such aliases (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555). We should not s

[clang] [llvm] Add missing clang to the monolithic pre-merge build (PR #85354)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mehdi Amini (joker-eph) Changes Clang has a custom separate pipeline integrated with libc++ that only runs in release mode. It means that changes which touches only clang won't run the clang tests in the configuration used by LLVM premerg

[clang] [llvm] Add option to generate additional debug info for expression dereferencing pointer to pointers. (PR #81545)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: William Junda Huang (huangjd) Changes Such expression does not correspond to a variable in the source code thus does not have a debug location. When the user collects perf data on the program, if the intermediate memory load instruction

[clang] [llvm] Add option to generate additional debug info for expression dereferencing pointer to pointers. (PR #81545)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo @llvm/pr-subscribers-llvm-ir Author: William Junda Huang (huangjd) Changes Such expression does not correspond to a variable in the source code thus does not have a debug location. When the user collects perf data on the program, if the inte

[clang] [llvm] Add option to generate additional debug info for expression dereferencing pointer to pointers. (PR #81545)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: William Junda Huang (huangjd) Changes Such expression does not correspond to a variable in the source code thus does not have a debug location. When the user collects perf data on the program, if the intermediate memory load inst

[clang] [llvm] Add option to generate additional debug info for expression dereferencing pointer to pointers. (PR #81545)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: William Junda Huang (huangjd) Changes Such expression does not correspond to a variable in the source code thus does not have a debug location. When the user collects perf data on the program, if the intermediate memory load instr

[clang] [llvm] [BPF] Add support for may_goto insn (PR #85358)

2024-03-14 Thread via cfe-commits
https://github.com/yonghong-song created https://github.com/llvm/llvm-project/pull/85358 Alexei added may_goto insn in [1]. The asm syntax for may_goto looks like may_goto The instruction represents a conditional branch but the condition is implicit. Later in bpf kernel verifier, the 'may_g

[clang] [llvm] [BPF] Add support for may_goto insn (PR #85358)

2024-03-14 Thread via cfe-commits
yonghong-song wrote: cc @anakryiko @jemarch https://github.com/llvm/llvm-project/pull/85358 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [BPF] Add support for may_goto insn (PR #85358)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yonghong-song) Changes Alexei added may_goto insn in [1]. The asm syntax for may_goto looks like may_goto

[clang] [llvm] [Hexagon] ELF attributes for Hexagon (PR #85359)

2024-03-14 Thread via cfe-commits
https://github.com/quic-areg created https://github.com/llvm/llvm-project/pull/85359 Defines a subset of attributes and emits them to a section called .hexagon.attributes. The current attributes recorded are the attributes needed by llvm-objdump to automatically determine target features and

[clang] [llvm] [Hexagon] ELF attributes for Hexagon (PR #85359)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-objectyaml @llvm/pr-subscribers-mc @llvm/pr-subscribers-clang-driver Author: None (quic-areg) Changes Defines a subset of attributes and emits them to a section called .hexagon.attributes. The current attributes recorded are the attributes needed by ll

[clang] [llvm] [Hexagon] ELF attributes for Hexagon (PR #85359)

2024-03-14 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 c3a1eb6207d85cb37ea29306481b40c9f6402309 b035993b477160d9ac6ef01c8d27e6681682f251 --

[clang] [llvm] [Hexagon] ELF attributes for Hexagon (PR #85359)

2024-03-14 Thread via cfe-commits
https://github.com/quic-areg updated https://github.com/llvm/llvm-project/pull/85359 >From b035993b477160d9ac6ef01c8d27e6681682f251 Mon Sep 17 00:00:00 2001 From: quic-areg Date: Thu, 14 Mar 2024 20:31:37 -0700 Subject: [PATCH 1/2] [Hexagon] ELF attributes for Hexagon Defines a subset of attri

[clang] [llvm] [Hexagon] ELF attributes for Hexagon (PR #85359)

2024-03-14 Thread via cfe-commits
quic-areg wrote: @MaskRay @androm3da @SundeepKushwaha @sgundapa @shankarke https://github.com/llvm/llvm-project/pull/85359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [BPF] Add support for may_goto insn (PR #85358)

2024-03-14 Thread via cfe-commits
https://github.com/4ast approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/85358 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in annotating FunctionDeclarationName (PR #85361)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes A name is not a FunctionDeclarationName if it's preceded by an Objective-C keyword. --- Full diff: https://github.com/llvm/llvm-project/pull/85361.diff 2 Files Affected: - (modified) clang/lib/Format/To

[clang] [llvm] [openmp] [OpenMP] Increment kernel args version, used by runtime for detecting dyn_ptr. (PR #85363)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-openmp Author: None (dhruvachak) Changes A kernel implicit parameter (dyn_ptr) was introduced some time back. This patch increments the kernel args version for a compiler supporting dyn_ptr. The version will be used by the runtime to determine wh

[clang] [llvm] [openmp] [OpenMP] Increment kernel args version, used by runtime for detecting dyn_ptr. (PR #85363)

2024-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (dhruvachak) Changes A kernel implicit parameter (dyn_ptr) was introduced some time back. This patch increments the kernel args version for a compiler supporting dyn_ptr. The version will be used by the runtime to determine whether t

[clang] [llvm] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-15 Thread via cfe-commits
https://github.com/T-Gruber updated https://github.com/llvm/llvm-project/pull/85104 >From 0f964127ed91e23f8e969e08ce680535cfeb8906 Mon Sep 17 00:00:00 2001 From: Andreas Steinhausen Date: Wed, 13 Mar 2024 17:07:53 +0100 Subject: [PATCH 01/10] Adapted MemRegion::getDescriptiveName to handle Ele

[clang] [llvm] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-15 Thread via cfe-commits
@@ -720,14 +720,20 @@ std::string MemRegion::getDescriptiveName(bool UseQuotes) const { CI->getValue().toString(Idx); ArrayIndices = (llvm::Twine("[") + Idx.str() + "]" + ArrayIndices).str(); } -// If not a ConcreteInt, try to obtain the variable -// na

[clang] [llvm] Adapted MemRegion::getDescriptiveName to handle ElementRegions (PR #85104)

2024-03-15 Thread via cfe-commits
T-Gruber wrote: > In addition to the above-mentioned issues there is also a conceptual problem > with using `getOriginRegion()` to describe a symbol: it names the region > where the symbol _originated_ (if it originated as the unknown initial value > of a symbol), which is not necessarily the

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_sched_group_barrier to support rules. (PR #85304)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Jeffrey Byrnes (jrbyrnes) Changes I am still working with the user to define the actual rules, so it is still a WIP. However, this current version contains the main machinery of the feature. This helps bridge the gap between sch

[clang] [clang][MSVC] Correct mangling of thread-safe static initialization variables. (PR #85300)

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

[clang] [clang][MSVC] Correct mangling of thread-safe static initialization variables. (PR #85300)

2024-03-15 Thread via cfe-commits
https://github.com/zmodem approved this pull request. lgtm, thanks! Please include a "Fixes #83616" reference in the commit message. https://github.com/llvm/llvm-project/pull/85300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [clang][MSVC] Correct mangling of thread-safe static initialization variables. (PR #85300)

2024-03-15 Thread via cfe-commits
@@ -3920,7 +3920,8 @@ void MicrosoftMangleContextImpl::mangleThreadSafeStaticGuardVariable( msvc_hashing_ostream MHO(Out); MicrosoftCXXNameMangler Mangler(*this, MHO); - Mangler.getStream() << "?$TSS" << GuardNum << '@'; + Mangler.getStream() << "?"; + Mangler.mangleSo

[clang] [clang][MSVC] Correct mangling of thread-safe static initialization variables. (PR #85300)

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

[clang] [clang-repl] Fix assertion failure in CleanUpPTU() (PR #85378)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Stefan Gränitz (weliveindetail) Changes This assertion failure is one (fortunate) symptom: ``` clang/include/clang/AST/DeclBase.h:1337: reference clang::DeclListNode::iterator::operator*() const: Assertion `Ptr && "dereferencing end() ite

[clang] [llvm] [BPF] Add support for may_goto insn (PR #85358)

2024-03-15 Thread via cfe-commits
https://github.com/eddyz87 approved this pull request. https://github.com/llvm/llvm-project/pull/85358 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86_64] fix empty structure vaarg in c++ (PR #77907)

2024-03-15 Thread via cfe-commits
https://github.com/hstk30-hw updated https://github.com/llvm/llvm-project/pull/77907 >From 75eb445f153d2391a8980716f36be77ed2fb24ed Mon Sep 17 00:00:00 2001 From: Longsheng Mou Date: Fri, 12 Jan 2024 18:24:08 +0800 Subject: [PATCH] [X86_64] fix empty structure vaarg in c++ SizeInBytes of empty

[clang] [X86_64] fix arg pass error in struct. (PR #85394)

2024-03-15 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] [X86_64] fix arg pass error in struct. (PR #85394)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-clang Author: Longsheng Mou (CoTinker) Changes typedef long long Alignll __attribute__((align (4))); struct S { int a; Alignll b; }; When classify: a: Lo = Integer, Hi = NoClass b:

[clang] [X86_64] fix arg pass error in struct. (PR #85394)

2024-03-15 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 61671e2500771dfbf502acd86e2ef70cba847a39 8efa87d7b03ebf2cf304e97c5fcebdb4211350b4 --

[clang] [clang][dataflow] Make optional checker work for types derived from optional. (PR #84138)

2024-03-15 Thread via cfe-commits
martinboehme wrote: > One high level question: is there a simpler path by which we avoid crashing > on derived types but also don't support them? It seems like there is a lot of > complexity required in getting this just right. Is it worth it (both in the > code itself and in terms of runtime

[clang] [llvm] [AArch64] Add support for Cortex-A520AE and Cortex-A720AE CPUs (PR #85401)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Jonathan Thackray (jthackray) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/85401.diff 10 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/test/Driver/aarch64-mcpu.c (+4) - (m

[clang] f4676b6 - [X86] Add Support for X86 TLSDESC Relocations (#83136)

2024-03-15 Thread via cfe-commits
Author: Phoebe Wang Date: 2024-03-15T22:09:56+08:00 New Revision: f4676b6be6ee0d908c92d64936d17bd6fa3fbda8 URL: https://github.com/llvm/llvm-project/commit/f4676b6be6ee0d908c92d64936d17bd6fa3fbda8 DIFF: https://github.com/llvm/llvm-project/commit/f4676b6be6ee0d908c92d64936d17bd6fa3fbda8.diff L

[clang] [clang] CTAD: Track template template type parameters that referenced in (PR #85405)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes the template arguments of the RHS. Fixes https://github.com/llvm/llvm-project/issues/85385. The Finder was missing for this case, for the crash test, the template parameter TTP was incorrectly considered as no

[clang] 0e0bfac - [BPF] Add support for may_goto insn (#85358)

2024-03-15 Thread via cfe-commits
Author: yonghong-song Date: 2024-03-15T07:24:28-07:00 New Revision: 0e0bfacff71859d1f9212205f8f873d47029d3fb URL: https://github.com/llvm/llvm-project/commit/0e0bfacff71859d1f9212205f8f873d47029d3fb DIFF: https://github.com/llvm/llvm-project/commit/0e0bfacff71859d1f9212205f8f873d47029d3fb.diff

[clang] [llvm] [BPF] Add support for may_goto insn (PR #85358)

2024-03-15 Thread via cfe-commits
https://github.com/yonghong-song closed https://github.com/llvm/llvm-project/pull/85358 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Invalidate the alias template decl if it has multiple written (PR #85413)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes template parameter lists. Fixes #85406. - Set the invalid bit for alias template decl where it has multiple written template parameter lists (as the AST node is ill-formed) - don't perform CTAD for invalid ali

[clang] [clang][Sema] Skip the RequiresExprBodyDecls for lambda dependencies (PR #83997)

2024-03-15 Thread via cfe-commits
alexfh wrote: The internal code was fixed. Thanks everyone for helping to figure this out! https://github.com/llvm/llvm-project/pull/83997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] 92b5601 - [clang] Fix documentation markup in the Clang release notes and language extension docs. (#85310)

2024-03-15 Thread via cfe-commits
Author: Tom Honermann Date: 2024-03-15T11:30:43-04:00 New Revision: 92b56011e6b61e7dc1628c0431ece432f282b3cb URL: https://github.com/llvm/llvm-project/commit/92b56011e6b61e7dc1628c0431ece432f282b3cb DIFF: https://github.com/llvm/llvm-project/commit/92b56011e6b61e7dc1628c0431ece432f282b3cb.diff

[clang] [FMV] Emit the resolver along with the default version definition. (PR #84405)

2024-03-15 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 8c4546f350fbce938d8fbc85d9e353d011f3f673 2576857fe4b5c0b99c1a29c07f92c80498687665 --

[clang] [codegen] Emit cleanups for branch in stmt-expr and coro suspensions [take-2] (PR #85398)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Utkarsh Saxena (usx95) Changes Partially addresses https://github.com/llvm/llvm-project/issues/63818 for control flow in expressions. A control flow could happen in the middle of an expression due to stmt-expr and coroutine suspe

[clang] [codegen] Emit cleanups for branch in stmt-expr and coro suspensions [take-2] (PR #85398)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Utkarsh Saxena (usx95) Changes Partially addresses https://github.com/llvm/llvm-project/issues/63818 for control flow in expressions. A control flow could happen in the middle of an expression due to stmt-expr and coroutine suspensions.

[clang] [Clang] Resolve FIXME: Use class method when receiver is reference to class (PR #85316)

2024-03-15 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/85316 >From 62fa811f49f20c8fb10376faf8f7a1db05bbd401 Mon Sep 17 00:00:00 2001 From: Rose Date: Thu, 14 Mar 2024 17:34:16 -0400 Subject: [PATCH] Resolve FIXME: Use class method when receiver is reference to class

[clang] [llvm] [HLSL] implement `clamp` intrinsic (PR #85424)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Farzon Lotfi (farzonl) Changes closes #70071 - `CGBuiltin.cpp` - Add the unsigned\generic clamp intrinsic emitter. - `IntrinsicsDirectX.td` - add the `dx.clamp` & `dx.uclamp` intrinsics - `DXILIntrinsicExpansion.cpp` - add the `clamp`

[clang] [llvm] [HLSL] implement `clamp` intrinsic (PR #85424)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Farzon Lotfi (farzonl) Changes closes #70071 - `CGBuiltin.cpp` - Add the unsigned\generic clamp intrinsic emitter. - `IntrinsicsDirectX.td` - add the `dx.clamp` & `dx.uclamp` intrinsics - `DXILIntrinsicExpansion.cpp` - add the `clam

[clang] [llvm] [HLSL] implement `clamp` intrinsic (PR #85424)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-hlsl Author: Farzon Lotfi (farzonl) Changes closes #70071 - `CGBuiltin.cpp` - Add the unsigned\generic clamp intrinsic emitter. - `IntrinsicsDirectX.td` - add the `dx.clamp` & `dx.uclamp` intrinsics - `DXILIntrinsicExpansion.cp

[clang] [Clang] Resolve FIXME: Use class method when receiver is reference to class (PR #85316)

2024-03-15 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/85316 >From f5c14118e9626b52414e1d97dbee8c2c64686202 Mon Sep 17 00:00:00 2001 From: Rose Date: Thu, 14 Mar 2024 17:34:16 -0400 Subject: [PATCH] Resolve FIXME: Use class method when receiver is reference to class

[clang] [clang] Move CCC_OVERRIDE_OPTIONS implementation to Driver (PR #85425)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Dave Lee (kastiglione) Changes Move CCC_OVERRIDE_OPTIONS support to clangDriver so that it may be used outside of the clang driver binary. The override functionality will be used in LLDB, to apply adjustments to ClangImporter flags.

[clang] Reapply "[clang] Fix crash when declaring invalid lambda member" (PR #85427)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikolas Klauser (philnik777) Changes This re-applies #74110 with the crashing code disabled in C++03. I'll try to fix the new crash in it's own patch. --- Full diff: https://github.com/llvm/llvm-project/pull/85427.diff 4 Files Affected:

[clang] [llvm] [openmp] [OpenMP] Increment kernel args version, used by runtime for detecting dyn_ptr. (PR #85363)

2024-03-15 Thread via cfe-commits
dhruvachak wrote: > > The versioning is required to support use cases where code generated by an > > older compiler is linked with a newer runtime. > > Is that supported? I think compatibility across released versions is not supported in upstream LLVM. But downstream, there are use cases. For

[clang] cd07125 - [Driver] Don't alias -mstrict-align to -mno-unaligned-access

2024-03-15 Thread via cfe-commits
Author: Fangrui Song Date: 2024-03-15T10:50:21-07:00 New Revision: cd071253c70b3b37a0b9d113709ca9d49a83007e URL: https://github.com/llvm/llvm-project/commit/cd071253c70b3b37a0b9d113709ca9d49a83007e DIFF: https://github.com/llvm/llvm-project/commit/cd071253c70b3b37a0b9d113709ca9d49a83007e.diff

[clang] [Driver,AArch64] Remove AArch32-specific -m[no-]unaligned-access (PR #85441)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes Follow-up to #85350: GCC only supports -m[no-]strict-align for AArch64 and rejects adding -m[no-]unaligned-access aliases. We inapropriated supported -m[no-]unaligned-access as aliases for non-AArch64 due to a

[clang] [Driver,AArch64] Remove AArch32-specific -m[no-]unaligned-access (PR #85441)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Fangrui Song (MaskRay) Changes Follow-up to #85350: GCC only supports -m[no-]strict-align for AArch64 and rejects adding -m[no-]unaligned-access aliases. We inapropriated supported -m[no-]unaligned-access as aliases for non-AArch6

[clang] [Clang][Comments] Add argument parsing for @throw @throws @exception (PR #84726)

2024-03-15 Thread via cfe-commits
https://github.com/hdoc updated https://github.com/llvm/llvm-project/pull/84726 >From ec3f444913d9162de4494cdb09b336b1b00380fa Mon Sep 17 00:00:00 2001 From: hdoc Date: Mon, 11 Mar 2024 01:13:25 -0700 Subject: [PATCH 1/4] Comment parsing: add argument parsing for @throw @throws @exception Doxy

[clang] [FMV] Allow fmv without default declaration. (PR #85454)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Alexandros Lamprineas (labrinea) Changes This was a limitation which has now been lifted upon request. Please read the thread below for more details: https://github.com/llvm/llvm-project/pull/84405#discussion_r1525583647 B

[clang] fix: constexpr bit_cast with empty base classes (PR #82383)

2024-03-15 Thread via cfe-commits
https://github.com/sethp updated https://github.com/llvm/llvm-project/pull/82383 >From ed6a576ba0c9492f8aa4c995ea7316263a979fae Mon Sep 17 00:00:00 2001 From: sethp Date: Tue, 20 Feb 2024 08:57:13 -0800 Subject: [PATCH 1/2] fix: constexpr bit_cast with empty base classes Prior to this commit, c

[clang] fix: constexpr bit_cast with empty base classes (PR #82383)

2024-03-15 Thread via cfe-commits
sethp wrote: @cor3ntin @tbaederr is there anything else you need from me here? I would expect github's "squash and merge" button to work fine for this change, but I could rebase if you'd prefer. https://github.com/llvm/llvm-project/pull/82383 ___ cfe

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-03-15 Thread via cfe-commits
https://github.com/sethp updated https://github.com/llvm/llvm-project/pull/74852 >From f281d34a51f662c934f158e4770774b0dc3588a2 Mon Sep 17 00:00:00 2001 From: Seth Pellegrino Date: Thu, 7 Dec 2023 08:45:51 -0800 Subject: [PATCH 01/12] [Clang][Sema] Print more static_assert exprs This change int

[clang] [llvm] [CodeGen][LLVM] Make the `va_list` related intrinsics generic. (PR #85460)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-webassembly Author: Alex Voicu (AlexVlx) Changes Currently, the builtins used for implementing `va_list` handling unconditionally take their arguments as unqualified `ptr`s i.e. pointers to AS 0. This does not work for targets where the default

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-03-15 Thread via cfe-commits
sethp wrote: Ping @cor3ntin @cjdb —this one definitely needs a rebase from me, but I don't want to do that if y'all have a review in progress. https://github.com/llvm/llvm-project/pull/74852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[clang] [ObjC] Expand isClassLayoutKnownStatically to base classes as long as the implementation of it is known (PR #85465)

2024-03-15 Thread via cfe-commits
https://github.com/AtariDreams created https://github.com/llvm/llvm-project/pull/85465 Only NSObject we can trust the layout of won't change even though we cannot directly see its @implementation >From 3c66561377e5bfdbb3eefa658da63f68026e5a2e Mon Sep 17 00:00:00 2001 From: Rose Date: Fri, 15

[clang] [ObjC] Expand isClassLayoutKnownStatically to base classes as long as the implementation of it is known (PR #85465)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: AtariDreams (AtariDreams) Changes Only NSObject we can trust the layout of won't change even though we cannot directly see its @implementation --- Full diff: https://github.com/llvm/llvm-project/pull/85465.diff 2 Files Affected:

[clang] [ObjC] Expand isClassLayoutKnownStatically to base classes as long as the implementation of it is known (PR #85465)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: AtariDreams (AtariDreams) Changes Only NSObject we can trust the layout of won't change even though we cannot directly see its @implementation --- Full diff: https://github.com/llvm/llvm-project/pull/85465.diff 2 Files Affected: - (mod

[clang] 0481f04 - [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (#65996)

2024-03-15 Thread via cfe-commits
Author: Ahmed Bougacha Date: 2024-03-15T14:17:21-07:00 New Revision: 0481f049c37029d829dbc0c0cc5d1ee71c6d1c9a URL: https://github.com/llvm/llvm-project/commit/0481f049c37029d829dbc0c0cc5d1ee71c6d1c9a DIFF: https://github.com/llvm/llvm-project/commit/0481f049c37029d829dbc0c0cc5d1ee71c6d1c9a.diff

[clang] [clang-format] Fix clang-format issue with 'new' and 'delete' keywords in C files (PR #85470)

2024-03-15 Thread via cfe-commits
https://github.com/scythris created https://github.com/llvm/llvm-project/pull/85470 This resolves an issue in clang-format where `new` and `delete` were incorrectly formatted as keywords in C files. The fix modifies `TokenAnnotator::spaceRequiredBetween` to handle `new` and `delete` when used

[clang] [clang-format] Fix clang-format issue with 'new' and 'delete' keywords in C files (PR #85470)

2024-03-15 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-format] Fix clang-format issue with 'new' and 'delete' keywords in C files (PR #85470)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (scythris) Changes This resolves an issue in clang-format where `new` and `delete` were incorrectly formatted as keywords in C files. The fix modifies `TokenAnnotator::spaceRequiredBetween` to handle `new` and `delete` when us

[clang] [clang-format] Fix clang-format issue with 'new' and 'delete' keywords in C files (PR #85470)

2024-03-15 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 60fa2b0670b874b702ddb9f81d098af692ea6875 1e815bb2090f7747da027a04f69906063db7b02a --

[clang] [clang-format] Fix clang-format issue with 'new' and 'delete' keywords in C files (PR #85470)

2024-03-15 Thread via cfe-commits
https://github.com/scythris updated https://github.com/llvm/llvm-project/pull/85470 >From 451a664dc3d325deff54ff7d582b0063569f54cd Mon Sep 17 00:00:00 2001 From: Trym Strand Date: Fri, 15 Mar 2024 21:56:22 +0100 Subject: [PATCH] Fix clang-format issue with 'new' and 'delete' keywords in C file

[clang-tools-extra] [clang-tidy][NFC] Remove unnecessary nullptr check on cast subexpr (PR #85473)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Mike Rice (mikerice1969) Changes The value of SubExpr is not null since getSubExpr would assert in that case. Remove the nullptr check. This avoids confusion since SubExpr is used without check later in the function. --- Full diff:

[clang] 047b2b2 - [NVPTX] Add `-march=general` option to mirror default configuration (#85222)

2024-03-15 Thread via cfe-commits
Author: Yichen Yan Date: 2024-03-15T17:16:10-05:00 New Revision: 047b2b241defcad79a6ac0fec9cda092bac0a922 URL: https://github.com/llvm/llvm-project/commit/047b2b241defcad79a6ac0fec9cda092bac0a922 DIFF: https://github.com/llvm/llvm-project/commit/047b2b241defcad79a6ac0fec9cda092bac0a922.diff LO

[clang] [NVPTX] Add `-march=general` option to mirror default configuration (PR #85222)

2024-03-15 Thread via cfe-commits
github-actions[bot] wrote: @oraluben Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build

[clang] [clang-tools-extra] [CLANGD] Do not crash on designator initialization of union (PR #83369)

2024-03-15 Thread via cfe-commits
https://github.com/alirezamoshtaghi updated https://github.com/llvm/llvm-project/pull/83369 >From 3d6afe011221ac239bb668b375ed3f6c356fc47d Mon Sep 17 00:00:00 2001 From: alirezamoshtaghi Date: Wed, 28 Feb 2024 13:55:11 -0800 Subject: [PATCH 1/5] [CLANGD] Do not crash on designator initializatio

[clang] [ObjC] Fix jmp_buf sizing for ObjC exceptions (PR #85481)

2024-03-15 Thread via cfe-commits
https://github.com/AtariDreams created https://github.com/llvm/llvm-project/pull/85481 The size of 18 only works for x86, but does not work for the other architectures. This works for Darwin and was retrieved via reading the setjmp.h header. It would be nice if we could do the equivalent of si

[clang] [ObjC] Fix jmp_buf sizing for ObjC exceptions (PR #85481)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: AtariDreams (AtariDreams) Changes The size of 18 only works for x86, but does not work for the other architectures. This works for Darwin and was retrieved via reading the setjmp.h header. It would be nice if we could do the equiv

[clang] [ObjC] Fix jmp_buf sizing for ObjC exceptions (PR #85481)

2024-03-15 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/85481 >From c85838773496d54c41fd10c13e461f0f7c03ac40 Mon Sep 17 00:00:00 2001 From: Rose Date: Fri, 15 Mar 2024 18:45:48 -0400 Subject: [PATCH] [ObjC] Fix jmp_buf sizing for ObjC exceptions The size of 18 only wor

[clang] 8d7ee46 - [clang] Move CCC_OVERRIDE_OPTIONS implementation to Driver (#85425)

2024-03-15 Thread via cfe-commits
Author: Dave Lee Date: 2024-03-15T16:09:56-07:00 New Revision: 8d7ee4691dadd3a9d831108f77d1f4e511191a44 URL: https://github.com/llvm/llvm-project/commit/8d7ee4691dadd3a9d831108f77d1f4e511191a44 DIFF: https://github.com/llvm/llvm-project/commit/8d7ee4691dadd3a9d831108f77d1f4e511191a44.diff LOG:

[clang] f128607 - [clang][MSVC] Correct mangling of thread-safe static initialization variables. (#85300)

2024-03-15 Thread via cfe-commits
Author: Tom Honermann Date: 2024-03-15T19:12:19-04:00 New Revision: f128607b89b4818a2265f5ebd09313408277d975 URL: https://github.com/llvm/llvm-project/commit/f128607b89b4818a2265f5ebd09313408277d975 DIFF: https://github.com/llvm/llvm-project/commit/f128607b89b4818a2265f5ebd09313408277d975.diff

[clang] 43fc921 - [CMAKE] Enable FatLTO as a build option for LLVM (#80480)

2024-03-15 Thread via cfe-commits
Author: Paul Kirth Date: 2024-03-15T16:35:06-07:00 New Revision: 43fc921795bd130a325c013d60f209b5c6128fc7 URL: https://github.com/llvm/llvm-project/commit/43fc921795bd130a325c013d60f209b5c6128fc7 DIFF: https://github.com/llvm/llvm-project/commit/43fc921795bd130a325c013d60f209b5c6128fc7.diff LO

[clang] [ObjC] Fix jmp_buf sizing for ObjC exceptions (PR #85481)

2024-03-15 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/85481 >From 65f867c70dc3e2c4adf78628c7db8103506c2101 Mon Sep 17 00:00:00 2001 From: Rose Date: Fri, 15 Mar 2024 18:45:48 -0400 Subject: [PATCH] [ObjC] Fix jmp_buf sizing for ObjC exceptions The size of 18 only wor

[clang] [ObjC] Add reserved field in 64-bit ABI mode (PR #85487)

2024-03-15 Thread via cfe-commits
https://github.com/AtariDreams created https://github.com/llvm/llvm-project/pull/85487 None >From 58648e62bbecb5e79d039a54ba74099f59262582 Mon Sep 17 00:00:00 2001 From: Rose Date: Fri, 15 Mar 2024 19:58:03 -0400 Subject: [PATCH] [ObjC] Add reserved field in 64-bit ABI mode --- clang/lib/Cod

[clang] [ObjC] Add reserved field in 64-bit ABI mode (PR #85487)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: AtariDreams (AtariDreams) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/85487.diff 1 Files Affected: - (modified) clang/lib/CodeGen/CGObjCMac.cpp (+11-5) ``diff diff --git a/clang/lib/CodeGen/CGObjCMac.cpp

[clang] [ObjC] Add reserved field in 64-bit ABI mode (PR #85487)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: AtariDreams (AtariDreams) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/85487.diff 1 Files Affected: - (modified) clang/lib/CodeGen/CGObjCMac.cpp (+11-5) ``diff diff --git a/clang/lib/CodeGen/CGObj

[clang] [ObjC] Add reserved field in 64-bit ABI mode (PR #85487)

2024-03-15 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/85487 >From 5ac1ba54a050029bde7baedbb32630cd6f8449e5 Mon Sep 17 00:00:00 2001 From: Rose Date: Fri, 15 Mar 2024 19:58:03 -0400 Subject: [PATCH] [ObjC] Add reserved field in 64-bit ABI mode --- clang/lib/CodeGen/C

[clang] 8386a38 - [HLSL] implement `clamp` intrinsic (#85424)

2024-03-15 Thread via cfe-commits
Author: Farzon Lotfi Date: 2024-03-15T20:57:08-04:00 New Revision: 8386a388bd4f144889401cc503b2c51bf4bb9275 URL: https://github.com/llvm/llvm-project/commit/8386a388bd4f144889401cc503b2c51bf4bb9275 DIFF: https://github.com/llvm/llvm-project/commit/8386a388bd4f144889401cc503b2c51bf4bb9275.diff

[clang] 7c460c6 - [clang-format] Fix a bug in annotating FunctionDeclarationName (#85361)

2024-03-15 Thread via cfe-commits
Author: Owen Pan Date: 2024-03-15T19:25:41-07:00 New Revision: 7c460c6205eedaa24f77d5de272dfd94dc3e9a38 URL: https://github.com/llvm/llvm-project/commit/7c460c6205eedaa24f77d5de272dfd94dc3e9a38 DIFF: https://github.com/llvm/llvm-project/commit/7c460c6205eedaa24f77d5de272dfd94dc3e9a38.diff LOG:

[clang] [ObjC] Expand isClassLayoutKnownStatically to base classes as long as the implementation of it is known (PR #85465)

2024-03-15 Thread via cfe-commits
https://github.com/AtariDreams updated https://github.com/llvm/llvm-project/pull/85465 >From 274838e83e20d073b326387a1d319dd60ad32568 Mon Sep 17 00:00:00 2001 From: Rose Date: Fri, 15 Mar 2024 16:43:10 -0400 Subject: [PATCH] [ObjC] Expand isClassLayoutKnownStatically to base classes as long as

[clang] [Sema] Allow -Wno-main to suppress the arg wrong error (PR #85494)

2024-03-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes The diagnostic is a warning in GCC. We make it a DefaultError warning under -Wmain. There is a use case to pass customized arguments to main without using -ffreestanding. Close #85491 --- Full diff: https

[clang-tools-extra] [clangd] Support go-to-definition on type hints. The protocol part (PR #85497)

2024-03-15 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 fd3eaf76ba3392a4406247d996e757ef49f7a8b2 6d61aa1e43bb522412904bdd77c7f1cfc4b42889 --

<    56   57   58   59   60   61   62   63   64   65   >