[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

2024-09-09 Thread Greg Roth via cfe-commits
https://github.com/pow2clk commented: Thanks Damyan! https://github.com/llvm/llvm-project/pull/106588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

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

[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

2024-09-09 Thread Greg Roth via cfe-commits
@@ -0,0 +1,114 @@ +// RUN: %clang_cc1 -x hlsl -triple dxil-pc-shadermodel6.3-library %s -emit-llvm -disable-llvm-passes -o - | FileCheck %s --check-prefixes=CHECK,NOINLINE +// RUN: %clang_cc1 -x hlsl -triple dxil-pc-shadermodel6.3-library %s -emit-llvm -O0 -o - | FileCheck %s

[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

2024-09-09 Thread Greg Roth via cfe-commits
@@ -1239,9 +1239,9 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, if (getLangOpts().OpenMP && CurCodeDecl) CGM.getOpenMPRuntime().emitFunctionProlog(*this, CurCodeDecl); - if (FD && getLangOpts().HLSL) { + if (getLangOpts().HLSL) { // Handl

[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

2024-09-09 Thread Greg Roth via cfe-commits
@@ -2474,7 +2474,9 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D, // If we don't have a declaration to control inlining, the function isn't // explicitly marked as alwaysinline for semantic reasons, and inlining is // disabled, mark th

[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

2024-09-09 Thread Greg Roth via cfe-commits
https://github.com/pow2clk updated https://github.com/llvm/llvm-project/pull/106588 >From 12253818bd47aa8c324f6222586965f356b11c90 Mon Sep 17 00:00:00 2001 From: Greg Roth Date: Wed, 24 Jul 2024 16:49:19 -0600 Subject: [PATCH 1/6] [HLSL] set alwaysinline on HLSL functions HLSL inlines all its

[clang] [Clang][Sema] Use the correct lookup context when building overloaded 'operator->' in the current instantiation (PR #104458)

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

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-09-09 Thread Daniel Paoliello via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [Clang][Sema] Use the correct lookup context when building overloaded 'operator->' in the current instantiation (PR #104458)

2024-09-09 Thread Nikita Popov via cfe-commits
nikic wrote: It looks like this breaks the clang stage 2 build: https://llvm-compile-time-tracker.com/show_error.php?commit=3cdb30ebbc18fa894d3bd67aebcff76ce7c741ac https://github.com/llvm/llvm-project/pull/104458 ___ cfe-commits mailing list cfe-comm

[clang] [clang] Catch missing format attributes (PR #105479)

2024-09-09 Thread Aaron Puchert via cfe-commits
@@ -5335,6 +5335,230 @@ static void handlePreferredTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) { D->addAttr(::new (S.Context) PreferredTypeAttr(S.Context, AL, ParmTSI)); } +// Returns vector of format attributes. There are no two attributes with same +// arguments in r

[clang] [clang] Catch missing format attributes (PR #105479)

2024-09-09 Thread Aaron Puchert via cfe-commits
@@ -5335,6 +5335,230 @@ static void handlePreferredTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) { D->addAttr(::new (S.Context) PreferredTypeAttr(S.Context, AL, ParmTSI)); } +// Returns vector of format attributes. There are no two attributes with same +// arguments in r

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-09 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/107737 >From 2aa7527b52656d064c39aec94c9f1001ed10f7d8 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 6 Sep 2024 09:52:36 + Subject: [PATCH 1/2] [clang-repl] Simplify the value printing logic to enable

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-09 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,18 @@ +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected bogner wrote: I don't think we should be using `-verify-ignore-unex

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-09 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,18 @@ +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected + + +export uint4 test_asuint_too_many_arg(float p0, float p1) { + return __builtin_

[clang] 6cc0138 - Fix implicit conversion rank ordering (#106811)

2024-09-09 Thread via cfe-commits
Author: Chris B Date: 2024-09-09T12:34:50-05:00 New Revision: 6cc0138ca3dbdb21f4c4a5fa39cf05c38da4bb75 URL: https://github.com/llvm/llvm-project/commit/6cc0138ca3dbdb21f4c4a5fa39cf05c38da4bb75 DIFF: https://github.com/llvm/llvm-project/commit/6cc0138ca3dbdb21f4c4a5fa39cf05c38da4bb75.diff LOG:

[clang] Fix implicit conversion rank ordering (PR #106811)

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

[clang] [compiler-rt] [UBSan] Diagnose assumption violation (PR #104741)

2024-09-09 Thread Florian Mayer via cfe-commits
fmayer wrote: LGTM, but would like @vitalybuka to also take a quick look. https://github.com/llvm/llvm-project/pull/104741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0f349b7 - [HLSL] Implement support for HLSL intrinsic - select (#107129)

2024-09-09 Thread via cfe-commits
Author: Sarah Spall Date: 2024-09-09T11:07:20-07:00 New Revision: 0f349b7a9cde0080e626f6cfd362885341eb63b4 URL: https://github.com/llvm/llvm-project/commit/0f349b7a9cde0080e626f6cfd362885341eb63b4 DIFF: https://github.com/llvm/llvm-project/commit/0f349b7a9cde0080e626f6cfd362885341eb63b4.diff L

[clang] [HLSL] Implement support for HLSL intrinsic - select (PR #107129)

2024-09-09 Thread Justin Bogner via cfe-commits
https://github.com/bogner closed https://github.com/llvm/llvm-project/pull/107129 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TBAA] Emit "omnipotent char" for intrinsics with type cast (PR #107793)

2024-09-09 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: See https://reviews.llvm.org/D119319; CC @sdesmalen-arm @paulwalker-arm https://github.com/llvm/llvm-project/pull/107793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [HLSL] Implement support for HLSL intrinsic - select (PR #107129)

2024-09-09 Thread via cfe-commits
github-actions[bot] wrote: @spall 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, y

[clang] 5f74671 - [flang][Driver] Support -Xlinker in flang (#107472)

2024-09-09 Thread via cfe-commits
Author: Tarun Prabhu Date: 2024-09-09T12:10:16-06:00 New Revision: 5f74671c85877e03622e8d308aee15ed73ccee7c URL: https://github.com/llvm/llvm-project/commit/5f74671c85877e03622e8d308aee15ed73ccee7c DIFF: https://github.com/llvm/llvm-project/commit/5f74671c85877e03622e8d308aee15ed73ccee7c.diff

[clang] [flang] [flang][Driver] Support -Xlinker in flang (PR #107472)

2024-09-09 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu closed https://github.com/llvm/llvm-project/pull/107472 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4a501a4 - [CUDA/HIP] propagate -cuid to a host-only compilation. (#107483)

2024-09-09 Thread via cfe-commits
Author: Artem Belevich Date: 2024-09-09T11:14:41-07:00 New Revision: 4a501a4556bb191bd6eb5398a7330a28437e5087 URL: https://github.com/llvm/llvm-project/commit/4a501a4556bb191bd6eb5398a7330a28437e5087 DIFF: https://github.com/llvm/llvm-project/commit/4a501a4556bb191bd6eb5398a7330a28437e5087.diff

[clang] [CUDA/HIP] propagate -cuid to a host-only compilation. (PR #107483)

2024-09-09 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B closed https://github.com/llvm/llvm-project/pull/107483 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-09 Thread Michael Jones via cfe-commits
=?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0J

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-09 Thread Michael Jones via cfe-commits
=?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0J

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-09 Thread Michael Jones via cfe-commits
=?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0JfQuNGI0LDQvSDQnNC40YDQtw=?=, =?utf-8?b?0J

[clang] [HIP] Use original file path for CUID (PR #107734)

2024-09-09 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B approved this pull request. https://github.com/llvm/llvm-project/pull/107734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 048e46a - [clang, hexagon] Update copyright, license text (#107161)

2024-09-09 Thread via cfe-commits
Author: Brian Cain Date: 2024-09-09T13:27:13-05:00 New Revision: 048e46ad53bedef076df868524f0a15eb7cbd38c URL: https://github.com/llvm/llvm-project/commit/048e46ad53bedef076df868524f0a15eb7cbd38c DIFF: https://github.com/llvm/llvm-project/commit/048e46ad53bedef076df868524f0a15eb7cbd38c.diff LO

[clang] [clang, hexagon] Update copyright, license text (PR #107161)

2024-09-09 Thread Brian Cain via cfe-commits
https://github.com/androm3da closed https://github.com/llvm/llvm-project/pull/107161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Use the correct lookup context when building overloaded 'operator->' in the current instantiation (PR #104458)

2024-09-09 Thread Florian Hahn via cfe-commits
fhahn wrote: I am also seeing assertions triggered when building LLVM `Assertion failed: (BaseType->isDependentType()), function ActOnStartCXXMemberReference, file SemaExprCXX.cpp, line 8009.` https://github.com/llvm/llvm-project/pull/104458 ___ c

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

2024-09-09 Thread Brian Cain via cfe-commits
https://github.com/androm3da updated https://github.com/llvm/llvm-project/pull/98712 >From 29554e6a090075993a67126880cfb9e5f93f28f4 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Fri, 12 Jul 2024 21:34:56 -0700 Subject: [PATCH] [cmake] Add hexagon-linux cmake cache files These can be used to

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-09 Thread Зишан Мирза via cfe-commits
@@ -0,0 +1,64 @@ +//===-- Unittests for ctime_r -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-09 Thread Зишан Мирза via cfe-commits
@@ -0,0 +1,43 @@ +//===-- Unittests for ctime ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-09 Thread Зишан Мирза via cfe-commits
@@ -156,6 +156,13 @@ LIBC_INLINE struct tm *gmtime_internal(const time_t *timer, struct tm *result) { return result; } +// TODO: localtime is not yet implemented and a temporary solution is to +// use gmtime, https://github.com/llvm/llvm-project/issues/107597 +LIBC_IN

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-09 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/107292 >From a88a4eda4ce2ad32ee2ec02549b25c9f08aa14e9 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Tue, 3 Sep 2024 19:06:22 + Subject: [PATCH 1/4] Adding `asuint` implementation to hlsl --- clang/includ

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-09 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/107292 >From a88a4eda4ce2ad32ee2ec02549b25c9f08aa14e9 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Tue, 3 Sep 2024 19:06:22 + Subject: [PATCH 1/4] Adding `asuint` implementation to hlsl --- clang/includ

[clang] [llvm] [Clang] Match MSVC handling of duplicate header search paths in Microsoft compatibility modes. (PR #105738)

2024-09-09 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/105738 >From 79b2ceb45cbc4ffb823f56e4c5eedb62f475c780 Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Thu, 22 Aug 2024 09:44:56 -0700 Subject: [PATCH 1/2] [Clang] Match MSVC handling of duplicate header search

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-09 Thread via cfe-commits
joaosaffran wrote: @llvm-beanz I've implemented your suggestions. One issue I found is that the code generation will work with half types, which are not supported in the current implementation. Any suggestions into how to approach this? https://github.com/llvm/llvm-project/pull/107292

[clang] [flang] [mlir] [clang][flang][mlir] Support -frecord-command-line option (PR #102975)

2024-09-09 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu updated https://github.com/llvm/llvm-project/pull/102975 >From d5f48306117d0e3a166837b48ba475d70e15c6c1 Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Mon, 12 Aug 2024 14:32:08 -0600 Subject: [PATCH 1/2] [clang][flang][mlir] Support -frecord-command-line option

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-09 Thread via cfe-commits
https://github.com/higher-performance updated https://github.com/llvm/llvm-project/pull/102040 >From 768776e779fc47ddaa11b53ca3094777c405d9c6 Mon Sep 17 00:00:00 2001 From: higher-performance Date: Mon, 5 Aug 2024 15:04:19 -0400 Subject: [PATCH] Add Clang attribute to ensure that fields are ini

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-09 Thread Farzon Lotfi via cfe-commits
farzonl wrote: > @llvm-beanz I've implemented your suggestions. One issue I found is that the > code generation will work with half types, which are not supported in the > current implementation. Any suggestions into how to approach this? is there a way to know if the use of `__builtin_bit_cas

[clang] [NFC][rtsan] Docs of how to disable rtsan (PR #107707)

2024-09-09 Thread via cfe-commits
@@ -83,3 +83,53 @@ non-zero exit code. #13 0x00010230dd64 in main main.cpp:9 #14 0x0001958960dc () #15 0x2f557ffc () + +Disabling +- + +In some circumstances, you may want to suppress RealtimeSanitizer violations in a specific scope. -

[clang] [llvm] [DirectX] Add DirectXTargetCodeGenInfo (PR #104856)

2024-09-09 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/104856 >From 44e814b925a1ad8ac40fe6904542cbade516c065 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Mon, 19 Aug 2024 13:34:13 -0700 Subject: [PATCH 1/6] [DirectX] Add DirectXTargetCodeGenInfo Adds TargetCodeGenInfo

[clang] [llvm] [DirectX] Add DirectXTargetCodeGenInfo (PR #104856)

2024-09-09 Thread Helena Kotas via cfe-commits
@@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s + +void foo(__hlsl_resource_t res); + +// CHECK: define void @"?bar@@YAXU__hlsl_resource_t@@@Z"(target("dx.TypedBuffer", <4 x float>, 1, 0,

[clang] [llvm] [DirectX] Add DirectXTargetCodeGenInfo (PR #104856)

2024-09-09 Thread Helena Kotas via cfe-commits
@@ -879,6 +879,10 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) { ScalableVectorType::get(Type::getInt8Ty(C), TotalNumElts)); } + // DirectX intangible types + if (Name.starts_with("dx.")) +return TargetTypeInfo(PointerType::get(C, 0), Ta

[clang] [llvm] [DirectX] Add DirectXTargetCodeGenInfo (PR #104856)

2024-09-09 Thread Helena Kotas via cfe-commits
@@ -879,6 +879,10 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) { ScalableVectorType::get(Type::getInt8Ty(C), TotalNumElts)); } + // DirectX intangible types + if (Name.starts_with("dx.")) hekota wrote: I have updated the co

[clang-tools-extra] [clang-tidy] add default error message for performance-avoid-endl (PR #107867)

2024-09-09 Thread Danny Mösch via cfe-commits
@@ -225,3 +225,14 @@ void bad_custom_stream() { // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] // CHECK-FIXES: logger << '\n'; } + +namespace gh107859 { + +#define ENDL std::endl; + +void bad_macr

[clang-tools-extra] [clang-tidy] add default error message for performance-avoid-endl (PR #107867)

2024-09-09 Thread Danny Mösch via cfe-commits
@@ -225,3 +225,14 @@ void bad_custom_stream() { // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] // CHECK-FIXES: logger << '\n'; } + +namespace gh107859 { + +#define ENDL std::endl; + +void bad_macr

[clang] The real option name and not the alias used is displayed in msgs when using a config file (PR #107613)

2024-09-09 Thread Sean Perry via cfe-commits
perry-ca wrote: @redstar @abhina-sree Could you review this. Thanks https://github.com/llvm/llvm-project/pull/107613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3681d85 - Revert "[Clang][Sema] Use the correct lookup context when building overloaded 'operator->' in the current instantiation (#104458)"

2024-09-09 Thread Nikita Popov via cfe-commits
Author: Nikita Popov Date: 2024-09-09T21:10:12+02:00 New Revision: 3681d8552fb9e6cb15e9d45849ff2e34a25c518e URL: https://github.com/llvm/llvm-project/commit/3681d8552fb9e6cb15e9d45849ff2e34a25c518e DIFF: https://github.com/llvm/llvm-project/commit/3681d8552fb9e6cb15e9d45849ff2e34a25c518e.diff

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-09 Thread Farzon Lotfi via cfe-commits
@@ -0,0 +1,41 @@ +// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.3-library %s -fnative-half-type -emit-llvm -O1 -o - | FileCheck %s + +// CHECK: define {{.*}}test_uint{{.*}}(i32 {{.*}} [[VAL:%.*]]){{.*}} +// CHECK-NOT: bitcast +// CHECK: ret i3

[clang] 98815f7 - [clang][docs] Add clang-tutor to External Clang Examples (#107665)

2024-09-09 Thread via cfe-commits
Author: c8ef Date: 2024-09-09T21:13:29+02:00 New Revision: 98815f7878c3240e27f516e331255532087f5fcb URL: https://github.com/llvm/llvm-project/commit/98815f7878c3240e27f516e331255532087f5fcb DIFF: https://github.com/llvm/llvm-project/commit/98815f7878c3240e27f516e331255532087f5fcb.diff LOG: [cl

[clang] [clang][docs] Add clang-tutor to ExternalClangExamples. (PR #107665)

2024-09-09 Thread Danny Mösch via cfe-commits
https://github.com/SimplyDanny closed https://github.com/llvm/llvm-project/pull/107665 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][docs] Add clang-tutor to ExternalClangExamples. (PR #107665)

2024-09-09 Thread Danny Mösch via cfe-commits
SimplyDanny wrote: Merged. Thank you for the addition, @c8ef! https://github.com/llvm/llvm-project/pull/107665 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Add missing space in documentation (PR #107905)

2024-09-09 Thread Louis Dionne via cfe-commits
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/107905 That missing space was causing the whole sentence to be rendered incorrectly in the resulting HTML. >From df520b4cb99001b81ab00fa530718a2307dafb6f Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 9 Sep 2

[clang] [clang][NFC] Add missing space in -Wunsafe-buffer-usage documentation (PR #107905)

2024-09-09 Thread Louis Dionne via cfe-commits
https://github.com/ldionne edited https://github.com/llvm/llvm-project/pull/107905 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Adding `asuint` implementation to hlsl (PR #107292)

2024-09-09 Thread Farzon Lotfi via cfe-commits
@@ -387,6 +387,65 @@ float3 asin(float3); _HLSL_BUILTIN_ALIAS(__builtin_elementwise_asin) float4 asin(float4); +//===--===// +// asuint builtins +//===--

[clang] [clang][NFC] Add missing space in -Wunsafe-buffer-usage documentation (PR #107905)

2024-09-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Louis Dionne (ldionne) Changes That missing space was causing the whole sentence to be rendered incorrectly in the resulting HTML. --- Full diff: https://github.com/llvm/llvm-project/pull/107905.diff 1 Files Affected: - (modified) clan

[clang-tools-extra] [NFC][clang-tidy] fix tests of deleted functions for missing-std-forward (PR #106861)

2024-09-09 Thread Danny Mösch via cfe-commits
https://github.com/SimplyDanny approved this pull request. https://github.com/llvm/llvm-project/pull/106861 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-09-09 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/98652 >From e7be53314994b9a051ba2ff99dfd029937ebcc07 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Fri, 12 Jul 2024 11:17:24 -0400 Subject: [PATCH 1/3] update autoconversion functionality to fix erro

[clang] e62bf7c - [z/OS] Set the default arch for z/OS to be arch10 (#89854)

2024-09-09 Thread via cfe-commits
Author: Sean Perry Date: 2024-09-09T15:24:16-04:00 New Revision: e62bf7cd0beb530bc0842bb7aa8ff162607a82b9 URL: https://github.com/llvm/llvm-project/commit/e62bf7cd0beb530bc0842bb7aa8ff162607a82b9 DIFF: https://github.com/llvm/llvm-project/commit/e62bf7cd0beb530bc0842bb7aa8ff162607a82b9.diff LO

[clang] [z/OS] Set the default arch for z/OS to be arch10 (PR #89854)

2024-09-09 Thread Kai Nacke via cfe-commits
https://github.com/redstar closed https://github.com/llvm/llvm-project/pull/89854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose dangling issues for the "Container" case. (PR #107213)

2024-09-09 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/107213 >From 73ed8a2e42415b064cf8a35a84cc8c0c1dd20988 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 28 Aug 2024 09:59:41 +0200 Subject: [PATCH 1/3] [clang] Diagnose dangling issues for "Container" case. We teac

[clang] [clang] Diagnose dangling issues for the "Container" case. (PR #107213)

2024-09-09 Thread Haojian Wu via cfe-commits
@@ -292,7 +292,7 @@ Improvements to Clang's diagnostics - Clang now warns for u8 character literals used in C23 with ``-Wpre-c23-compat`` instead of ``-Wpre-c++17-compat``. -- Clang now diagnoses cases where a dangling `GSLOwner`` object is constructed, e.g. `std::vector v

[clang] [clang] Diagnose dangling issues for the "Container" case. (PR #107213)

2024-09-09 Thread Haojian Wu via cfe-commits
@@ -990,13 +1009,16 @@ static void checkExprLifetimeImpl(Sema &SemaRef, // int &p = *localUniquePtr; // someContainer.add(std::move(localUniquePtr)); // return p; -IsLocalGslOwner = isRecordWithAttr(L->getType()); +IsLocalGslOwner =

[clang] [clang-tools-extra] [llvm] [SystemZ][z/OS] Propagate IsText parameter to open text files as text (PR #107906)

2024-09-09 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree created https://github.com/llvm/llvm-project/pull/107906 This patch adds an IsText parameter to the following functions openFileForRead, getBufferForFile, getBufferForFileImpl and determines whether a file is text by querying the file tag on z/OS. The default is

[clang] [clang-tools-extra] [llvm] [SystemZ][z/OS] Propagate IsText parameter to open text files as text (PR #107906)

2024-09-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Abhina Sree (abhina-sree) Changes This patch adds an IsText parameter to the following functions openFileForRead, getBufferForFile, getBufferForFileImpl and determines whether a file is text by querying the file tag on z/OS. The de

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-09-09 Thread via cfe-commits
https://github.com/higher-performance updated https://github.com/llvm/llvm-project/pull/102040 >From 16cccbc732f73f486e0a46afe815ed87fe52c69a Mon Sep 17 00:00:00 2001 From: higher-performance Date: Mon, 5 Aug 2024 15:04:19 -0400 Subject: [PATCH] Add Clang attribute to ensure that fields are ini

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-09-09 Thread Abhina Sree via cfe-commits
@@ -326,7 +326,7 @@ ErrorOr> RealFileSystem::openFileForRead(const Twine &Name) { SmallString<256> RealName, Storage; Expected FDOrErr = sys::fs::openNativeFileForRead( - adjustPath(Name, Storage), sys::fs::OF_None, &RealName); + adjustPath(Name, Storage), sys::fs

[clang] [NFC][rtsan] Docs of how to disable rtsan (PR #107707)

2024-09-09 Thread Chris Apple via cfe-commits
https://github.com/cjappl updated https://github.com/llvm/llvm-project/pull/107707 >From e3e211f65afbc923299c0f413d2c50c7b00884b6 Mon Sep 17 00:00:00 2001 From: Chris Apple Date: Sat, 7 Sep 2024 08:38:06 -0700 Subject: [PATCH 1/2] [NFC][rtsan] Docs of how to disable rtsan --- clang/docs/Realt

[clang] The real option name and not the alias used is displayed in msgs when using a config file (PR #107613)

2024-09-09 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/107613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][TableGen] Migrate clang-tblgen to use const RecordKeeper (PR #107533)

2024-09-09 Thread Rahul Joshi via cfe-commits
jurahul wrote: @Sirraide @Lukacma @SpencerAbson @mshockwave can you PTAL? Or suggest other reviewers? https://github.com/llvm/llvm-project/pull/107533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang-tools-extra] [llvm] [SystemZ][z/OS] Propagate IsText parameter to open text files as text (PR #107906)

2024-09-09 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/107906 >From 758745c955471b0ad65cd3a33381f753e2b63797 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Mon, 9 Sep 2024 15:32:09 -0400 Subject: [PATCH] Propagate IsText parameter to openFileForRead funct

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-09-09 Thread via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [-Wunsafe-buffer-usage] Warning Libc functions (PR #101583)

2024-09-09 Thread Artem Dergachev via cfe-commits
haoNoQ wrote: `-Wunsafe-buffer-usage` is theoretically possible to use in C but it involves a lot of `#pragma clang unsafe_buffer_usage` to annotate and encapsulate every unsafe buffer operation. So it's impractical but we aren't disabling it because that'd be an unnecessary restriction and it

[clang] [HLSL] Allow truncation to scalar (PR #104844)

2024-09-09 Thread Chris B via cfe-commits
@@ -2032,26 +2032,42 @@ static bool IsVectorConversion(Sema &S, QualType FromType, QualType ToType, if (S.Context.hasSameUnqualifiedType(FromType, ToType)) return false; + // HLSL allows implicit truncation of vector types. + if (S.getLangOpts().HLSL) { +auto *ToE

[clang] [compiler-rt] Reland [asan][windows] Eliminate the static asan runtime on windows (PR #107899)

2024-09-09 Thread Charlie Barto via cfe-commits
https://github.com/barcharcraz closed https://github.com/llvm/llvm-project/pull/107899 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Emit error for duplicate mangled names within a lambda (PR #107581)

2024-09-09 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > The SME type attributes are not part of the name mangling If `int(&)() __arm_streaming` is a different type from `int(&)()` for template instantiation, it should have different mangling. If it doesn't, that's a bug. If there is no spec for the correct mangling, someone

[clang] [NFC][rtsan] Docs of how to disable rtsan (PR #107707)

2024-09-09 Thread Vitaly Buka via cfe-commits
@@ -83,3 +83,53 @@ non-zero exit code. #13 0x00010230dd64 in main main.cpp:9 #14 0x0001958960dc () #15 0x2f557ffc () + +Disabling +- + +In some circumstances, you may want to suppress error reporting in a specific scope. + +In C++, this is achieve

[clang] The real option name and not the alias used is displayed in msgs when using a config file (PR #107613)

2024-09-09 Thread Sean Perry via cfe-commits
https://github.com/perry-ca updated https://github.com/llvm/llvm-project/pull/107613 >From 27f31954976948e4e0d194db5da6bc550b4c2200 Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Fri, 6 Sep 2024 10:54:07 -0500 Subject: [PATCH 1/2] clone the alias option too --- clang/lib/Driver/Driver.cpp

[clang] [NFC][rtsan] Docs of how to disable rtsan (PR #107707)

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

[clang] The real option name and not the alias used is displayed in msgs when using a config file (PR #107613)

2024-09-09 Thread Sean Perry via cfe-commits
https://github.com/perry-ca updated https://github.com/llvm/llvm-project/pull/107613 >From 27f31954976948e4e0d194db5da6bc550b4c2200 Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Fri, 6 Sep 2024 10:54:07 -0500 Subject: [PATCH 1/3] clone the alias option too --- clang/lib/Driver/Driver.cpp

[clang] [NFC][rtsan] Docs of how to disable rtsan (PR #107707)

2024-09-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/107707 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Emit error for duplicate mangled names within a lambda (PR #107581)

2024-09-09 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: (You shouldn't need to special-case lambdas; any use of the type needs the appropriate mangling, except maybe the function declaration itself.) https://github.com/llvm/llvm-project/pull/107581 ___ cfe-commits mailing list cfe-comm

[clang] [llvm] [RFC][BPF] Do atomic_fetch_*() pattern matching with memory ordering (PR #107343)

2024-09-09 Thread via cfe-commits
https://github.com/yonghong-song updated https://github.com/llvm/llvm-project/pull/107343 >From bcca7b61a1b89698d259a7be84d9babfad674db7 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Tue, 3 Sep 2024 21:26:17 -0700 Subject: [PATCH 1/2] [RFC][BPF] Do atomic_fetch_*() pattern matching with m

[clang] [llvm] [RFC][BPF] Do atomic_fetch_*() pattern matching with memory ordering (PR #107343)

2024-09-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yonghong-song) Changes For atomic fetch_and_*() operations, do pattern matching with memory ordering seq_cst, acq_rel, release, acquire and monotonic (relaxed). For fetch_and_*() operations with seq_cst/acq_rel/release/acquire orderin

[clang] [Clang] Add __builtin_selectvector and use it for AVX512 intrinsics (PR #91306)

2024-09-09 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: You mean, if all three operands are boolean vectors? I'm surprised that doesn't already work. https://github.com/llvm/llvm-project/pull/91306 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] The real option name and not the alias used is displayed in msgs when using a config file (PR #107613)

2024-09-09 Thread Sean Perry via cfe-commits
https://github.com/perry-ca updated https://github.com/llvm/llvm-project/pull/107613 >From 27f31954976948e4e0d194db5da6bc550b4c2200 Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Fri, 6 Sep 2024 10:54:07 -0500 Subject: [PATCH 1/4] clone the alias option too --- clang/lib/Driver/Driver.cpp

[clang] [llvm] [RFC][BPF] Do atomic_fetch_*() pattern matching with memory ordering (PR #107343)

2024-09-09 Thread via cfe-commits
https://github.com/yonghong-song updated https://github.com/llvm/llvm-project/pull/107343 >From 128768085c85ffeaee09f5dc654e25f0b3dbf503 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Tue, 3 Sep 2024 21:26:17 -0700 Subject: [PATCH 1/2] [RFC][BPF] Do atomic_fetch_*() pattern matching with m

[clang] [llvm] [LLVM][Coroutines] Transform "coro_elide_safe" calls to switch ABI coroutines to the `noalloc` variant (PR #99285)

2024-09-09 Thread Yuxuan Chen via cfe-commits
yuxuanchen1997 wrote: Fix-forward for this patch: https://github.com/llvm/llvm-project/pull/107897 https://github.com/llvm/llvm-project/pull/99285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [Clang] Add __builtin_selectvector and use it for AVX512 intrinsics (PR #91306)

2024-09-09 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: > You mean, if all three operands are boolean vectors? I'm surprised that > doesn't already work. No, I mean I have a vector of bools and want to select a value based on that. e.g. `declval>() ? declval>() : declval>()`. https://github.com/llvm/llvm-project/pull/91306 _

[clang] [llvm] [RFC][BPF] Do atomic_fetch_*() pattern matching with memory ordering (PR #107343)

2024-09-09 Thread via cfe-commits
https://github.com/yonghong-song edited https://github.com/llvm/llvm-project/pull/107343 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RFC][BPF] Do atomic_fetch_*() pattern matching with memory ordering (PR #107343)

2024-09-09 Thread via cfe-commits
yonghong-song wrote: Add change in BTFDebug.cpp to ingore dwarf::DW_TAG_atomic_type. Add some info about bpf prog atomic type usage and what skeleton looks like (see commit message in commit 2). https://github.com/llvm/llvm-project/pull/107343 ___ cf

[clang] [Clang] Add __builtin_selectvector and use it for AVX512 intrinsics (PR #91306)

2024-09-09 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: The relevant bit of code is: ``` // The OpenCL operator with a vector condition is sufficiently // different to merit its own checker. if ((getLangOpts().OpenCL && Cond.get()->getType()->isVectorType()) || Cond.get()->getType()->isExtVectorType()) return Open

[clang] [llvm] [DirectX] Add DirectXTargetCodeGenInfo (PR #104856)

2024-09-09 Thread Justin Bogner via cfe-commits
https://github.com/bogner edited https://github.com/llvm/llvm-project/pull/104856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DirectX] Add DirectXTargetCodeGenInfo (PR #104856)

2024-09-09 Thread Justin Bogner via cfe-commits
https://github.com/bogner approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/104856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DirectX] Add DirectXTargetCodeGenInfo (PR #104856)

2024-09-09 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,52 @@ +//===- DirectX.cpp-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [NFC][rtsan] Docs of how to disable rtsan (PR #107707)

2024-09-09 Thread Chris Apple via cfe-commits
https://github.com/cjappl updated https://github.com/llvm/llvm-project/pull/107707 >From e3e211f65afbc923299c0f413d2c50c7b00884b6 Mon Sep 17 00:00:00 2001 From: Chris Apple Date: Sat, 7 Sep 2024 08:38:06 -0700 Subject: [PATCH 1/3] [NFC][rtsan] Docs of how to disable rtsan --- clang/docs/Realt

<    1   2   3   4   5   >