[clang] [HLSL][Doc] Document multi-argument resolution (PR #104474)

2024-08-16 Thread Chris B via cfe-commits
https://github.com/llvm-beanz updated https://github.com/llvm/llvm-project/pull/104474 >From a68223e1d0ee5e1b41ea7ec2385c9d581c901e70 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Thu, 15 Aug 2024 12:03:55 -0500 Subject: [PATCH 1/2] [HLSL][Doc] Document multi-argument resolution This upd

[clang] 4a57e83 - [HLSL] Flesh out basic type typedefs (#104479)

2024-08-16 Thread via cfe-commits
Author: Chris B Date: 2024-08-16T10:51:07-05:00 New Revision: 4a57e834f7de83d85d994c63647aa957279c354e URL: https://github.com/llvm/llvm-project/commit/4a57e834f7de83d85d994c63647aa957279c354e DIFF: https://github.com/llvm/llvm-project/commit/4a57e834f7de83d85d994c63647aa957279c354e.diff LOG:

[clang] [HLSL] Flesh out basic type typedefs (PR #104479)

2024-08-16 Thread Chris B via cfe-commits
https://github.com/llvm-beanz closed https://github.com/llvm/llvm-project/pull/104479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread Alexander Kornienko via cfe-commits
alexfh wrote: Thanks for the fix, @a-tarasyuk! Can you merge the PR or should I do this for you? https://github.com/llvm/llvm-project/pull/104594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [compiler-rt] [test] Prevent generation of the bigendian code inside clang test CodeGen/bit-int-ubsan.c (PR #104607)

2024-08-16 Thread Nikita Popov via cfe-commits
@@ -1,5 +1,5 @@ // REQUIRES: x86-registered-target nikic wrote: Is this REQUIRED needed? You normally do not need the backend to be available for clang codegen tests. https://github.com/llvm/llvm-project/pull/104607

[clang] [clang][driver] Fix -print-target-triple OS version for apple targets (PR #104037)

2024-08-16 Thread via cfe-commits
zmodem wrote: I have no idea what's going on here, but we also bisected test failures to this patch: https://crbug.com/360066428 https://github.com/llvm/llvm-project/pull/104037 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [compiler-rt] [test] Prevent generation of the bigendian code inside clang test CodeGen/bit-int-ubsan.c (PR #104607)

2024-08-16 Thread via cfe-commits
@@ -1,5 +1,5 @@ // REQUIRES: x86-registered-target earnol wrote: It present in other tests which are target specific. Anyways this test will not work properly for targets big endian. So it is required. https://github.com/llvm/llvm-project/pull/104607 _

[clang] [compiler-rt] [test] Prevent generation of the bigendian code inside clang test CodeGen/bit-int-ubsan.c (PR #104607)

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

[clang] [analyzer] [MallocChecker] suspect all release functions as candite for supression (PR #104599)

2024-08-16 Thread Pavel Skripkin via cfe-commits
https://github.com/pskrgag updated https://github.com/llvm/llvm-project/pull/104599 >From 913036ab795d6b91d6bb74d82aa2d329fe689535 Mon Sep 17 00:00:00 2001 From: Pavel Skripkin Date: Fri, 16 Aug 2024 17:45:57 +0300 Subject: [PATCH 1/2] clang/csa: suspect all functions as those that may do refc

[clang] [llvm] [Driver] Default -msmall-data-limit= to 0 and clean up code (PR #83093)

2024-08-16 Thread Sam Elliott via cfe-commits
lenary wrote: I was a reviewer on the original patch, and I can see that I let some not great things through - claiming options that should not have been claimed, etc. I also do think that the situation has changed since then - more platform defaults are opting out of the sbss/sdata optimisati

[clang] [llvm] [Driver] Default -msmall-data-limit= to 0 and clean up code (PR #83093)

2024-08-16 Thread Sam Elliott via cfe-commits
https://github.com/lenary approved this pull request. https://github.com/llvm/llvm-project/pull/83093 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [include-cleaner] Add handling for new/delete expressions (PR #104033)

2024-08-16 Thread via cfe-commits
zmodem wrote: We hit a test failure on Windows too: (from https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/873944755620209/+/u/package_clang/stdout) Note that `long` is 32 bits on Windows, but this is a 64-bit build, so size_t should be 64 bits. ... and now I see there's

[clang] [clang] Rename all AST/Interp stuff to AST/ByteCode (PR #104552)

2024-08-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-windows` running on `linaro-armv8-windows-msvc-05` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/1619 Here is the relevant piece of t

[clang] [RISCV] Allow YAML file to control multilib selection (PR #98856)

2024-08-16 Thread via cfe-commits
ArcaneNibble wrote: > Have you, using this patch, managed to reimplement the hardcoded multilib > behaviour? I did some experimenting and managed to implement something very close (especially using the fake flag hack mentioned in the forums): ```yaml MultilibVersion: 1.0 Groups: - Name: rv32

[clang] b221c37 - [RISCV] Allow YAML file to control multilib selection (#98856)

2024-08-16 Thread via cfe-commits
Author: R Date: 2024-08-16T17:14:16+01:00 New Revision: b221c37082707e35b492baa9ae8045c56b3ced0b URL: https://github.com/llvm/llvm-project/commit/b221c37082707e35b492baa9ae8045c56b3ced0b DIFF: https://github.com/llvm/llvm-project/commit/b221c37082707e35b492baa9ae8045c56b3ced0b.diff LOG: [RISCV

[clang] [RISCV] Allow YAML file to control multilib selection (PR #98856)

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

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-16 Thread Paul Kirth via cfe-commits
ilovepi wrote: Unfortunately, I don't think we have a way to run a patch on post-submit bots before it lands. I think everyone has been frustrated by that limitation at one time or another. I usually ask the reporters/bot owners if its possible. If they're able to help, most contributors are m

[clang] [compiler-rt] [test] Prevent generation of the bigendian code inside clang test CodeGen/bit-int-ubsan.c (PR #104607)

2024-08-16 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/104607 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][cuda][driver] Make sure flang does not switch to cc1 (PR #104613)

2024-08-16 Thread Valentin Clement バレンタイン クレメン via cfe-commits
https://github.com/clementval created https://github.com/llvm/llvm-project/pull/104613 Flang is switch to cc1 when we use `-x cuda`. Make sure we can use fc1 with cuda fortran input. The current pipeline will fail at MLIR level for the moment. >From 36e18ae7bfa6fd2647da0b78bf2c332969b1091d M

[clang] [flang] [flang][cuda][driver] Make sure flang does not switch to cc1 (PR #104613)

2024-08-16 Thread Valentin Clement バレンタイン クレメン via cfe-commits
https://github.com/clementval edited https://github.com/llvm/llvm-project/pull/104613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][cuda][driver] Make sure flang does not switch to cc1 (PR #104613)

2024-08-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Valentin Clement (バレンタイン クレメン) (clementval) Changes Flang is switch to cc1 when we use `-x cuda`. Make sure we can use fc1 with cuda fortran input. The current pipeline will fail at MLIR level for the moment. #104483 --- Full diff: htt

[clang] d8c2874 - [test] Prevent generation of the bigendian code inside clang test CodeGen/bit-int-ubsan.c (#104607)

2024-08-16 Thread via cfe-commits
Author: earnol Date: 2024-08-16T12:34:22-04:00 New Revision: d8c2874172ebe70d34c08dea5fcf885283c93562 URL: https://github.com/llvm/llvm-project/commit/d8c2874172ebe70d34c08dea5fcf885283c93562 DIFF: https://github.com/llvm/llvm-project/commit/d8c2874172ebe70d34c08dea5fcf885283c93562.diff LOG: [

[clang] [compiler-rt] [test] Prevent generation of the bigendian code inside clang test CodeGen/bit-int-ubsan.c (PR #104607)

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

[clang-tools-extra] [clang-tidy] Workaround for cppcoreguidelines-pro-type-union-access if memLoc is invalid (PR #104540)

2024-08-16 Thread Konstantin Romanov via cfe-commits
https://github.com/ksromanov updated https://github.com/llvm/llvm-project/pull/104540 >From 5c5f8496341e7b97faf62dad2ba7e0b210bde11b Mon Sep 17 00:00:00 2001 From: Konstantin Romanov Date: Fri, 9 Aug 2024 23:40:07 -0400 Subject: [PATCH 1/2] Workaround for cppcoreguidelines-pro-type-union-access

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread Oleksandr T. via cfe-commits
a-tarasyuk wrote: @alexfh Please merge the PR as I lack the access. Thanks https://github.com/llvm/llvm-project/pull/104594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Split invalid-cpu-note tests (PR #104601)

2024-08-16 Thread Sam Elliott via cfe-commits
https://github.com/lenary edited https://github.com/llvm/llvm-project/pull/104601 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][cuda][driver] Make sure flang does not switch to cc1 (PR #104613)

2024-08-16 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space edited https://github.com/llvm/llvm-project/pull/104613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][cuda][driver] Make sure flang does not switch to cc1 (PR #104613)

2024-08-16 Thread Andrzej Warzyński via cfe-commits
@@ -12,4 +13,8 @@ program main ! CHECK: INTEGER :: var = 1 ! CHECK: INTEGER, DEVICE :: dvar -! ERROR: cuda-option.f90:8:19: error: expected end of statement +! ERROR: cuda-option.f90:{{.*}}:{{.*}}: error: expected end of statement + +! The whole pipeline is not in place yet. I

[clang] [flang] [flang][cuda][driver] Make sure flang does not switch to cc1 (PR #104613)

2024-08-16 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/104613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement P2747 constexpr placement new (PR #104586)

2024-08-16 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/104586 >From 36eb12a12db45ca345fe9a3945431c19eff2a6cf Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 9 Jul 2024 08:37:18 +0200 Subject: [PATCH 1/3] [Clang] Implement P2747 constexpr placement new In C++26 a

[clang] [flang] [flang][cuda][driver] Make sure flang does not switch to cc1 (PR #104613)

2024-08-16 Thread Valentin Clement バレンタイン クレメン via cfe-commits
https://github.com/clementval updated https://github.com/llvm/llvm-project/pull/104613 >From 36e18ae7bfa6fd2647da0b78bf2c332969b1091d Mon Sep 17 00:00:00 2001 From: Valentin Clement Date: Fri, 16 Aug 2024 09:23:29 -0700 Subject: [PATCH 1/2] [flang][cuda][driver] Make sure flang does not switch

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread via cfe-commits
@@ -78,12 +80,12 @@ namespace ns { extern "C" struct A { int main(); }; // ok namespace c { - extern "C" void main(); // expected-warning {{'main' should not be 'extern "C"'}} + extern "C" int main(); // expected-warning {{'main' should not be 'extern "C"'}} } extern "

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-16 Thread via cfe-commits
earnol wrote: Since automatic revert is not working i have applied https://github.com/llvm/llvm-project/pull/104607 and monitoring builders. https://github.com/llvm/llvm-project/pull/96240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread Oleksandr T. via cfe-commits
@@ -78,12 +80,12 @@ namespace ns { extern "C" struct A { int main(); }; // ok namespace c { - extern "C" void main(); // expected-warning {{'main' should not be 'extern "C"'}} + extern "C" int main(); // expected-warning {{'main' should not be 'extern "C"'}} } extern "

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-16 Thread via cfe-commits
earnol wrote: > Please pass an explicit `-triple` to `%clang_cc1` if the test is not supposed > to be big endian compatible. This had been done in https://github.com/llvm/llvm-project/pull/104607. Please check. https://github.com/llvm/llvm-project/pull/96240 __

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread via cfe-commits
@@ -78,12 +80,12 @@ namespace ns { extern "C" struct A { int main(); }; // ok namespace c { - extern "C" void main(); // expected-warning {{'main' should not be 'extern "C"'}} + extern "C" int main(); // expected-warning {{'main' should not be 'extern "C"'}} } extern "

[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

2024-08-16 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/102913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

2024-08-16 Thread Joseph Huber via cfe-commits
jhuber6 wrote: I applied this locally and it resolved https://github.com/llvm/llvm-project/issues/64863 so I'm looking forward to this landing. https://github.com/llvm/llvm-project/pull/102913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-16 Thread Damyan Pepper via cfe-commits
@@ -551,24 +541,21 @@ getHLSLResourceAttrFromEitherDecl(VarDecl *VD, // the resource attr could be on the record decl itself or on one of // its fields (the resource handle, most commonly) -const auto *Attr = TheRecordDecl->getAttr(); +const auto *Attr = TheRec

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

2024-08-16 Thread via cfe-commits
eddyz87 wrote: > Clang bits LGTM; accepting but please wait to land until someone accepts the > LLVM changes as well. @AaronBallman , thank you for the review! On the LLVM side the changes are only for BPF backend and these were already approved by @yonghong-song, or do you have someone else i

[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)

2024-08-16 Thread S. Bharadwaj Yadavalli via cfe-commits
https://github.com/bharadwajy created https://github.com/llvm/llvm-project/pull/104619 Implement support for HLSL intrinsic saturate. Implement DXIL codegen for the intrinsic saturate by lowering it to DXIL Op dx.saturate. Implement SPIRV codegen by transforming saturate(x) to clamp(x, 0.0f, 1.

[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)

2024-08-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-backend-x86 Author: S. Bharadwaj Yadavalli (bharadwajy) Changes Implement support for HLSL intrinsic saturate. Implement DXIL codegen for the intrinsic saturate by lowering it to DXIL Op dx.sa

[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)

2024-08-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: S. Bharadwaj Yadavalli (bharadwajy) Changes Implement support for HLSL intrinsic saturate. Implement DXIL codegen for the intrinsic saturate by lowering it to DXIL Op dx.saturate. Implement SPIRV codegen by transforming saturate(x) to cl

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,194 @@ +// RUN: %clang_cc1 -fsyntax-only -fblocks -fcxx-exceptions -verify %s +// These are in a separate file because errors (e.g. incompatible attributes) currently prevent +// the AnalysisBasedWarnings pass from running at all. + +// This diagnostic is re-enabled an

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

2024-08-16 Thread Alexander Kornienko via cfe-commits
@@ -12210,7 +12220,18 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD, return Redeclaration; } -void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) { +void Sema::CheckMain(FunctionDecl *FD, const DeclSpec &DS) { + // [basic.start.main]p3 + //

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-16 Thread Damyan Pepper via cfe-commits
@@ -551,24 +541,21 @@ getHLSLResourceAttrFromEitherDecl(VarDecl *VD, // the resource attr could be on the record decl itself or on one of // its fields (the resource handle, most commonly) damyanp wrote: I was going to add a comment about the name of

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. Ah, I should have noticed that `setInvalidDecl()` makes no sense there when I reviewed that. LGTM after fixing what Corentin pointed out. https://github.com/llvm/llvm-project/pull/104594 ___ cfe-

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [llvm] [Clang][OMPX] Add the code generation for multi-dim `thread_limit` clause (PR #102717)

2024-08-16 Thread Shilei Tian via cfe-commits
shiltian wrote: @alexey-bataev any other comment? https://github.com/llvm/llvm-project/pull/102717 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-16 Thread Damyan Pepper via cfe-commits
@@ -551,24 +541,21 @@ getHLSLResourceAttrFromEitherDecl(VarDecl *VD, // the resource attr could be on the record decl itself or on one of // its fields (the resource handle, most commonly) -const auto *Attr = TheRecordDecl->getAttr(); +const auto *Attr = TheRec

[clang] [llvm] [NVPTX] Add conversion intrinsics from/to fp8 types (e4m3, e5m2) (PR #102969)

2024-08-16 Thread Artem Belevich via cfe-commits
Artem-B wrote: Looks like that it was clang-format check github was waiting on an approaval for. I've just clicked that button, let's see what it brings. The patch is good to go otherwise, IMO. https://github.com/llvm/llvm-project/pull/102969 ___ cfe-

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

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

2024-08-16 Thread Paul Kirth via cfe-commits
ilovepi wrote: Hi, I think we're seeing a libc++ test fail after this patch in our Windows CI. I'm working on getting access to a windows machine to verify, but would you mind taking a look? From the blame, and because this references MSVC behavior I'm pretty sure its related, but like I said

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-16 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp edited https://github.com/llvm/llvm-project/pull/97103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-08-16 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: I think those are failing because of unexpected passes in libc++ tests: ``` TEST 'llvm-libc++-static-clangcl.cfg.in :: libcxx/utilities/expected/expected.void/transform_error.mandates.verify.cpp' FAILED Exit Code: 0 Command Output (

[clang] [clang-format] Change BinPackParameters to an enum to add a BreakAlways (PR #101882)

2024-08-16 Thread via cfe-commits
VolatileAcorn wrote: > My bad! @mydeveloperday was right. So let's keep the name `BinPackParameters` > and use the enumerated values `Always`, `OnePerLine`, and `Never`. No problem, I've gone back to the previous changes but updated names of the values and rebased to fix the conflict with the s

[clang] b816977 - [APINotes] Support fields of C/C++ structs

2024-08-16 Thread via cfe-commits
Author: Egor Zhdan Date: 2024-08-16T18:48:39+01:00 New Revision: b81697718f49b0f353882e178f25981f47b2aa43 URL: https://github.com/llvm/llvm-project/commit/b81697718f49b0f353882e178f25981f47b2aa43 DIFF: https://github.com/llvm/llvm-project/commit/b81697718f49b0f353882e178f25981f47b2aa43.diff LO

[clang] [APINotes] Support fields of C/C++ structs (PR #104088)

2024-08-16 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan closed https://github.com/llvm/llvm-project/pull/104088 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos edited https://github.com/llvm/llvm-project/pull/99656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-08-16 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > How i can see the full amount of breakage on different platforms proactively? > I have created a PR: #104607 to address the big endian issue with the test as > my // REQUIRES: x86-registered-target turned out not to be enough to exclude > running test in the big endian pl

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [llvm] [Clang][OMPX] Add the code generation for multi-dim `thread_limit` clause (PR #102717)

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

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-16 Thread Damyan Pepper via cfe-commits
@@ -459,7 +468,407 @@ void SemaHLSL::handleResourceClassAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(HLSLResourceClassAttr::Create(getASTContext(), RC, ArgLoc)); } -void SemaHLSL::handleResourceBindingAttr(Decl *D, const ParsedAttr &AL) { +struct RegisterBindingFlags {

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

2024-08-16 Thread Farzon Lotfi via cfe-commits
@@ -284,41 +303,55 @@ static bool expandClampIntrinsic(CallInst *Orig, Intrinsic::ID ClampIntrinsic) { Builder.SetInsertPoint(Orig); auto *MaxCall = Builder.CreateIntrinsic( Ty, getMaxForClamp(Ty, ClampIntrinsic), {X, Min}, nullptr, "dx.max"); - auto *MinCall = -

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

2024-08-16 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/102872 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-16 Thread Damyan Pepper via cfe-commits
@@ -459,7 +468,407 @@ void SemaHLSL::handleResourceClassAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(HLSLResourceClassAttr::Create(getASTContext(), RC, ArgLoc)); } -void SemaHLSL::handleResourceBindingAttr(Decl *D, const ParsedAttr &AL) { +struct RegisterBindingFlags {

[clang] 0551926 - [Clang][OMPX] Add the code generation for multi-dim `thread_limit` clause (#102717)

2024-08-16 Thread via cfe-commits
Author: Shilei Tian Date: 2024-08-16T13:59:46-04:00 New Revision: 0551926fda739c1023a41978efb55047013e70d6 URL: https://github.com/llvm/llvm-project/commit/0551926fda739c1023a41978efb55047013e70d6 DIFF: https://github.com/llvm/llvm-project/commit/0551926fda739c1023a41978efb55047013e70d6.diff L

[clang] [llvm] [Clang][OMPX] Add the code generation for multi-dim `thread_limit` clause (PR #102717)

2024-08-16 Thread Shilei Tian via cfe-commits
https://github.com/shiltian closed https://github.com/llvm/llvm-project/pull/102717 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Hazard3 Core as taped out for RP2350 (PR #102452)

2024-08-16 Thread Sam Elliott via cfe-commits
https://github.com/lenary edited https://github.com/llvm/llvm-project/pull/102452 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Hazard3 Core as taped out for RP2350 (PR #102452)

2024-08-16 Thread Sam Elliott via cfe-commits
https://github.com/lenary edited https://github.com/llvm/llvm-project/pull/102452 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Workaround for cppcoreguidelines-pro-type-union-access if memLoc is invalid (PR #104540)

2024-08-16 Thread Konstantin Romanov via cfe-commits
https://github.com/ksromanov updated https://github.com/llvm/llvm-project/pull/104540 >From 47db38f62940e6bca72a51f519a5b78da25a38c2 Mon Sep 17 00:00:00 2001 From: Konstantin Romanov Date: Fri, 9 Aug 2024 23:40:07 -0400 Subject: [PATCH 1/4] Workaround for cppcoreguidelines-pro-type-union-access

[clang-tools-extra] [clang-tidy] Fix for cppcoreguidelines-pro-type-union-access if memLoc is invalid (PR #104540)

2024-08-16 Thread Konstantin Romanov via cfe-commits
https://github.com/ksromanov edited https://github.com/llvm/llvm-project/pull/104540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-16 Thread Damyan Pepper via cfe-commits
@@ -459,7 +468,407 @@ void SemaHLSL::handleResourceClassAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(HLSLResourceClassAttr::Create(getASTContext(), RC, ArgLoc)); } -void SemaHLSL::handleResourceBindingAttr(Decl *D, const ParsedAttr &AL) { +struct RegisterBindingFlags {

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

2024-08-16 Thread Thorsten Schütt via cfe-commits
@@ -303,6 +303,14 @@ SPIRVLegalizerInfo::SPIRVLegalizerInfo(const SPIRVSubtarget &ST) { getActionDefinitionsBuilder(G_FPOWI).legalForCartesianProduct( allFloatScalarsAndVectors, allIntScalarsAndVectors); + getActionDefinitionsBuilder(G_FDOTPROD) + .legalForCarte

[clang-tools-extra] [clang-tidy] Fix for cppcoreguidelines-pro-type-union-access if memLoc is invalid (PR #104540)

2024-08-16 Thread Konstantin Romanov via cfe-commits
https://github.com/ksromanov edited https://github.com/llvm/llvm-project/pull/104540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/104594 >From 9ffe47795d3fa25d6ac020b5cebace0c2e758285 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Fri, 16 Aug 2024 17:21:38 +0300 Subject: [PATCH 1/4] [Clang] fix crash by avoiding invalidation of extern main

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread Oleksandr T. via cfe-commits
@@ -78,12 +80,12 @@ namespace ns { extern "C" struct A { int main(); }; // ok namespace c { - extern "C" void main(); // expected-warning {{'main' should not be 'extern "C"'}} + extern "C" int main(); // expected-warning {{'main' should not be 'extern "C"'}} } extern "

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/104594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-08-16 Thread via cfe-commits
yabinc wrote: Sorry for using force push to resolve merge conflicts. The patch has been updated as suggested, and is ready for review. https://github.com/llvm/llvm-project/pull/97121 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [Clang] fix crash by avoiding invalidation of extern main declaration during strictness checks (PR #104594)

2024-08-16 Thread via cfe-commits
cor3ntin wrote: I'll merge when CI passes, thanks https://github.com/llvm/llvm-project/pull/104594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-08-16 Thread Thorsten Schütt via cfe-commits
@@ -303,6 +303,14 @@ SPIRVLegalizerInfo::SPIRVLegalizerInfo(const SPIRVSubtarget &ST) { getActionDefinitionsBuilder(G_FPOWI).legalForCartesianProduct( allFloatScalarsAndVectors, allIntScalarsAndVectors); + getActionDefinitionsBuilder(G_FDOTPROD) + .legalForCarte

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-08-16 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,1199 @@ +//=== EffectAnalysis.cpp - Sema warnings for function effects -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: A

[clang] [compiler-rt] [libcxx] [cmake] Add hexagon-linux cmake cache files (PR #98712)

2024-08-16 Thread Brian Cain via cfe-commits
androm3da wrote: > @ldionne ping @ldionne let me know if it would be helpful for me to decompose this change into a smaller one that would be easier to review. https://github.com/llvm/llvm-project/pull/98712 ___ cfe-commits mailing list cfe-commits@l

[clang] [llvm] [CUDA] Add a pseudo GPU sm_next which allows overriding for SM/PTX version. (PR #100247)

2024-08-16 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B updated https://github.com/llvm/llvm-project/pull/100247 >From da1ac9d36bd284dc607b7366ff83ba556fb64fb5 Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Thu, 18 Jul 2024 15:05:01 -0700 Subject: [PATCH 1/2] [CUDA] Add a pseudo GPU sm_next which allows overrides for

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-16 Thread Joshua Batista via cfe-commits
@@ -459,7 +468,407 @@ void SemaHLSL::handleResourceClassAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(HLSLResourceClassAttr::Create(getASTContext(), RC, ArgLoc)); } -void SemaHLSL::handleResourceBindingAttr(Decl *D, const ParsedAttr &AL) { +struct RegisterBindingFlags {

[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

2024-08-16 Thread Tomas Matheson via cfe-commits
tmatheson-arm wrote: @jroelofs @ahmedbougacha Are you happy with the FEAT_CCIDX changes to Apple processors? https://github.com/llvm/llvm-project/pull/104435 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)

2024-08-16 Thread Farzon Lotfi via cfe-commits
@@ -18666,6 +18666,15 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: { /*ReturnType=*/Op0->getType(), CGM.getHLSLRuntime().getRsqrtIntrinsic(), ArrayRef{Op0}, nullptr, "hlsl.rsqrt"); } + case Builtin::BI__builtin_hlsl_elementwise_saturate: { +Value

[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)

2024-08-16 Thread Farzon Lotfi via cfe-commits
@@ -0,0 +1,54 @@ +// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \ +// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \ +// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s \ +// RUN: --check-prefixes=CHECK,NATIVE_HALF +// RUN: %

[clang] [llvm] [CUDA] Add a pseudo GPU sm_next which allows overriding for SM/PTX version. (PR #100247)

2024-08-16 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B updated https://github.com/llvm/llvm-project/pull/100247 >From 2a948e8803cd881937e9a121ca9fe9c4816e857e Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Thu, 18 Jul 2024 15:05:01 -0700 Subject: [PATCH 1/2] [CUDA] Add a pseudo GPU sm_next which allows overrides for

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-08-16 Thread Joshua Batista via cfe-commits
@@ -551,24 +541,21 @@ getHLSLResourceAttrFromEitherDecl(VarDecl *VD, // the resource attr could be on the record decl itself or on one of // its fields (the resource handle, most commonly) bob80905 wrote: Yes, I think I may have left support for that

[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)

2024-08-16 Thread Farzon Lotfi via cfe-commits
@@ -362,6 +364,34 @@ static bool expandClampIntrinsic(CallInst *Orig, Intrinsic::ID ClampIntrinsic) { return true; } +static bool expandSaturateIntrinsic(CallInst *SaturateCall) { farzonl wrote: wait for @pow2clk change merges then change this to return `

[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)

2024-08-16 Thread Farzon Lotfi via cfe-commits
@@ -1285,6 +1289,34 @@ static unsigned getBoolCmpOpcode(unsigned PredNum) { } } +static APFloat getZeroFP(const Type *LLVMFloatTy) { farzonl wrote: I'm a little suprised this didn't already exist. https://github.com/llvm/llvm-project/pull/104619 __

[clang] [clang-format] Introduce "ReflowComments: IndentOnly" to re-indent comments without breaking internal structure (think Doxygen). (PR #96804)

2024-08-16 Thread Iuri Chaer via cfe-commits
ichaer wrote: @mydeveloperday, what do you think, is this good to merge? https://github.com/llvm/llvm-project/pull/96804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e6b9f12 - [flang][cuda][driver] Make sure flang does not switch to cc1 (#104613)

2024-08-16 Thread via cfe-commits
Author: Valentin Clement (バレンタイン クレメン) Date: 2024-08-16T11:56:22-07:00 New Revision: e6b9f12b0ac0f1e6f7f7145719092c10731e4fe4 URL: https://github.com/llvm/llvm-project/commit/e6b9f12b0ac0f1e6f7f7145719092c10731e4fe4 DIFF: https://github.com/llvm/llvm-project/commit/e6b9f12b0ac0f1e6f7f7145719092

<    1   2   3   4   >