[clang-tools-extra] [InstCombine] Fold icmp(constants[x]) when the range of x is given (PR #67093)

2023-09-22 Thread via cfe-commits
https://github.com/XChy updated https://github.com/llvm/llvm-project/pull/67093 >From e7314709fc812736a357b50654b08ef722fb89a4 Mon Sep 17 00:00:00 2001 From: XChy Date: Mon, 31 Jul 2023 17:10:45 +0800 Subject: [PATCH 1/2] [InstCombine] Tests for simplifying icmp(constants[x]) --- llvm/test/Tra

[PATCH] D19385: [scan-build] fix warnings emitted on Clang Format code base

2023-09-22 Thread Apelete Seketeli via Phabricator via cfe-commits
apelete added a comment. I guess it can be closed, thanks. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D19385/new/ https://reviews.llvm.org/D19385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[PATCH] D152206: [Basic] Support 64-bit x86 target for UEFI

2023-09-22 Thread Prabhu Karthikeyan Rajasekaran via Phabricator via cfe-commits
Prabhuk updated this revision to Diff 557221. Prabhuk added a comment. Datalayout update. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D152206/new/ https://reviews.llvm.org/D152206 Files: llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp ll

[clang] [clang][TSA] Make RequiresCapability a DeclOrType attribute (PR #67095)

2023-09-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/67095 This was much easier than expected actually. I'm sure I'm missing a lot of changes and test coverage though. @aaronpuchert I'm starting a new review here instead of continuing the one in Phab since this is a c

[clang] [clang][TSA] Make RequiresCapability a DeclOrType attribute (PR #67095)

2023-09-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes This was much easier than expected actually. I'm sure I'm missing a lot of changes and test coverage though. @aaronpuchert I'm starting a new review here instead of continuing the one in Phab since this is a completely different attempt.

[PATCH] D152206: [Basic] Support 64-bit x86 target for UEFI

2023-09-22 Thread Prabhu Karthikeyan Rajasekaran via Phabricator via cfe-commits
Prabhuk updated this revision to Diff 557223. Prabhuk added a comment. Update patch. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D152206/new/ https://reviews.llvm.org/D152206 Files: llvm/lib/IR/DataLayout.cpp llvm/lib/TargetParser/Triple.cpp

[clang] [clang][TSA] Make RequiresCapability a DeclOrType attribute (PR #67095)

2023-09-22 Thread Timm Baeder via cfe-commits
@@ -136,6 +136,17 @@ int main(void) { // Cleanup happens automatically -> no warning. } + /// Function pointers + { +int __attribute__((requires_capability(&mu1))) (*function_ptr)(int) = Foo_fun1; tbaederr wrote: This assignment also works if `Fo

[PATCH] D152206: [Basic] Support 64-bit x86 target for UEFI

2023-09-22 Thread Prabhu Karthikeyan Rajasekaran via Phabricator via cfe-commits
Prabhuk added a comment. @phosek -- Regarding the abandoning commit. I had messed up the commit splitting process earlier. Uploaded the correct set of files for this change now. Please take a look. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D152

[PATCH] D152206: [Basic] Support 64-bit x86 target for UEFI

2023-09-22 Thread Petr Hosek via Phabricator via cfe-commits
phosek accepted this revision. phosek added a comment. This revision is now accepted and ready to land. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D152206/new/ https://reviews.llvm.org/D152206 ___

[clang] [flang][Driver] Support -rpath, -shared, and -static in the frontend (PR #66702)

2023-09-22 Thread Andrzej Warzyński via cfe-commits
banach-space wrote: > Thanks @MaskRay and @banach-space for taking a look at this. I have marked > the test as unsupported on windows because of a failing buildkite. I don't > have access to a Windows machine so I can't add an equivalent test for that > platform. Thanks for working for this!

[PATCH] D159541: [UEFI] X86_64 UEFI Clang Driver

2023-09-22 Thread Prabhu Karthikeyan Rajasekaran via Phabricator via cfe-commits
Prabhuk updated this revision to Diff 557227. Prabhuk added a comment. Addressed review comments about the inline comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D159541/new/ https://reviews.llvm.org/D159541 Files: clang/lib/Basic/Targets

[libunwind] 058222b - [libunwind][WebAssembly] Support Wasm EH

2023-09-22 Thread Heejin Ahn via cfe-commits
Author: Heejin Ahn Date: 2023-09-22T00:35:37-07:00 New Revision: 058222b2316615194c089f2bc68d11341f39d26e URL: https://github.com/llvm/llvm-project/commit/058222b2316615194c089f2bc68d11341f39d26e DIFF: https://github.com/llvm/llvm-project/commit/058222b2316615194c089f2bc68d11341f39d26e.diff LO

[clang] [flang][Driver] Support -rpath, -shared, and -static in the frontend (PR #66702)

2023-09-22 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space requested changes to this pull request. Please re-enable the tests in linker-flags.f90. If these options don't work on Windows then we should try to document it. Also, tests for `-rpath` can be moved to a dedicated file if we need to disable them on a particula

[clang] 73779bb - [clang] Enable descriptions for --print-supported-extensions (#66715)

2023-09-22 Thread via cfe-commits
Author: Balint Cristian Date: 2023-09-22T08:43:17+01:00 New Revision: 73779bb2093310bf129017f2f504ec93b1ca4a1d URL: https://github.com/llvm/llvm-project/commit/73779bb2093310bf129017f2f504ec93b1ca4a1d DIFF: https://github.com/llvm/llvm-project/commit/73779bb2093310bf129017f2f504ec93b1ca4a1d.dif

[clang] [clang] Enable descriptions for --print-supported-extensions (PR #66715)

2023-09-22 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/66715 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D155572: [clang][Interp] Start implementing binary operators for complex types

2023-09-22 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added a comment. Ping CHANGES SINCE LAST ACTION https://reviews.llvm.org/D155572/new/ https://reviews.llvm.org/D155572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Enable descriptions for --print-supported-extensions (PR #66715)

2023-09-22 Thread David Spickett via cfe-commits
DavidSpickett wrote: If you are doing more contributions you can get commit access by doing https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access. Though with the switch to Github it's super easy to ask the reviewer to click the merge button, so it's not required. https://github.

[clang] Extend `retcon.once` coroutines lowering to optionally produce a normal result (PR #66333)

2023-09-22 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl resolved https://github.com/llvm/llvm-project/pull/66333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D159351: [Sema] Change order of displayed overloads in diagnostics

2023-09-22 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. @cor3ntin any suggestions on how to proceed here? I hope the approach taken in the current patch should already provide meaningful and improved results in most cases. It only affects the diagnostics output, so changing or reverting it should be relatively easy in

[clang-tools-extra] [clangd] Allow --query-driver to match a dot-normalized form of the path (PR #66757)

2023-09-22 Thread Sam McCall via cfe-commits
sam-mccall wrote: Thanks! This will fix the double-slash issue (despite the name, `add_dots` normalizes those). symlinks and progra~1 mean normalization based on actual filesystem access, and choosing between multiple forms that are in some sense equally valid. I don't think I'm opposed if so

[clang-tools-extra] 01d3045 - [clangd] Allow --query-driver to match a dot-normalized form of the path (#66757)

2023-09-22 Thread via cfe-commits
Author: Sam McCall Date: 2023-09-22T11:09:18+02:00 New Revision: 01d3045d1261c72abcf9cc1071be87434cf7086d URL: https://github.com/llvm/llvm-project/commit/01d3045d1261c72abcf9cc1071be87434cf7086d DIFF: https://github.com/llvm/llvm-project/commit/01d3045d1261c72abcf9cc1071be87434cf7086d.diff LO

[clang] docs: Fix misplaced apostrophe (PR #67103)

2023-09-22 Thread via cfe-commits
https://github.com/Alcaro created https://github.com/llvm/llvm-project/pull/67103 None >From 59f00d06056ff88acf014c339d64ac3c3ec85466 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Fri, 22 Sep 2023 11:08:56 +0200 Subject: [PATCH] docs: Fix misplaced apostrophe --- clang/include/clang/Basic/Attr

[clang-tools-extra] [clangd] Allow --query-driver to match a dot-normalized form of the path (PR #66757)

2023-09-22 Thread Sam McCall via cfe-commits
https://github.com/sam-mccall closed https://github.com/llvm/llvm-project/pull/66757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Do less redundant work computing affecting module maps (PR #66933)

2023-09-22 Thread Sam McCall via cfe-commits
https://github.com/sam-mccall closed https://github.com/llvm/llvm-project/pull/66933 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0f05096 - [Serialization] Do less redundant work computing affecting module maps (#66933)

2023-09-22 Thread via cfe-commits
Author: Sam McCall Date: 2023-09-22T11:23:11+02:00 New Revision: 0f05096540bc90125df47983d7013dd440617055 URL: https://github.com/llvm/llvm-project/commit/0f05096540bc90125df47983d7013dd440617055 DIFF: https://github.com/llvm/llvm-project/commit/0f05096540bc90125df47983d7013dd440617055.diff LO

[clang] b2bbf69 - [clang][Sema][NFC] _or_null -> _if_present

2023-09-22 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-09-22T11:23:18+02:00 New Revision: b2bbf6947cae64934ff35a6a467bad34c1096155 URL: https://github.com/llvm/llvm-project/commit/b2bbf6947cae64934ff35a6a467bad34c1096155 DIFF: https://github.com/llvm/llvm-project/commit/b2bbf6947cae64934ff35a6a467bad34c1096155.diff LO

[clang] 3f78d6a - [dataflow] Parse formulas from text (#66424)

2023-09-22 Thread via cfe-commits
Author: Sam McCall Date: 2023-09-22T11:24:24+02:00 New Revision: 3f78d6ab146874d20144f9f5fcbb894931279c7d URL: https://github.com/llvm/llvm-project/commit/3f78d6ab146874d20144f9f5fcbb894931279c7d DIFF: https://github.com/llvm/llvm-project/commit/3f78d6ab146874d20144f9f5fcbb894931279c7d.diff LO

[clang] [dataflow] Parse formulas from text (PR #66424)

2023-09-22 Thread Sam McCall via cfe-commits
https://github.com/sam-mccall closed https://github.com/llvm/llvm-project/pull/66424 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [include-cleaner] Respect the UsingShadowDecl when find headers for ambiguous std symbols. (PR #66485)

2023-09-22 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet edited https://github.com/llvm/llvm-project/pull/66485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [include-cleaner] Respect the UsingShadowDecl when find headers for ambiguous std symbols. (PR #66485)

2023-09-22 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. thanks, lgtm! https://github.com/llvm/llvm-project/pull/66485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [include-cleaner] Respect the UsingShadowDecl when find headers for ambiguous std symbols. (PR #66485)

2023-09-22 Thread kadir çetinkaya via cfe-commits
@@ -587,6 +588,36 @@ TEST_F(HeadersForSymbolTest, AmbiguousStdSymbols) { } } +TEST_F(HeadersForSymbolTest, AmbiguousStdSymbolsUsingShadow) { kadircet wrote: might be easier to test this in AnalysisTest, rather than writing a new ASTVisitor, but up to you.

[clang] [Driver] Link Flang runtime on Solaris (PR #65644)

2023-09-22 Thread Rainer Orth via cfe-commits
rorth wrote: The different behaviour can easily be seen since Solaris `clang` supports linker selection at compile time: ``` $ clang -r -o hello-r.o hello.o -fuse-ld=gld /usr/gnu/bin/ld: warning: cannot find entry symbol _start; not setting start address $ clang -r -o hello-r.o hello.o ld: fata

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperand for inline asm (PR #67018)

2023-09-22 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD edited https://github.com/llvm/llvm-project/pull/67018 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperands for inline asm (PR #67018)

2023-09-22 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD edited https://github.com/llvm/llvm-project/pull/67018 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperands for inline asm (PR #67018)

2023-09-22 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD edited https://github.com/llvm/llvm-project/pull/67018 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperands for inline asm (PR #67109)

2023-09-22 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD created https://github.com/llvm/llvm-project/pull/67109 This PR is based on #67018. This PR fixes compilation issue for RVV tuple types as InputOperands for inline asm. --- Currently the compiler generates https://godbolt.org/z/djebPfqxf for tuple type as inline asm i

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperands for inline asm (PR #67109)

2023-09-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes This PR is based on #67018. This PR fixes compilation issue for RVV tuple types as InputOperands for inline asm. --- Currently the compiler generates https://godbolt.org/z/djebPfqxf for tuple type as inline asm inputs and cannot be code

[clang] 10217b9 - docs: Fix misplaced apostrophe (#67103)

2023-09-22 Thread via cfe-commits
Author: Alcaro Date: 2023-09-22T11:58:32+02:00 New Revision: 10217b9d9b4814eb086cffd7f008cb72967cd739 URL: https://github.com/llvm/llvm-project/commit/10217b9d9b4814eb086cffd7f008cb72967cd739 DIFF: https://github.com/llvm/llvm-project/commit/10217b9d9b4814eb086cffd7f008cb72967cd739.diff LOG: d

[clang] docs: Fix misplaced apostrophe (PR #67103)

2023-09-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/67103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NVPTX] Add support for maxclusterrank in launch_bounds (PR #66496)

2023-09-22 Thread Jakub Chlanda via cfe-commits
https://github.com/jchlanda resolved https://github.com/llvm/llvm-project/pull/66496 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NVPTX] Add support for maxclusterrank in launch_bounds (PR #66496)

2023-09-22 Thread Jakub Chlanda via cfe-commits
https://github.com/jchlanda updated https://github.com/llvm/llvm-project/pull/66496 >From 9c8caed3c8def15ccdbfdf831f36d0befed1fc84 Mon Sep 17 00:00:00 2001 From: Jakub Chlanda Date: Fri, 15 Sep 2023 12:08:04 +0100 Subject: [PATCH 1/4] [NVPTX] Add support for maxclusterrank in launch_bounds Sin

[clang] [Driver] Fix detection of libc++ with empty sysroot. (PR #66947)

2023-09-22 Thread Sam McCall via cfe-commits
https://github.com/sam-mccall updated https://github.com/llvm/llvm-project/pull/66947 >From 00ef242c40dd453157ee3b31e367fd6240d68a5a Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Wed, 20 Sep 2023 21:19:03 +0200 Subject: [PATCH 1/2] [Driver] Fix detection of libc++ with empty sysroot. b1e3cd1

[clang] [Driver] Fix detection of libc++ with empty sysroot. (PR #66947)

2023-09-22 Thread Sam McCall via cfe-commits
sam-mccall wrote: > I just meant to change [...] It's a local fix, but all the code here is > pretty inconsistent anyway, so I don't feel too bad about it. Oops, of course. Done & I worked out the testing. https://github.com/llvm/llvm-project/pull/66947

[clang] [NVPTX] Add support for maxclusterrank in launch_bounds (PR #66496)

2023-09-22 Thread Jakub Chlanda via cfe-commits
@@ -5607,6 +5607,21 @@ bool Sema::CheckRegparmAttr(const ParsedAttr &AL, unsigned &numParams) { return false; } +// Helper to get CudaArch. +static CudaArch getCudaArch(const TargetInfo &TI) { jchlanda wrote: Is that the kind of thing you had in mind: ```d

[clang] [NVPTX] Add support for maxclusterrank in launch_bounds (PR #66496)

2023-09-22 Thread Jakub Chlanda via cfe-commits
@@ -11836,6 +11836,10 @@ def err_sycl_special_type_num_init_method : Error< "types with 'sycl_special_class' attribute must have one and only one '__init' " "method defined">; +def warn_cuda_maxclusterrank_sm_90 : Warning< + "maxclusterrank requires sm_90 or higher, CUDA

[clang] [NVPTX] Add support for maxclusterrank in launch_bounds (PR #66496)

2023-09-22 Thread Jakub Chlanda via cfe-commits
@@ -537,59 +537,46 @@ void NVPTXAsmPrinter::emitKernelFunctionDirectives(const Function &F, raw_ostream &O) const { // If the NVVM IR has some of reqntid* specified, then output // the reqntid directive, and set the unspec

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperands for inline asm (PR #67109)

2023-09-22 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD edited https://github.com/llvm/llvm-project/pull/67109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Add std::variant checker (PR #66481)

2023-09-22 Thread Gábor Spaits via cfe-commits
https://github.com/spaits updated https://github.com/llvm/llvm-project/pull/66481 From ce62d3e1924b497b3e7160579a87557119c9e35d Mon Sep 17 00:00:00 2001 From: Gabor Spaits Date: Fri, 15 Sep 2023 10:21:30 +0200 Subject: [PATCH] [analyzer] Add std::variant checker Adding a checker that checks fo

[clang] Introduce paged vector (PR #66430)

2023-09-22 Thread Giulio Eulisse via cfe-commits
https://github.com/ktf updated https://github.com/llvm/llvm-project/pull/66430 >From dd75b18a8497381f478a85f1bf7b622583c5ca29 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+...@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:58:21 +0200 Subject: [PATCH] Introduce PagedVector class The

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperands for inline asm (PR #67018)

2023-09-22 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD updated https://github.com/llvm/llvm-project/pull/67018 >From dc77e5c7bca87badecc314b24cab4c10be0e02fa Mon Sep 17 00:00:00 2001 From: eopXD Date: Thu, 21 Sep 2023 06:34:57 -0700 Subject: [PATCH] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperand for inline

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperands for inline asm (PR #67109)

2023-09-22 Thread Yueh-Ting Chen via cfe-commits
https://github.com/eopXD updated https://github.com/llvm/llvm-project/pull/67109 >From dc77e5c7bca87badecc314b24cab4c10be0e02fa Mon Sep 17 00:00:00 2001 From: eopXD Date: Thu, 21 Sep 2023 06:34:57 -0700 Subject: [PATCH 1/3] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperand for in

[clang] [NVPTX] Add support for maxclusterrank in launch_bounds (PR #66496)

2023-09-22 Thread Jakub Chlanda via cfe-commits
https://github.com/jchlanda updated https://github.com/llvm/llvm-project/pull/66496 >From 9c8caed3c8def15ccdbfdf831f36d0befed1fc84 Mon Sep 17 00:00:00 2001 From: Jakub Chlanda Date: Fri, 15 Sep 2023 12:08:04 +0100 Subject: [PATCH 1/5] [NVPTX] Add support for maxclusterrank in launch_bounds Sin

[clang] [NVPTX] Add support for maxclusterrank in launch_bounds (PR #66496)

2023-09-22 Thread Jakub Chlanda via cfe-commits
@@ -12,7 +12,7 @@ __launch_bounds__(0x1) void TestWayTooBigArg(void); // expected- __launch_bounds__(-128, 7) void TestNegArg1(void); // expected-warning {{'launch_bounds' attribute parameter 0 is negative and will be ignored}} __launch_bounds__(128, -7) void T

[clang] [NVPTX] Add support for maxclusterrank in launch_bounds (PR #66496)

2023-09-22 Thread Jakub Chlanda via cfe-commits
@@ -0,0 +1,45 @@ +// RUN: %clang_cc1 -std=c++11 -fsyntax-only -triple nvptx-unknown-unknown -target-cpu sm_90 -verify %s + +#include "Inputs/cuda.h" + +__launch_bounds__(128, 7) void Test2Args(void); +__launch_bounds__(128) void Test1Arg(void); + +__launch_bounds__(0x) v

[clang] [RISCV] Support floating point VCIX (PR #67094)

2023-09-22 Thread Kito Cheng via cfe-commits
@@ -2441,11 +2441,11 @@ define void @test_sf_vc_fvv_se_e16mf4( %vd, ; CHECK-NEXT:sf.vc.fvv 1, v8, v9, fa0 ; CHECK-NEXT:ret entry: - tail call void @llvm.riscv.sf.vc.fvv.se.iXLen.nxv1i16.f16.iXLen(iXLen 1, %vd, %vs2, half %fs1, iXLen %vl) + tail call void @llvm.ris

[clang] [RISCV] Support floating point VCIX (PR #67094)

2023-09-22 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng commented: The target is support LLVM IR part only, we would like to prevent expose that on the C intrinsic level if possible, because that's intentionally to expose vector with unsigned integer only. https://github.com/llvm/llvm-project/pull/67094 ___

[clang] [RISCV] Support floating point VCIX (PR #67094)

2023-09-22 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng edited https://github.com/llvm/llvm-project/pull/67094 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Move checker alpha.unix.StdCLibraryFunctions out of alpha. (PR #66207)

2023-09-22 Thread via cfe-commits
DonatNagyE wrote: I tested this commit on several open-source projects, comparing it and its parent with a configuration that enables the non-alpha checkers (so StdCLibraryFunctions becomes enabled when this commit moves it out of alpha). The results show that this checker doesn't produce rand

[clang] [clang][analyzer] Move checker alpha.unix.StdCLibraryFunctions out of alpha. (PR #66207)

2023-09-22 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. Based on these clean test results I'd say that it's safe to move this checker out of alpha. @haoNoQ @steakhal Do you have any objections? https://github.com/llvm/llvm-project/pull/66207 ___ cf

[clang] [clang-format] Don't split "DPI"/"DPI-C" in Verilog imports (PR #66951)

2023-09-22 Thread via cfe-commits
@@ -2270,7 +2270,18 @@ ContinuationIndenter::createBreakableToken(const FormatToken &Current, if (State.Stack.back().IsInsideObjCArrayLiteral) return nullptr; +// The "DPI"/"DPI-C" in SystemVerilog direct programming interface imports +// cannot be split, e.

[clang] [clang] Implement constexpr bit_cast for vectors (PR #66894)

2023-09-22 Thread via cfe-commits
@@ -463,3 +463,38 @@ static_assert(bit_cast(ld539) == fivehundredandthirtynine, ""); static_assert(round_trip<__int128_t>(34.0L)); #endif } + +namespace test_vector { + +typedef unsigned uint2 __attribute__((vector_size(2 * sizeof(unsigned; +typedef char byte8 __attribute_

[clang] [clang] Implement constexpr bit_cast for vectors (PR #66894)

2023-09-22 Thread via cfe-commits
https://github.com/DaMatrix edited https://github.com/llvm/llvm-project/pull/66894 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D156890: [clang] Remove outdated INSTALL.txt

2023-09-22 Thread Stephan Lachnit via Phabricator via cfe-commits
stephanlachnit added a comment. In D156890#4649226 , @cor3ntin wrote: > @stephanlachnit do you need me to land this on your behalf? What email should > we use? Yes, please! You can use stephanlach...@debian.org Repository: rG LLVM Github Monorepo C

[clang] [clang] Implement constexpr bit_cast for vectors (PR #66894)

2023-09-22 Thread via cfe-commits
@@ -7095,6 +7096,40 @@ class APValueToBufferConverter { return true; } + bool visitVector(const APValue &Val, QualType Ty, CharUnits Offset) { +const auto *VT = Ty->castAs(); +unsigned VectorLength = Val.getVectorLength(); + +if (VT->isExtVectorBoolType()) {

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-09-22 Thread via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: cor3ntin wrote: I have concerns about Lexing twice every single file for which we display a warning. Did you try something along the lines of wh

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-09-22 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: tbaederr wrote: > I have concerns about Lexing twice every single file for which we display a > warning. Sure. Because of performance, memory us

[clang] [Driver] Fix detection of libc++ with empty sysroot. (PR #66947)

2023-09-22 Thread Sam McCall via cfe-commits
https://github.com/sam-mccall updated https://github.com/llvm/llvm-project/pull/66947 >From 00ef242c40dd453157ee3b31e367fd6240d68a5a Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Wed, 20 Sep 2023 21:19:03 +0200 Subject: [PATCH 1/3] [Driver] Fix detection of libc++ with empty sysroot. b1e3cd1

[clang-tools-extra] [mlir] Implement DestinationStyleOpInterface for scf::ForallOp (PR #66981)

2023-09-22 Thread Felix Schneider via cfe-commits
https://github.com/ubfx updated https://github.com/llvm/llvm-project/pull/66981 >From a84378d0f4e67cd7f68a27c87e12939fa40b65b4 Mon Sep 17 00:00:00 2001 From: Felix Schneider Date: Thu, 21 Sep 2023 06:13:57 + Subject: [PATCH 1/3] [mlir] Implement DestinationStyleOpInterface for scf::ForallOp

[clang] [mlir] Implement DestinationStyleOpInterface for scf::ForallOp (PR #66981)

2023-09-22 Thread Felix Schneider via cfe-commits
https://github.com/ubfx updated https://github.com/llvm/llvm-project/pull/66981 >From a84378d0f4e67cd7f68a27c87e12939fa40b65b4 Mon Sep 17 00:00:00 2001 From: Felix Schneider Date: Thu, 21 Sep 2023 06:13:57 + Subject: [PATCH 1/3] [mlir] Implement DestinationStyleOpInterface for scf::ForallOp

[PATCH] D35780: Introduce -nostdlib++ flag to disable linking the C++ standard library.

2023-09-22 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Herald added subscribers: pmatos, asb, abrachet. Herald added a project: All. Also useful for random other projects on github: https://github.com/mapbox/mason/pull/545#issuecomment-367082479 GCC also added support for this flag: https://github.com/gcc-mirror/gcc/commit/f

[clang] [AMDGPU] Remove Code Object V3 (PR #67118)

2023-09-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes V3 has been deprecated for a while as well, so it can safely be removed like V2 was removed. - [Clang] Set minimum code object version to 4 - [lld] Fix tests using code object v3 - Remove code object V3 from the AMDGPU backend, and delete

[clang] [AMDGPU] Remove Code Object V3 (PR #67118)

2023-09-22 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 22e2b805ef3c4caa971fad3656976b6e0017aff3 73934bfbd4231a5abfaad9690977af323be7e9ba --

[clang-tools-extra] [include-cleaner] Respect the UsingShadowDecl when find headers for ambiguous std symbols. (PR #66485)

2023-09-22 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/66485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 7b3db80 - [include-cleaner] Respect the UsingShadowDecl when find headers for ambiguous std symbols. (#66485)

2023-09-22 Thread via cfe-commits
Author: Haojian Wu Date: 2023-09-22T14:35:00+02:00 New Revision: 7b3db8079d0a736c07db30388cdedf608f4ed58f URL: https://github.com/llvm/llvm-project/commit/7b3db8079d0a736c07db30388cdedf608f4ed58f DIFF: https://github.com/llvm/llvm-project/commit/7b3db8079d0a736c07db30388cdedf608f4ed58f.diff LO

[clang] [cmake] Add LLVM_FORCE_VC_REVISION option (PR #67125)

2023-09-22 Thread David Truby via cfe-commits
https://github.com/DavidTruby created https://github.com/llvm/llvm-project/pull/67125 This patch adds a LLVM_FORCE_VC_REVISION option to force a custom VC revision to be included instead of trying to fetch one from a git command. This is helpful in environments where git is not available or is n

[clang] [cmake] Add LLVM_FORCE_VC_REVISION option (PR #67125)

2023-09-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes This patch adds a LLVM_FORCE_VC_REVISION option to force a custom VC revision to be included instead of trying to fetch one from a git command. This is helpful in environments where git is not available or is non-functional but the vc revisi

[clang-tools-extra] [clang-cl] Fix value of __FUNCTION__ and __FUNC__ in MSVC mode for c++. (PR #66120)

2023-09-22 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/66120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Fix value of __FUNCTION__ and __FUNC__ in MSVC mode for c++. (PR #66120)

2023-09-22 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/66120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 265568c - [clang-cl] Fix value of __FUNCTION__ and __FUNC__ in MSVC mode for c++. (#66120)

2023-09-22 Thread via cfe-commits
Author: Zahira Ammarguellat Date: 2023-09-22T08:45:53-04:00 New Revision: 265568c136f94b108790e9be73cd8071e714aad1 URL: https://github.com/llvm/llvm-project/commit/265568c136f94b108790e9be73cd8071e714aad1 DIFF: https://github.com/llvm/llvm-project/commit/265568c136f94b108790e9be73cd8071e714aad1

[clang] [clang-cl] Fix value of __FUNCTION__ and __FUNC__ in MSVC mode for c++. (PR #66120)

2023-09-22 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam closed https://github.com/llvm/llvm-project/pull/66120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-cl] Fix value of __FUNCTION__ and __FUNC__ in MSVC mode for c++. (PR #66120)

2023-09-22 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam closed https://github.com/llvm/llvm-project/pull/66120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D153156: [Clang] CWG1473: do not err on the lack of space after operator""

2023-09-22 Thread James Y Knight via Phabricator via cfe-commits
jyknight reopened this revision. jyknight added a comment. This revision is now accepted and ready to land. Reopening the review since it ended up reverted, but I do think we DO want to have at least some of the changes proposed here (and/or from the pending D158372

[clang] [cmake] Add LLVM_FORCE_VC_REVISION option (PR #67125)

2023-09-22 Thread Tobias Hieta via cfe-commits
https://github.com/tru commented: It looks fine to me, but maybe we should have an entry for it in the `CMake.rst` documentation since the other `LLVM_*_VC` options are documented. https://github.com/llvm/llvm-project/pull/67125 ___ cfe-commits mailin

[clang] [clang] Better bitfield access units (PR #65742)

2023-09-22 Thread Nathan Sidwell via cfe-commits
urnathan wrote: Ping? Anything more I can do to progress this? https://github.com/llvm/llvm-project/pull/65742 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Diagnose uninitialized bases (PR #67131)

2023-09-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/67131 None >From 0f52eec7bba4ecbd5df75d8a663f1c374771e283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 22 Sep 2023 15:09:14 +0200 Subject: [PATCH] [clang][Interp] Diagnose uninitialized bas

[clang] [Clang][CodeGen] Add __builtin_bcopy (PR #67130)

2023-09-22 Thread Carlos Eduardo Seo via cfe-commits
https://github.com/ceseo created https://github.com/llvm/llvm-project/pull/67130 Add __builtin_bcopy to the list of GNU builtins. This was causing a series of test failures in glibc. Adjust the tests to reflect the changes in codegen. Fixes #51409. Fixes #63065. >From af8c9b6d0757c109aa83a352

[clang] [Clang][CodeGen] Add __builtin_bcopy (PR #67130)

2023-09-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Changes Add __builtin_bcopy to the list of GNU builtins. This was causing a series of test failures in glibc. Adjust the tests to reflect the changes in codegen. Fixes #51409. Fixes #63065. --- Full diff: https://github.com/llvm/llvm-pro

[clang] [cmake] Add LLVM_FORCE_VC_REVISION option (PR #67125)

2023-09-22 Thread David Truby via cfe-commits
https://github.com/DavidTruby updated https://github.com/llvm/llvm-project/pull/67125 >From 0690521dd83e8fae81f65bce173ed7189ff9307b Mon Sep 17 00:00:00 2001 From: David Truby Date: Fri, 22 Sep 2023 12:22:49 + Subject: [PATCH 1/2] [cmake] Add LLVM_FORCE_VC_REVISION option This patch adds a

[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)

2023-09-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/67147 None >From 80013d2e1b70aed0f7e225fab72136b6b4599cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 22 Sep 2023 16:27:11 +0200 Subject: [PATCH] [clang][Interp] Handle CXXScalarValueInitE

[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)

2023-09-22 Thread Timm Baeder via cfe-commits
@@ -31,6 +31,13 @@ static_assert(b, ""); constexpr int one = true; static_assert(one == 1, ""); +constexpr bool b2 = bool(); +static_assert(!b2, ""); +constexpr int ScalarInitInt = int(); +static_assert(ScalarInitInt == 0, ""); +constexpr float ScalarInitFloat = float(); +stat

[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)

2023-09-22 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. Implementation looks simple/right enough. LGTM. https://github.com/llvm/llvm-project/pull/67147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] 36bd5bd - [dataflow] use true/false literals in formulas, rather than variables

2023-09-22 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2023-09-22T17:12:20+02:00 New Revision: 36bd5bd888f193b70abf43a09bb4fc04cd2a2ff1 URL: https://github.com/llvm/llvm-project/commit/36bd5bd888f193b70abf43a09bb4fc04cd2a2ff1 DIFF: https://github.com/llvm/llvm-project/commit/36bd5bd888f193b70abf43a09bb4fc04cd2a2ff1.diff LO

[PATCH] D153485: [dataflow] use true/false literals in formulas, rather than variables

2023-09-22 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG36bd5bd888f1: [dataflow] use true/false literals in formulas, rather than variables (authored by sammccall). Changed prior to commit: https://reviews.llvm.org/D153485?vs=537304&id=557245#toc Repository

[clang] [clang-format] Disable OuterScope lambda indentation behaviour for constructor initializers (PR #66755)

2023-09-22 Thread Jon Phillips via cfe-commits
https://github.com/jp4a50 updated https://github.com/llvm/llvm-project/pull/66755 >From e07d263a37ef37a21bb5cf424b14be83088eed3d Mon Sep 17 00:00:00 2001 From: Jon Phillips Date: Tue, 19 Sep 2023 10:29:57 +0100 Subject: [PATCH 1/2] [clang-format] Disable OuterScope lambda indentation behaviour

[clang] [clang-format] Disable OuterScope lambda indentation behaviour for constructor initializers (PR #66755)

2023-09-22 Thread Jon Phillips via cfe-commits
@@ -22537,10 +22537,12 @@ TEST_F(FormatTest, FormatsLambdas) { " }\n" "}", Style); - verifyFormat("std::sort(v.begin(), v.end(),\n" - " [](const auto &foo, const auto &bar) {\n" - " return foo.

[clang] [analyzer] Move alpha checker EnumCastOutOfRange to optin (PR #67157)

2023-09-22 Thread via cfe-commits
https://github.com/DonatNagyE created https://github.com/llvm/llvm-project/pull/67157 The checker EnumCastOutOfRange verifies the (helpful, but not standard-mandated) design rule that integer to enum casts should not produce values that don't have a corresponding enumerator. As it was improved

[clang] [analyzer] Move alpha checker EnumCastOutOfRange to optin (PR #67157)

2023-09-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes The checker EnumCastOutOfRange verifies the (helpful, but not standard-mandated) design rule that integer to enum casts should not produce values that don't have a corresponding enumerator. As it was improved and cleaned up by recent chan

[clang] [clang][Sema] Stop format size estimator upon %p to adapt to linux kernel's extension (PR #65969)

2023-09-22 Thread Nick Desaulniers via cfe-commits
nickdesaulniers wrote: ping @hazohelet . This should be good to land and should help clear some red in our CI for Linux kernel builds. https://github.com/llvm/llvm-project/pull/65969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [Driver] Fix detection of libc++ with empty sysroot. (PR #66947)

2023-09-22 Thread Shoaib Meenai via cfe-commits
@@ -316,6 +318,52 @@ TEST(ToolChainTest, VFSSolarisMultiGCCInstallation) { } } +MATCHER_P(jobHasArgs, Substr, "") { + const driver::Command &C = arg; + std::string Args = ""; + llvm::ListSeparator Sep(" "); + for (const char *Arg : C.getArguments()) { +Args += Sep; +

[clang] [Driver] Fix detection of libc++ with empty sysroot. (PR #66947)

2023-09-22 Thread Shoaib Meenai via cfe-commits
smeenai wrote: LGTM, thanks! https://github.com/llvm/llvm-project/pull/66947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   >