[clang] [llvm] [LoongArch] Support la664 (PR #100068)

2024-07-22 Thread Lu Weining via cfe-commits
https://github.com/SixWeining approved this pull request. https://github.com/llvm/llvm-project/pull/100068 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Add metadata for load from reference (PR #98746)

2024-07-22 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw edited https://github.com/llvm/llvm-project/pull/98746 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] fix misc-const-correctness to work with function-try-blocks (PR #99925)

2024-07-22 Thread Piotr Zegar via cfe-commits
PiotrZSL wrote: Looks like missing -fexceptions https://github.com/llvm/llvm-project/pull/99925 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Revert "[clang-tidy] fix misc-const-correctness to work with function-try-blocks" (PR #100069)

2024-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Piotr Zegar (PiotrZSL) Changes Reverts llvm/llvm-project#99925 --- Full diff: https://github.com/llvm/llvm-project/pull/100069.diff 4 Files Affected: - (modified) clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp (+9-8)

[clang-tools-extra] Revert "[clang-tidy] fix misc-const-correctness to work with function-try-blocks" (PR #100069)

2024-07-22 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL closed https://github.com/llvm/llvm-project/pull/100069 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] f0fad9f - Revert "[clang-tidy] fix misc-const-correctness to work with function-try-blocks" (#100069)

2024-07-22 Thread via cfe-commits
Author: Piotr Zegar Date: 2024-07-23T08:46:40+02:00 New Revision: f0fad9f3e00dbe8e58024d1c98e36b7b9b1b17a9 URL: https://github.com/llvm/llvm-project/commit/f0fad9f3e00dbe8e58024d1c98e36b7b9b1b17a9 DIFF: https://github.com/llvm/llvm-project/commit/f0fad9f3e00dbe8e58024d1c98e36b7b9b1b17a9.diff L

[clang-tools-extra] Revert "[clang-tidy] fix misc-const-correctness to work with function-try-blocks" (PR #100069)

2024-07-22 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL created https://github.com/llvm/llvm-project/pull/100069 Reverts llvm/llvm-project#99925 >From a96af6c18ea45269c4d2e1fd762a14d763be0358 Mon Sep 17 00:00:00 2001 From: Piotr Zegar Date: Tue, 23 Jul 2024 08:46:14 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"[clang-tidy]

[clang] [llvm] [LoongArch] Support -march=la64v1.0 and -march=la64v1.1 (PR #100057)

2024-07-22 Thread Lu Weining via cfe-commits
https://github.com/SixWeining closed https://github.com/llvm/llvm-project/pull/100057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5a1b989 - [LoongArch] Support -march=la64v1.0 and -march=la64v1.1 (#100057)

2024-07-22 Thread via cfe-commits
Author: Ami-zhang Date: 2024-07-23T14:03:28+08:00 New Revision: 5a1b9896ad5a7dcd25a1cc7a4d3fd44155e4b22d URL: https://github.com/llvm/llvm-project/commit/5a1b9896ad5a7dcd25a1cc7a4d3fd44155e4b22d DIFF: https://github.com/llvm/llvm-project/commit/5a1b9896ad5a7dcd25a1cc7a4d3fd44155e4b22d.diff LOG

[clang] [llvm] [LoongArch] Support -march=la64v1.0 and -march=la64v1.1 (PR #100057)

2024-07-22 Thread Lu Weining via cfe-commits
https://github.com/SixWeining approved this pull request. https://github.com/llvm/llvm-project/pull/100057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LoongArch] Enable 128-bits vector by default (PR #100056)

2024-07-22 Thread Lu Weining via cfe-commits
https://github.com/SixWeining closed https://github.com/llvm/llvm-project/pull/100056 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b4ef0ba - [LoongArch] Enable 128-bits vector by default (#100056)

2024-07-22 Thread via cfe-commits
Author: Ami-zhang Date: 2024-07-23T14:02:04+08:00 New Revision: b4ef0ba244899a64a1b1e6448eca942cfa5eda18 URL: https://github.com/llvm/llvm-project/commit/b4ef0ba244899a64a1b1e6448eca942cfa5eda18 DIFF: https://github.com/llvm/llvm-project/commit/b4ef0ba244899a64a1b1e6448eca942cfa5eda18.diff LOG

[clang] b830790 - [NFC] changes all run lines

2024-07-22 Thread Chen Zheng via cfe-commits
Author: Chen Zheng Date: 2024-07-23T02:00:28-04:00 New Revision: b830790547c304aa2a771ce0706b337ea5ec7a02 URL: https://github.com/llvm/llvm-project/commit/b830790547c304aa2a771ce0706b337ea5ec7a02 DIFF: https://github.com/llvm/llvm-project/commit/b830790547c304aa2a771ce0706b337ea5ec7a02.diff LO

[clang] [clang][test] Add function type discrimination tests to static destructor tests (PR #99604)

2024-07-22 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/99604 >From 640779f0327c3b3773ff055923c59a82ae6c7f30 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Thu, 18 Jul 2024 21:08:12 -0700 Subject: [PATCH 1/2] [clang][test] Add function type discrimination tests to ptrauth

[clang] Add _MM_FROUND_TO_NEAREST_TIES_EVEN to avx512fintrin.h (PR #99691)

2024-07-22 Thread Craig Topper via cfe-commits
topperc wrote: I happened to find this document from Intel https://www.intel.com/content/www/us/en/content-details/669773/intel-avx-512-fp16-instruction-set-for-intel-xeon-processor-based-products-technology-guide.html that contains this text "The C intrinsic constant selector name _MM_FROUND_

[clang] [AIX] Detect `#pragma mc_func` (PR #99888)

2024-07-22 Thread Chen Zheng via cfe-commits
chenzheng1030 wrote: ee07547487a3502f7436968bbfc243b054c14071 should be able to fix the `No available targets are compatible with triple "powerpc64-ibm-aix"` error. https://github.com/llvm/llvm-project/pull/99888 ___ cfe-commits mailing list cfe-commi

[clang] ee07547 - [NFC] make the case only require frontend

2024-07-22 Thread Chen Zheng via cfe-commits
Author: Chen Zheng Date: 2024-07-23T01:53:21-04:00 New Revision: ee07547487a3502f7436968bbfc243b054c14071 URL: https://github.com/llvm/llvm-project/commit/ee07547487a3502f7436968bbfc243b054c14071 DIFF: https://github.com/llvm/llvm-project/commit/ee07547487a3502f7436968bbfc243b054c14071.diff LO

[clang] [LoongArch] Enable 128-bits vector by default (PR #100056)

2024-07-22 Thread via cfe-commits
https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/100056 >From ff41190a23df6014511d0183e409e9f5b54cf287 Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Thu, 18 Jul 2024 09:33:35 +0800 Subject: [PATCH] [LoongArch] Enable 128-bits vector by default This commit is to e

[clang] [Driver] Clean up fp-contract handling in clang driver (PR #99723)

2024-07-22 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. The logic is complex and difficult to follow, but the test updates looks good! https://github.com/llvm/llvm-project/pull/99723 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [Driver] Clean up fp-contract handling in clang driver (PR #99723)

2024-07-22 Thread Fangrui Song via cfe-commits
@@ -81,6 +81,20 @@ // RUN: | FileCheck --check-prefix=WARN13 %s // WARN13: warning: overriding '-ffp-model=strict' option with '-fapprox-func' [-Woverriding-option] +// RUN: %clang -### -ffp-model=precise -ffp-contract=off -c %s 2>&1 \ +// RUN: | FileCheck --check-prefix=

[clang] [LoongArch] Enable 128-bits vector by default (PR #100056)

2024-07-22 Thread via cfe-commits
https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/100056 >From d6e0e004d46194008a73d2de510a706932d11776 Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Thu, 18 Jul 2024 09:33:35 +0800 Subject: [PATCH] [LoongArch] Enable 128-bits vector by default This commit is to e

[clang] [clang] Define ATOMIC_FLAG_INIT correctly for C++. (PR #97534)

2024-07-22 Thread Chris Copeland via cfe-commits
chrisnc wrote: Rebased and added a test case. I confirmed that the test fails using the current definition of `ATOMIC_FLAG_INIT`: ``` error: 'expected-error' diagnostics seen but not expected: Line 38: non-constant-expression cannot be narrowed from type 'int' to 'atomic_bool' (aka '_Atomic(

[clang] [clang] Define ATOMIC_FLAG_INIT correctly for C++. (PR #97534)

2024-07-22 Thread Chris Copeland via cfe-commits
@@ -750,6 +750,8 @@ Bug Fixes in This Version - Fixed `static_cast` to array of unknown bound. Fixes (#GH62863). +- Fixed the definition of ATOMIC_FLAG_INIT in stdatomic.h so it can be used in C++. chrisnc wrote: Done. https://github.com/llvm/llvm-project/

[clang] [clang] Define ATOMIC_FLAG_INIT correctly for C++. (PR #97534)

2024-07-22 Thread Chris Copeland via cfe-commits
https://github.com/chrisnc updated https://github.com/llvm/llvm-project/pull/97534 >From 1b39c59e0ec3cbe1f2cabc650b983883439dde31 Mon Sep 17 00:00:00 2001 From: Chris Copeland Date: Wed, 3 Jul 2024 00:11:39 -0700 Subject: [PATCH] [clang] Define `ATOMIC_FLAG_INIT` correctly for C++. --- clang/

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

2024-07-22 Thread Fangrui Song via cfe-commits
@@ -5337,9 +5337,13 @@ def mmadd4 : Flag<["-"], "mmadd4">, Group, def mno_madd4 : Flag<["-"], "mno-madd4">, Group, HelpText<"Disable the generation of 4-operand madd.s, madd.d and related instructions.">; def mmsa : Flag<["-"], "mmsa">, Group, - HelpText<"Enable MSA ASE (M

[clang] [ExprConstant] Handle shift overflow the same way as other kinds of overflow (PR #99579)

2024-07-22 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: There's some existing coverage of the affected diagnostics, which shows we continue to produce those diagnostics... but I added a few more tests for in-class static member variables. https://github.com/llvm/llvm-project/pull/99579 __

[clang] [ExprConstant] Handle shift overflow the same way as other kinds of overflow (PR #99579)

2024-07-22 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/99579 >From 1137011c51285b083cab6c15de670e64337d3de0 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 18 Jul 2024 14:51:13 -0700 Subject: [PATCH 1/6] [ExprConstant] Handle shift overflow the same way as ot

[clang] [ExprConstant] Handle shift overflow the same way as other kinds of overflow (PR #99579)

2024-07-22 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/99579 >From 1137011c51285b083cab6c15de670e64337d3de0 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 18 Jul 2024 14:51:13 -0700 Subject: [PATCH 1/6] [ExprConstant] Handle shift overflow the same way as ot

[clang] [llvm] [AArch64][PAC] Sign block addresses used in indirectbr. (PR #97647)

2024-07-22 Thread Ahmed Bougacha via cfe-commits
https://github.com/ahmedbougacha closed https://github.com/llvm/llvm-project/pull/97647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b8721fa - [AArch64][PAC] Sign block addresses used in indirectbr. (#97647)

2024-07-22 Thread via cfe-commits
Author: Ahmed Bougacha Date: 2024-07-22T21:24:39-07:00 New Revision: b8721fa0afa65e8e44d7f264712499d24f3cc68b URL: https://github.com/llvm/llvm-project/commit/b8721fa0afa65e8e44d7f264712499d24f3cc68b DIFF: https://github.com/llvm/llvm-project/commit/b8721fa0afa65e8e44d7f264712499d24f3cc68b.diff

[clang] [LoongArch] Enable 128-bits vector by default (PR #100056)

2024-07-22 Thread Fangrui Song via cfe-commits
@@ -127,6 +127,11 @@ void loongarch::getLoongArchTargetFeatures(const Driver &D, const llvm::Triple &Triple, const ArgList &Args, std::vector &Featur

[clang] [clang][CodeGen] Don't crash on sizeless output. (PR #99849)

2024-07-22 Thread Eli Friedman via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: not %clang_cc1 -S %s -o /dev/null 2>&1 | FileCheck %s efriedma-quic wrote: Please use "-verify" to check clang diagnostics, not FileCheck. Is there any existing file with inline asm diagnostics this can be added to? https://github.com/l

[clang] [clang][CodeGen] Don't crash on sizeless output. (PR #99849)

2024-07-22 Thread Eli Friedman via cfe-commits
@@ -2751,7 +2751,10 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { if (RequiresCast) { unsigned Size = getContext().getTypeSize(QTy); -Ty = llvm::IntegerType::get(getLLVMContext(), Size); +if (Size) + Ty = llvm::IntegerType::get

[clang] [clang-scan-deps] Ignore import/include directives with missing filenames (PR #99520)

2024-07-22 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida closed https://github.com/llvm/llvm-project/pull/99520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 34ab855 - [clang][deps] Ignore import/include directives with missing filenames (#99520)

2024-07-22 Thread via cfe-commits
Author: Cyndy Ishida Date: 2024-07-22T21:10:05-07:00 New Revision: 34ab855826b8cb0c3b46c770b83390bd1fe95c64 URL: https://github.com/llvm/llvm-project/commit/34ab855826b8cb0c3b46c770b83390bd1fe95c64 DIFF: https://github.com/llvm/llvm-project/commit/34ab855826b8cb0c3b46c770b83390bd1fe95c64.diff

[clang] [Clang] Ignore empty FieldDecls when asking for the field number (PR #100040)

2024-07-22 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/100040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LoongArch] Support -march=la64v1.0 and -march=la64v1.1 (PR #100057)

2024-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: None (Ami-zhang) Changes The newly added strings `la64v1.0` and `la64v1.1` in `-march` are as described in LoongArch toolchains conventions (see [1]). The target-cpu/feature attributes are forwarded to compiler when specifying

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > @jhuber6 , there is still few failed bot because of these changes > > * https://lab.llvm.org/buildbot/#/builders/193/builds/1224 > > * https://lab.llvm.org/buildbot/#/builders/2/builds/2790 > > > would you fix the problem or revert the changes? Looks like it's compla

[clang] [llvm] [LoongArch] Support -march=la64v1.0 and -march=la64v1.1 (PR #100057)

2024-07-22 Thread via cfe-commits
https://github.com/Ami-zhang created https://github.com/llvm/llvm-project/pull/100057 The newly added strings `la64v1.0` and `la64v1.1` in `-march` are as described in LoongArch toolchains conventions (see [1]). The target-cpu/feature attributes are forwarded to compiler when specifying parti

[clang] [LoongArch] Enable 128-bits vector by default (PR #100056)

2024-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: None (Ami-zhang) Changes This commit is to enable 128 vector feature by default, in order to be consistent with gcc. --- Full diff: https://github.com/llvm/llvm-project/pull/100056.diff 7 Files Affected: - (modified) clang/

[clang] [LoongArch] Enable 128-bits vector by default (PR #100056)

2024-07-22 Thread via cfe-commits
https://github.com/Ami-zhang created https://github.com/llvm/llvm-project/pull/100056 This commit is to enable 128 vector feature by default, in order to be consistent with gcc. >From d6e0e004d46194008a73d2de510a706932d11776 Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Thu, 18 Jul 2024 09:3

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread Vladimir Vereschaka via cfe-commits
vvereschaka wrote: @jhuber6 , there is still few failed bot because of these changes * https://lab.llvm.org/buildbot/#/builders/193/builds/1224 * https://lab.llvm.org/buildbot/#/builders/2/builds/2790 would you fix the problem or revert the changes? https://github.com/llvm/llvm-project/pull/96

[clang] [SPARC][clang] Add -m(no-)v8plus flags handling (PR #98713)

2024-07-22 Thread via cfe-commits
@@ -179,6 +179,13 @@ void sparc::getSparcTargetFeatures(const Driver &D, const ArgList &Args, Features.push_back("-hard-quad-float"); } + if (Arg *A = Args.getLastArg(options::OPT_mv8plus, options::OPT_mno_v8plus)) { +if (A->getOption().matches(options::OPT_mv8p

[clang] [llvm] [PowerPC] Add support for -mcpu=pwr11 / -mtune=pwr11 (PR #99511)

2024-07-22 Thread Chen Zheng via cfe-commits
@@ -3485,9 +3485,11 @@ unsigned PPCInstrInfo::getSpillTarget() const { // With P10, we may need to spill paired vector registers or accumulator // registers. MMA implies paired vectors, so we can just check that. bool IsP10Variant = Subtarget.isISA3_1() || Subtarget.paire

[clang] [llvm] [PowerPC] Add support for -mcpu=pwr11 / -mtune=pwr11 (PR #99511)

2024-07-22 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 approved this pull request. LGTM except one nit. Thanks very much for adding this support. https://github.com/llvm/llvm-project/pull/99511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [llvm] [PowerPC] Add support for -mcpu=pwr11 / -mtune=pwr11 (PR #99511)

2024-07-22 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 edited https://github.com/llvm/llvm-project/pull/99511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang: don't unnecessarily convert inline-asm operands to x86mmx in IR. (PR #98273)

2024-07-22 Thread Phoebe Wang via cfe-commits
@@ -58173,8 +58173,8 @@ X86TargetLowering::getSingleConstraintMatchWeight( return CW_Invalid; // Any MMX reg case 'm': - if (Ty->isX86_MMXTy() && Subtarget.hasMMX()) -return Wt; + if (Ty->getPrimitiveSizeInBits() == 64 && Subtarget.hasMMX())

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-22 Thread via cfe-commits
@@ -0,0 +1,260 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++23 -verify %s + +namespace test1 { + template struct Base { +template requires true +Base(T); + }; + + template struct InheritsCtors : public Base { +using Base::Base; + }; + + InheritsCtors inheritsCtors

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-22 Thread via cfe-commits
@@ -1426,6 +1727,34 @@ void Sema::DeclareImplicitDeductionGuides(TemplateDecl *Template, if (!AddedAny) Transform.buildSimpleDeductionGuide(std::nullopt); + // FIXME: Handle explicit deduction guides from inherited constructors + // when the base deduction guides are

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-22 Thread via cfe-commits
@@ -980,19 +986,69 @@ getRHSTemplateDeclAndArgs(Sema &SemaRef, TypeAliasTemplateDecl *AliasTemplate) { return {Template, AliasRhsTemplateArgs}; } +// Build the type for a deduction guide generated from an inherited constructor +// [over.match.class.deduct]p1.10: +// ... the

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-22 Thread via cfe-commits
@@ -980,19 +986,69 @@ getRHSTemplateDeclAndArgs(Sema &SemaRef, TypeAliasTemplateDecl *AliasTemplate) { return {Template, AliasRhsTemplateArgs}; } +// Build the type for a deduction guide generated from an inherited constructor +// [over.match.class.deduct]p1.10: +// ... the

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-22 Thread via cfe-commits
@@ -1957,17 +1957,26 @@ class CXXDeductionGuideDecl : public FunctionDecl { ExplicitSpecifier ES, const DeclarationNameInfo &NameInfo, QualType T, TypeSourceInfo *TInfo, SourceLocation EndLocation, -

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-22 Thread via cfe-commits
@@ -0,0 +1,260 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++23 -verify %s + antangelo wrote: Thanks for catching this, I've fixed this case and added a test https://github.com/llvm/llvm-project/pull/98788 ___ cfe-commi

[clang] [clang-cl] [Sema] Support MSVC non-const lvalue to user-defined temporary reference (PR #99833)

2024-07-22 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/99833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-22 Thread via cfe-commits
@@ -0,0 +1,260 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++23 -verify %s antangelo wrote: Thanks, fixed https://github.com/llvm/llvm-project/pull/98788 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] Add _MM_FROUND_TO_NEAREST_TIES_EVEN to avx512fintrin.h (PR #99691)

2024-07-22 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert commented: Update the tests for `m512_maskz_cvt_roundepu64_ps` e.t.c (in avx512dq-builtins.c )? https://github.com/llvm/llvm-project/pull/99691 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang] [lldb] [llvm] [BOLT][DWARF][NFC] Split processUnitDIE into two lambdas (PR #99957)

2024-07-22 Thread Sayhaan Siddiqui via cfe-commits
https://github.com/sayhaan updated https://github.com/llvm/llvm-project/pull/99957 >From 11fff0b2d1868f1e8fce988b2b41a38de42dff61 Mon Sep 17 00:00:00 2001 From: Amir Ayupov Date: Tue, 1 Jun 2021 11:37:41 -0700 Subject: [PATCH 1/4] Rebase: [Facebook] Add clang driver options to test debug info

[clang] [clang-scan-deps] Ignore import/include directives with missing filenames (PR #99520)

2024-07-22 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. https://github.com/llvm/llvm-project/pull/99520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,44 @@ +set(LLVM_LINK_COMPONENTS + ${LLVM_TARGETS_TO_BUILD} + BitWriter + Core + BinaryFormat + MC + Target + TransformUtils + Analysis + Passes + IRReader + Object + Option + Support + TargetParser + CodeGen + LTO + ) + +set(LLVM_TARGET_DEFINITIONS NVLi

[clang] [AIX] Detect `#pragma mc_func` (PR #99888)

2024-07-22 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu closed https://github.com/llvm/llvm-project/pull/99888 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9147147 - [AIX] Detect `#pragma mc_func` (#99888)

2024-07-22 Thread via cfe-commits
Author: Qiongsi Wu Date: 2024-07-22T20:47:53-04:00 New Revision: 9147147b5c191c22a740f8e596e62a6de1fc4f70 URL: https://github.com/llvm/llvm-project/commit/9147147b5c191c22a740f8e596e62a6de1fc4f70 DIFF: https://github.com/llvm/llvm-project/commit/9147147b5c191c22a740f8e596e62a6de1fc4f70.diff LO

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > clang/test/CMakeLists.txt CLANG_TEST_DEPS also needs an update. ` > > The test might fail due to `/tmp/Rel/bin/clang-nvlink-wrapper: error: Unable > to find 'nvlink' in path` Also noticed that one, just pushed a fix a minute ago. Sorry for the mess. https://github.com/llvm/ll

[clang] Correct confusing headers in HLSLDocs (PR #100017)

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

[clang] 624d322 - [Clang] Fix 'clang-nvlink-wrapper' not working w/o CUDA

2024-07-22 Thread Joseph Huber via cfe-commits
Author: Joseph Huber Date: 2024-07-22T18:57:54-05:00 New Revision: 624d3221d1159bff98964d77c1b76e04a367d9d4 URL: https://github.com/llvm/llvm-project/commit/624d3221d1159bff98964d77c1b76e04a367d9d4 DIFF: https://github.com/llvm/llvm-project/commit/624d3221d1159bff98964d77c1b76e04a367d9d4.diff

[clang] Correct confusing header in HLSLDocs (PR #100017)

2024-07-22 Thread Greg Roth via cfe-commits
https://github.com/pow2clk updated https://github.com/llvm/llvm-project/pull/100017 >From f325499de6336807b0d56696356a3e11c7a26ac3 Mon Sep 17 00:00:00 2001 From: Greg Roth Date: Mon, 22 Jul 2024 17:39:47 -0600 Subject: [PATCH 1/2] Correct confusing header in HLSLDocs Because AvailabilityDiagno

[clang] [llvm] [AArch64][PAC] Sign block addresses used in indirectbr. (PR #97647)

2024-07-22 Thread Eli Friedman via cfe-commits
@@ -10909,6 +10909,14 @@ QualType Sema::CheckAdditionOperands(ExprResult &LHS, ExprResult &RHS, if (isObjCPointer && checkArithmeticOnObjCPointer(*this, Loc, PExp)) return QualType(); + // Arithmetic on label addresses is normally allowed, except when we add + // a pt

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread Fangrui Song via cfe-commits
MaskRay wrote: clang/test/CMakeLists.txt CLANG_TEST_DEPS also needs an update. ` The test might fail due to `/tmp/Rel/bin/clang-nvlink-wrapper: error: Unable to find 'nvlink' in path` https://github.com/llvm/llvm-project/pull/96561 ___ cfe-commits ma

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > https://lab.llvm.org/buildbot/#/builders/174/builds/2130 > > Actually I noticed (and I think you already did as well), that there seems to > be a test failure of nvwrapper.c after you fixed the build error. Just wanted > to let you know in case you were not already aware. Yep

[clang] [clang][headers] Including stddef.h always redefines NULL (PR #99727)

2024-07-22 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder updated https://github.com/llvm/llvm-project/pull/99727 >From 5e50bd5c4a9ed2f9fd0eea1431a2150886c4a00f Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Fri, 19 Jul 2024 17:53:44 -0700 Subject: [PATCH] [clang][headers] Including stddef.h always redefines NUL

[clang] [Clang] Loop over FieldDecls instead of all Decls (PR #99574)

2024-07-22 Thread Bill Wendling via cfe-commits
bwendling wrote: So is it enough to test if the FieldDecl exists in the CGRecordLayout before asking for the FieldNo? When I do that, there are some other subtle changes that occur, though maybe those are from other changes... https://github.com/llvm/llvm-project/pull/99574 ___

[clang] Correct confusing header in HLSLDocs (PR #100017)

2024-07-22 Thread Greg Roth via cfe-commits
pow2clk wrote: See https://clang.llvm.org/docs/HLSL/HLSLDocs.html to see the effect https://github.com/llvm/llvm-project/pull/100017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Correct confusing header in HLSLDocs (PR #100017)

2024-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Greg Roth (pow2clk) Changes Because AvailabilityDiagnostics.rst mistakenly overlined the "Examples" section, it was included in the generated HLSLDocs page. By demoting it to a subheader, it shouldn't show up as a top-level HLSLDocs page.

[clang] Correct confusing header in HLSLDocs (PR #100017)

2024-07-22 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] Correct confusing header in HLSLDocs (PR #100017)

2024-07-22 Thread Greg Roth via cfe-commits
https://github.com/pow2clk created https://github.com/llvm/llvm-project/pull/100017 Because AvailabilityDiagnostics.rst mistakenly overlined the "Examples" section, it was included in the generated HLSLDocs page. By demoting it to a subheader, it shouldn't show up as a top-level HLSLDocs page.

[clang] [clang][CodeGen] Zero init unspecified fields in initializers in C (#97459) (PR #97121)

2024-07-22 Thread via cfe-commits
https://github.com/yabinc updated https://github.com/llvm/llvm-project/pull/97121 >From 4166d864eaf66113bef884080492ce8d7b3d6b28 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Thu, 27 Jun 2024 17:11:52 -0700 Subject: [PATCH] [clang][CodeGen] Zero init unspecified fields in initializers in C (#

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread via cfe-commits
dyung wrote: https://lab.llvm.org/buildbot/#/builders/174/builds/2130 Actually I noticed (and I think you already did as well), that there seems to be a test failure of nvwrapper.c after you fixed the build error. Just wanted to let you know in case you were not already aware. https://github.

[clang] [HeaderSearch] Make a test independent of the local environment. (PR #100011)

2024-07-22 Thread Volodymyr Sapsai via cfe-commits
vsapsai wrote: Noticed inconsistencies after #15 as I have pre-release Xcode locally. https://github.com/llvm/llvm-project/pull/100011 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [Clang] Loop over FieldDecls instead of all Decls (PR #99574)

2024-07-22 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Empty fields sometimes don't have a corresponding LLVM field number, in order to make the layout work correctly. We slightly extended the cases where this applies recently; see #96422. https://github.com/llvm/llvm-project/pull/99574 ___

[clang] [HeaderSearch] Make a test independent of the local environment. (PR #100011)

2024-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Volodymyr Sapsai (vsapsai) Changes Don't ask the driver to inspect the local environment but use `cc1` directly. --- Full diff: https://github.com/llvm/llvm-project/pull/100011.diff 1 Files Affected: - (modified) clang/test/Modules/subd

[clang] [HeaderSearch] Make a test independent of the local environment. (PR #100011)

2024-07-22 Thread Volodymyr Sapsai via cfe-commits
https://github.com/vsapsai created https://github.com/llvm/llvm-project/pull/100011 Don't ask the driver to inspect the local environment but use `cc1` directly. >From 190e0a04afb71873c5d398ff08057684ca553d67 Mon Sep 17 00:00:00 2001 From: Volodymyr Sapsai Date: Mon, 22 Jul 2024 16:46:27 -0700

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > @jhuber6 this change seems to be causing build failures on some bots: > > * https://lab.llvm.org/buildbot/#/builders/174/builds/2129 > > * https://lab.llvm.org/buildbot/#/builders/190/builds/2383 > > > Can you take a look? Gah, sorry forgot to suppress that error whe

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread via cfe-commits
dyung wrote: > @jhuber6 this change seems to be causing build failures on some bots: > > * https://lab.llvm.org/buildbot/#/builders/174/builds/2129 > * https://lab.llvm.org/buildbot/#/builders/190/builds/2383 > > Can you take a look? Nevermind, I just noticed you already fixed it. Sorry for th

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread via cfe-commits
dyung wrote: @jhuber6 this change seems to be causing build failures on some bots: - https://lab.llvm.org/buildbot/#/builders/174/builds/2129 - https://lab.llvm.org/buildbot/#/builders/190/builds/2383 Can you take a look? https://github.com/llvm/llvm-project/pull/96561 _

[clang] [Modules] Don't search for modulemaps in the immediate sub-directories of search paths for recent Apple SDKs. (PR #100005)

2024-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Volodymyr Sapsai (vsapsai) Changes Such searches can be costly and non-intuitive. We've seen complaints from developers that they don't expect clang to find modules on their own and not in search paths that developers provide. Kee

[clang] [Modules] Don't search for modulemaps in the immediate sub-directories of search paths for recent Apple SDKs. (PR #100005)

2024-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Volodymyr Sapsai (vsapsai) Changes Such searches can be costly and non-intuitive. We've seen complaints from developers that they don't expect clang to find modules on their own and not in search paths that developers provide. Keep

[clang] [Modules] Don't search for modulemaps in the immediate sub-directories of search paths for recent Apple SDKs. (PR #100005)

2024-07-22 Thread Volodymyr Sapsai via cfe-commits
https://github.com/vsapsai created https://github.com/llvm/llvm-project/pull/15 Such searches can be costly and non-intuitive. We've seen complaints from developers that they don't expect clang to find modules on their own and not in search paths that developers provide. Keeping the search

[clang] [clang] Implement type/address discrimination of type_info vtable. (PR #99726)

2024-07-22 Thread Ahmed Bougacha via cfe-commits
https://github.com/ahmedbougacha closed https://github.com/llvm/llvm-project/pull/99726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b6dbda6 - [clang] Implement type/address discrimination of type_info vtable. (#99726)

2024-07-22 Thread via cfe-commits
Author: Ahmed Bougacha Date: 2024-07-22T16:41:22-07:00 New Revision: b6dbda67d8f687350de66e68a7fd61433fac7107 URL: https://github.com/llvm/llvm-project/commit/b6dbda67d8f687350de66e68a7fd61433fac7107 DIFF: https://github.com/llvm/llvm-project/commit/b6dbda67d8f687350de66e68a7fd61433fac7107.diff

[clang] [clang] Implement type/address discrimination of type_info vtable. (PR #99726)

2024-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ahmed Bougacha (ahmedbougacha) Changes We want to be able to support full type and address discrimination of type_info on targets that don't have existing ABI compatibility constraints. This patch does not enable such behavior on any plat

[clang] [clang] Implement type/address discrimination of type_info vtable. (PR #99726)

2024-07-22 Thread Ahmed Bougacha via cfe-commits
https://github.com/ahmedbougacha ready_for_review https://github.com/llvm/llvm-project/pull/99726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement type/address discrimination of type_info vtable. (PR #99726)

2024-07-22 Thread Ahmed Bougacha via cfe-commits
https://github.com/ahmedbougacha updated https://github.com/llvm/llvm-project/pull/99726 >From f46421f8e0349f65f07ab3bd822e179bf983439f Mon Sep 17 00:00:00 2001 From: Ahmed Bougacha Date: Wed, 17 Jul 2024 16:18:41 -0700 Subject: [PATCH 1/2] [clang] Implement type/address discrimination of type

[clang] [llvm] [AArch64][PAC] Sign block addresses used in indirectbr. (PR #97647)

2024-07-22 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl approved this pull request. https://github.com/llvm/llvm-project/pull/97647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Remove NetBSD/i386 workaround for FP eval method with older versions (PR #74025)

2024-07-22 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/74025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ab1722a - [Clang] Remove NetBSD/i386 workaround for FP eval method with older versions (#74025)

2024-07-22 Thread via cfe-commits
Author: Brad Smith Date: 2024-07-22T19:31:01-04:00 New Revision: ab1722aaabb454111d65cce60cdb8735631d5114 URL: https://github.com/llvm/llvm-project/commit/ab1722aaabb454111d65cce60cdb8735631d5114 DIFF: https://github.com/llvm/llvm-project/commit/ab1722aaabb454111d65cce60cdb8735631d5114.diff LO

[clang] [llvm] [WebAssembly] Implement f16x8.replace_lane instruction. (PR #99388)

2024-07-22 Thread Brendan Dahl via cfe-commits
https://github.com/brendandahl updated https://github.com/llvm/llvm-project/pull/99388 >From 8320b1f7f45f42363547cefb748627cfe1bb7af6 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 17 Jul 2024 20:10:20 + Subject: [PATCH] [WebAssembly] Implement f16x8.replace_lane instruction. Use a

[clang] [LinkerWrapper] Pass all files to the device linker (PR #97573)

2024-07-22 Thread Artem Belevich via cfe-commits
@@ -504,18 +511,23 @@ Expected clang(ArrayRef InputFiles, const ArgList &Args) { llvm::copy(LinkerArgs, std::back_inserter(CmdArgs)); } - // Pass on -mllvm options to the clang invocation. - for (const opt::Arg *Arg : Args.filtered(OPT_mllvm)) { -CmdArgs.push_back

[clang] e391ba0 - [Clang] Fix incorrect value assignment in nvlink wrapper

2024-07-22 Thread Joseph Huber via cfe-commits
Author: Joseph Huber Date: 2024-07-22T18:23:02-05:00 New Revision: e391ba07fabd3990edb9be9f3d715abba7e43343 URL: https://github.com/llvm/llvm-project/commit/e391ba07fabd3990edb9be9f3d715abba7e43343 DIFF: https://github.com/llvm/llvm-project/commit/e391ba07fabd3990edb9be9f3d715abba7e43343.diff

[clang] [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (PR #96561)

2024-07-22 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/96561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 37d0568 - [Clang] Introduce 'clang-nvlink-wrapper' to work around 'nvlink' (#96561)

2024-07-22 Thread via cfe-commits
Author: Joseph Huber Date: 2024-07-22T18:20:14-05:00 New Revision: 37d0568a6593adfe791c1327d99731050540e97a URL: https://github.com/llvm/llvm-project/commit/37d0568a6593adfe791c1327d99731050540e97a DIFF: https://github.com/llvm/llvm-project/commit/37d0568a6593adfe791c1327d99731050540e97a.diff

[clang] [Fuchsia] Disable new hdrgen in Fuchsia toolchain build (PR #100001)

2024-07-22 Thread via cfe-commits
https://github.com/zeroomega closed https://github.com/llvm/llvm-project/pull/11 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   7   >