[clang] [llvm] [HLSL] Implement elementwise firstbitlow builtin (PR #116858)

2024-12-12 Thread Sarah Spall via cfe-commits
@@ -3166,109 +3171,228 @@ bool SPIRVInstructionSelector::selectFirstBitHigh32(Register ResVReg, .constrainAllUses(TII, TRI, RBI); } -bool SPIRVInstructionSelector::selectFirstBitHigh64(Register ResVReg, -const SPIRVTyp

[clang] [llvm] [HLSL] Implement elementwise firstbitlow builtin (PR #116858)

2024-12-12 Thread Sarah Spall via cfe-commits
@@ -96,15 +96,20 @@ class SPIRVInstructionSelector : public InstructionSelector { bool selectFirstBitHigh(Register ResVReg, const SPIRVType *ResType, MachineInstr &I, bool IsSigned) const; - bool selectFirstBitHigh16(Register ResVReg, const SPIRVT

[clang] [llvm] [HLSL] Implement elementwise firstbitlow builtin (PR #116858)

2024-12-12 Thread Sarah Spall via cfe-commits
@@ -3166,109 +3171,228 @@ bool SPIRVInstructionSelector::selectFirstBitHigh32(Register ResVReg, .constrainAllUses(TII, TRI, RBI); } -bool SPIRVInstructionSelector::selectFirstBitHigh64(Register ResVReg, -const SPIRVTyp

[clang] [llvm] [HLSL] Implement elementwise firstbitlow builtin (PR #116858)

2024-12-12 Thread Sarah Spall via cfe-commits
@@ -3166,109 +3171,228 @@ bool SPIRVInstructionSelector::selectFirstBitHigh32(Register ResVReg, .constrainAllUses(TII, TRI, RBI); } -bool SPIRVInstructionSelector::selectFirstBitHigh64(Register ResVReg, -const SPIRVTyp

[clang] [llvm] [HLSL] Implement elementwise firstbitlow builtin (PR #116858)

2024-12-12 Thread Sarah Spall via cfe-commits
https://github.com/spall edited https://github.com/llvm/llvm-project/pull/116858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement elementwise firstbitlow builtin (PR #116858)

2024-12-12 Thread Sarah Spall via cfe-commits
https://github.com/spall edited https://github.com/llvm/llvm-project/pull/116858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement elementwise firstbitlow builtin (PR #116858)

2024-12-12 Thread Sarah Spall via cfe-commits
spall wrote: I'd also update your description to mention fixing the vector > size 2 bug in FirstBitHigh as well, by making this code general purpose for both firstbitlow and firstbithigh. https://github.com/llvm/llvm-project/pull/116858 ___ cfe-commi

[clang] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/119643 >From cbcdcd37ec82e7bbb5fdd1cf83b093778d4fcf9f Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Wed, 11 Dec 2024 17:02:02 -0800 Subject: [PATCH 1/2] add concepts for raw buffers --- clang/lib/Sema/HLSLExte

[clang-tools-extra] [clangd] Index reserved symbols from `*intrin.h` system headers (PR #119735)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clangd Author: Joseph Huber (jhuber6) Changes Summary: `clangd` intentionally suppresses indexing symbols from system headers as these are likely implementation details the user does not want. Howver, there are plen

[clang-tools-extra] [clangd] Index reserved symbols from `*intrin.h` system headers (PR #119735)

2024-12-12 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/119735 Summary: `clangd` intentionally suppresses indexing symbols from system headers as these are likely implementation details the user does not want. Howver, there are plenty of system headers that provide extension

[clang] [llvm] [clang][modules] Separate parsing of modulemaps (PR #119740)

2024-12-12 Thread Michael Spencer via cfe-commits
@@ -2596,6 +2596,15 @@ template using has_sizeof = decltype(sizeof(T)); template constexpr bool is_incomplete_v = !is_detected::value; +//===--===// +// Extra additions to +//===---

[clang] [llvm] [clang][modules] Separate parsing of modulemaps (PR #119740)

2024-12-12 Thread Jakub Kuderski via cfe-commits
@@ -2596,6 +2596,15 @@ template using has_sizeof = decltype(sizeof(T)); template constexpr bool is_incomplete_v = !is_detected::value; +//===--===// +// Extra additions to +//===---

[clang] [llvm] [rtsan][llvm] Remove functional pass, only support module pass (PR #119739)

2024-12-12 Thread Chris Apple via cfe-commits
https://github.com/cjappl created https://github.com/llvm/llvm-project/pull/119739 As suggested by @vitalybuka on #118989 Most of the other sanitizers are now only module level passes. This moves all functionality into the module pass, and removes the function pass. >From c19f2f7da960a81e2c8

[clang] [llvm] [rtsan][llvm] Remove functional pass, only support module pass (PR #119739)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Chris Apple (cjappl) Changes As suggested by @vitalybuka on #118989 Most of the other sanitizers are now only module level passes. This moves all functionality into the module pass, and removes the function pass. --- Full diff:

[clang] [llvm] [rtsan][llvm] Remove functional pass, only support module pass (PR #119739)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chris Apple (cjappl) Changes As suggested by @vitalybuka on #118989 Most of the other sanitizers are now only module level passes. This moves all functionality into the module pass, and removes the function pass. --- Full diff: https://

[clang] [llvm] [clang][modules] Separate parsing of modulemaps (PR #119740)

2024-12-12 Thread Jakub Kuderski via cfe-commits
@@ -2596,6 +2596,15 @@ template using has_sizeof = decltype(sizeof(T)); template constexpr bool is_incomplete_v = !is_detected::value; +//===--===// +// Extra additions to +//===---

[clang] [llvm] [clang][modules] Separate parsing of modulemaps (PR #119740)

2024-12-12 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar requested changes to this pull request. https://github.com/llvm/llvm-project/pull/119740 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Handle __builtin_memcmp (PR #119544)

2024-12-12 Thread Aaron Puchert via cfe-commits
aaronpuchert wrote: Check out https://lab.llvm.org/buildbot/#/builders/13/builds/4041: ``` RUN: at line 1: /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/clang -cc1 -internal-isystem /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/lib/clan

[clang] [llvm] [clang][modules] Separate parsing of modulemaps (PR #119740)

2024-12-12 Thread Michael Spencer via cfe-commits
@@ -2596,6 +2596,15 @@ template using has_sizeof = decltype(sizeof(T)); template constexpr bool is_incomplete_v = !is_detected::value; +//===--===// +// Extra additions to +//===---

[clang] [llvm] [clang][modules] Separate parsing of modulemaps (PR #119740)

2024-12-12 Thread Jakub Kuderski via cfe-commits
@@ -2596,6 +2596,15 @@ template using has_sizeof = decltype(sizeof(T)); template constexpr bool is_incomplete_v = !is_detected::value; +//===--===// +// Extra additions to +//===---

[clang] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mingming Liu (mingmingl-llvm) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/119791.diff 1 Files Affected: - (modified) clang/docs/LanguageExtensions.rst (+1-1) ``diff diff --git a/clang/docs/LanguageExtens

[clang] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread Mingming Liu via cfe-commits
https://github.com/mingmingl-llvm created https://github.com/llvm/llvm-project/pull/119791 None >From a996d55a1876e53f42978a6ff32fda86c3b062fe Mon Sep 17 00:00:00 2001 From: mingmingl Date: Thu, 12 Dec 2024 16:11:30 -0800 Subject: [PATCH] [docs]Fix a typo around '#pragma clang section' --- c

[clang] [HLSL] Add RWBuffer::Load(Index) (PR #117018)

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

[clang] d01c11d - [clang] Migrate away from PointerUnion::{is,get} (NFC) (#119724)

2024-12-12 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-12-12T16:03:20-08:00 New Revision: d01c11df04ae45a3d5b08e69bb683c760bbddd54 URL: https://github.com/llvm/llvm-project/commit/d01c11df04ae45a3d5b08e69bb683c760bbddd54 DIFF: https://github.com/llvm/llvm-project/commit/d01c11df04ae45a3d5b08e69bb683c760bbddd54.diff L

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119724)

2024-12-12 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/119724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][perf-training] Fix profiling with -DCLANG_BOLT=perf (PR #119117)

2024-12-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/11269 Here is th

[clang] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread Snehasish Kumar via cfe-commits
https://github.com/snehasish approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/119791 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Justin Bogner via cfe-commits
bogner wrote: This should really be talking about concepts for structured buffers, not raw buffers. At the HLSL language level, there is nothing called a RawBuffer - there is ByteAddressBuffer and various kinds of StructuredBuffer, which are represented lower in the stack as a "raw" buffer. Gi

[clang] [clang-tools-extra] FunctionDecl::getFunctionTypeLoc: ignore function type attributes (PR #118420)

2024-12-12 Thread Robert Dazi via cfe-commits
https://github.com/v01dXYZ updated https://github.com/llvm/llvm-project/pull/118420 >From b6f013097c0003e37800ad13b420e50e3c84511b Mon Sep 17 00:00:00 2001 From: v01dxyz Date: Tue, 3 Dec 2024 04:52:33 +0100 Subject: [PATCH 1/7] FunctionDecl::getFunctionTypeLoc: ignore function type attributes

[clang] [HLSL] Codegen for `cbuffer` blocks without embedded arrays or structs (PR #119755)

2024-12-12 Thread Helena Kotas via cfe-commits
@@ -1,26 +0,0 @@ -// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \ -// RUN: dxil-pc-shadermodel6.3-library %s \ -// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s - -// CHECK: @[[CB:.+]] = external constant { float, double } -cbuffer A : register(b0, spa

[clang] [HLSL] Codegen for `cbuffer` blocks without embedded arrays or structs (PR #119755)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-clang Author: Helena Kotas (hekota) Changes Introduces translations of `cbuffer` to LLVM target type `target("dx.CBuffer", ...) `. At this point only `cbuffer`s containing scalars and vectors are supported as we are still work

[clang] [HLSL] Codegen for `cbuffer` blocks without embedded arrays or structs (PR #119755)

2024-12-12 Thread Helena Kotas via cfe-commits
https://github.com/hekota ready_for_review https://github.com/llvm/llvm-project/pull/119755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-12 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/119755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add --strip-trailing-cr to diff in docs_updated.test (PR #119666)

2024-12-12 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 approved this pull request. Is the cleanup just running `black`? Would be better committed separately in my opinion. Either way, LGTM for both the cleanup and the test change. https://github.com/llvm/llvm-project/pull/119666

[clang] [clang] Generate appropriate assume in presence of libc's memcpy (PR #119704)

2024-12-12 Thread Fangrui Song via cfe-commits
MaskRay wrote: > This is no longer the case after > [N3322](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3322.pdf). > > (Incidentally, I wrote a blog post about this yesterday: > [developers.redhat.com/articles/2024/12/11/making-memcpynull-null-0-well-defined](https://developers.redhat.co

[clang] [clang] Fix the post-filtering heuristic for GSLPointer. (PR #114044)

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

[clang] 33b910c - [clang] Fix the post-filtering heuristic for GSLPointer. (#114044)

2024-12-12 Thread via cfe-commits
Author: Haojian Wu Date: 2024-12-12T20:57:39+01:00 New Revision: 33b910cde3b305a49c98c6de88dbc22ced9dea61 URL: https://github.com/llvm/llvm-project/commit/33b910cde3b305a49c98c6de88dbc22ced9dea61 DIFF: https://github.com/llvm/llvm-project/commit/33b910cde3b305a49c98c6de88dbc22ced9dea61.diff LO

[clang-tools-extra] [NFC] Fixes for issues found by static analysis tool. (PR #119741)

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

[clang] [WebKit checkers] Recognize ensureFoo functions (PR #119681)

2024-12-12 Thread Ryosuke Niwa via cfe-commits
@@ -169,4 +173,42 @@ bool isConstOwnerPtrMemberExpr(const clang::Expr *E) { return isOwnerPtrType(T) && T.isConstQualified(); } +class EnsureFunctionVisitor +: public ConstStmtVisitor { +public: + bool VisitStmt(const Stmt *S) { +for (const Stmt *Child : S->children

[clang] [clang][perf-training] Fix profiling with -DCLANG_BOLT=perf (PR #119117)

2024-12-12 Thread Amir Ayupov via cfe-commits
@@ -20,9 +21,13 @@ elif clang_bolt_mode == "perf": else: assert 0, "Unsupported CLANG_BOLT_MODE variable" -config.clang = perf_wrapper + os.path.realpath( +clang_nowrapper = os.path.realpath( lit.util.which(clang_binary, config.clang_tools_dir) ).replace("\\", "/") +

[clang] 02bcaca - [docs]Fix a typo around '#pragma clang section' (#119791)

2024-12-12 Thread via cfe-commits
Author: Mingming Liu Date: 2024-12-12T19:43:25-08:00 New Revision: 02bcaca5995de283c85acfcca61a39baac315794 URL: https://github.com/llvm/llvm-project/commit/02bcaca5995de283c85acfcca61a39baac315794 DIFF: https://github.com/llvm/llvm-project/commit/02bcaca5995de283c85acfcca61a39baac315794.diff

[clang] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread Mingming Liu via cfe-commits
https://github.com/mingmingl-llvm closed https://github.com/llvm/llvm-project/pull/119791 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [rtsan][llvm] Remove function pass, only support module pass (PR #119739)

2024-12-12 Thread Chris Apple via cfe-commits
cjappl wrote: > > Remove functional pass > > > > function pass? Thanks, fixed https://github.com/llvm/llvm-project/pull/119739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [rtsan][llvm] Remove function pass, only support module pass (PR #119739)

2024-12-12 Thread Chris Apple via cfe-commits
https://github.com/cjappl edited https://github.com/llvm/llvm-project/pull/119739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Codegen for `cbuffer` blocks without embedded arrays or structs (PR #119755)

2024-12-12 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/119755 Introduces translations of `cbuffer` to LLVM target type `target("dx.CBuffer", ...) `. At this point only `cbuffer`s containing scalars and vectors are supported as we are still working on the target type design

[clang] afcb7d4 - [OpenACC] Implement 'wait' sema for data constructs

2024-12-12 Thread via cfe-commits
Author: erichkeane Date: 2024-12-12T12:16:20-08:00 New Revision: afcb7d4a2eab51977497e43ce6539d2b0ca01071 URL: https://github.com/llvm/llvm-project/commit/afcb7d4a2eab51977497e43ce6539d2b0ca01071 DIFF: https://github.com/llvm/llvm-project/commit/afcb7d4a2eab51977497e43ce6539d2b0ca01071.diff LO

[clang] [HLSL] Codegen for `cbuffer` blocks without embedded arrays or structs (PR #119755)

2024-12-12 Thread Helena Kotas via cfe-commits
@@ -164,18 +164,18 @@ Decl *SemaHLSL::ActOnStartBuffer(Scope *BufferScope, bool CBuffer, return Result; } -// Calculate the size of a legacy cbuffer type based on +// Calculate the size of a legacy cbuffer type in bytes based on hekota wrote: Cbuffer & pac

[clang] [WebKit checkers] Recognize ensureFoo functions (PR #119681)

2024-12-12 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/119681 >From 0982f5ca3f9d1ea713b1e34b6e6b9d08ff65e6f1 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Thu, 12 Dec 2024 01:31:42 -0800 Subject: [PATCH 1/3] [WebKit checkers] Recognize ensureFoo functions In WebKit, we

[clang] [clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (#116256) (PR #119719)

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

[clang] [clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (#116256) (PR #119719)

2024-12-12 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/119719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119724)

2024-12-12 Thread Nikita Popov via cfe-commits
@@ -486,10 +486,10 @@ enum class TemplateSubstitutionKind : char { const Decl *D = I->first; llvm::PointerUnion &Stored = newScope->LocalDecls[D]; -if (I->second.is()) { - Stored = I->second.get(); +if (isa(I->second)) { +

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

2024-12-12 Thread John McCall via cfe-commits
@@ -800,7 +800,9 @@ static ABIArgInfo classifyExpandedType(SwiftAggLowering &lowering, if (lowering.empty()) { return ABIArgInfo::getIgnore(); } else if (lowering.shouldPassIndirectly(forReturn)) { -return ABIArgInfo::getIndirect(alignmentForIndirect, /*byval*/ fal

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-12 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,11 @@ +// REQUIRES: asserts arsenm wrote: The test should not crash under any build. It does not matter what the symptoms are today https://github.com/llvm/llvm-project/pull/119246 ___ cfe-commits mailing l

[clang] [clang] Fix use of dangling ptr in CommandLineTest (PR #119798)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (macurtis-amd) Changes If 'GeneratedArgsStorage' ever grows, contained strings may get copied and data pointers stored in 'GeneratedArgs' may become invalid, pointing to deallocated memory. --- Full diff: https://github.com/llvm/llv

[clang] [clang] Fix use of dangling ptr in CommandLineTest (PR #119798)

2024-12-12 Thread via cfe-commits
https://github.com/macurtis-amd created https://github.com/llvm/llvm-project/pull/119798 If 'GeneratedArgsStorage' ever grows, contained strings may get copied and data pointers stored in 'GeneratedArgs' may become invalid, pointing to deallocated memory. >From 52bc1d826b7df0c9fbeb7d991e89990

[clang] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/119643 >From cbcdcd37ec82e7bbb5fdd1cf83b093778d4fcf9f Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Wed, 11 Dec 2024 17:02:02 -0800 Subject: [PATCH 1/4] add concepts for raw buffers --- clang/lib/Sema/HLSLExte

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-12 Thread Matt Arsenault via cfe-commits
arsenm wrote: > I mean, why do we have to watch for type mismatches and fix them instead of > creating the correct type in the first place? There is > `getPointerType(RetQT)` just above, shouldn't it be something like > `getPointerType(RetQT, )`? Or RetQT should have had > the correct address

[clang] [clang] Fix use of dangling ptr in CommandLineTest (PR #119798)

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

[clang] [llvm] True16 for v_alignbyte_b32 in MC (PR #119750)

2024-12-12 Thread Brox Chen via cfe-commits
https://github.com/broxigarchen updated https://github.com/llvm/llvm-project/pull/119750 >From 605578fbee47034a01869f42220dbd63631a5c87 Mon Sep 17 00:00:00 2001 From: guochen2 Date: Thu, 12 Dec 2024 13:33:14 -0500 Subject: [PATCH] True16 for v_alignbyte_b32 in MC --- clang/lib/CodeGen/CGBuilt

[clang] [llvm] [rtsan][llvm] Remove functional pass, only support module pass (PR #119739)

2024-12-12 Thread Florian Mayer via cfe-commits
fmayer wrote: > Remove functional pass function pass? https://github.com/llvm/llvm-project/pull/119739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][True16][MC] true16 for v_alignbyte_b32 (PR #119750)

2024-12-12 Thread Brox Chen via cfe-commits
https://github.com/broxigarchen edited https://github.com/llvm/llvm-project/pull/119750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][True16][MC] true16 for v_alignbyte_b32 (PR #119750)

2024-12-12 Thread Brox Chen via cfe-commits
https://github.com/broxigarchen updated https://github.com/llvm/llvm-project/pull/119750 >From c0feab212b954a47ad7541a5eceb149c478b3341 Mon Sep 17 00:00:00 2001 From: guochen2 Date: Thu, 12 Dec 2024 13:33:14 -0500 Subject: [PATCH] True16 for v_alignbyte_b32 in MC --- clang/lib/CodeGen/CGBuilt

[clang] [clang-tools-extra] FunctionDecl::getFunctionTypeLoc: ignore function type attributes (PR #118420)

2024-12-12 Thread Robert Dazi via cfe-commits
@@ -3876,8 +3876,17 @@ bool FunctionDecl::doesDeclarationForceExternallyVisibleDefinition() const { FunctionTypeLoc FunctionDecl::getFunctionTypeLoc() const { const TypeSourceInfo *TSI = getTypeSourceInfo(); - return TSI ? TSI->getTypeLoc().IgnoreParens().getAs() -

[clang] [llvm] [AMDGPU][True16][MC] true16 for v_alignbyte_b32 (PR #119750)

2024-12-12 Thread Brox Chen via cfe-commits
https://github.com/broxigarchen updated https://github.com/llvm/llvm-project/pull/119750 >From bddf957c544de2095ada423134eb8dc9fdfe2702 Mon Sep 17 00:00:00 2001 From: guochen2 Date: Thu, 12 Dec 2024 13:33:14 -0500 Subject: [PATCH] True16 for v_alignbyte_b32 in MC --- clang/lib/CodeGen/CGBuilt

[clang] [Clang] Enable -fextend-lifetimes at -Og (PR #118026)

2024-12-12 Thread Stephen Tozer via cfe-commits
SLTozer wrote: I've updated this patch, and made it dependent on a [previous PR](https://github.com/llvm/llvm-project/pull/11) - the logic for enabling the flag is coupled with code from the earlier PR, and also we now slightly extend the test added in that PR instead of creating a new one

[clang] Fix lld link issue for OHOS (PR #118192)

2024-12-12 Thread Fangrui Song via cfe-commits
MaskRay wrote: In general, functional changes need tests. When the initial https://reviews.llvm.org/D145227 landed, I did not have a chance to look, and the tests may have gap. When adding new functionality, ensure that the test coverage gets improved. https://github.com/llvm/llvm-project/pul

[clang] f7e868f - Fix a bug that CXXConstructExpr wasn't recognized by tryToFindPtrOrigin (#119336)

2024-12-12 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-12-12T09:37:04-08:00 New Revision: f7e868fe432da733f30379c01076f5f4c9792501 URL: https://github.com/llvm/llvm-project/commit/f7e868fe432da733f30379c01076f5f4c9792501 DIFF: https://github.com/llvm/llvm-project/commit/f7e868fe432da733f30379c01076f5f4c9792501.diff

[clang] Fix a bug that CXXConstructExpr wasn't recognized by tryToFindPtrOrigin (PR #119336)

2024-12-12 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/119336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix a bug that CXXConstructExpr wasn't recognized by tryToFindPtrOrigin (PR #119336)

2024-12-12 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/119336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Recognize ensureFoo functions (PR #119681)

2024-12-12 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/119681 >From 0982f5ca3f9d1ea713b1e34b6e6b9d08ff65e6f1 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Thu, 12 Dec 2024 01:31:42 -0800 Subject: [PATCH 1/2] [WebKit checkers] Recognize ensureFoo functions In WebKit, we

[clang] [HLSL] Codegen for `cbuffer` blocks without embedded arrays or structs (PR #119755)

2024-12-12 Thread Helena Kotas via cfe-commits
@@ -54,69 +54,110 @@ void addDxilValVersion(StringRef ValVersionStr, llvm::Module &M) { auto *DXILValMD = M.getOrInsertNamedMetadata(DXILValKey); DXILValMD->addOperand(Val); } + void addDisableOptimizations(llvm::Module &M) { hekota wrote: Intentional wh

[clang] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)

2024-12-12 Thread via cfe-commits
https://github.com/pcc edited https://github.com/llvm/llvm-project/pull/119777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)

2024-12-12 Thread via cfe-commits
https://github.com/pcc closed https://github.com/llvm/llvm-project/pull/119777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/119791 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFCI][sanitizer] Refactor parseSanitizeTrapArgs (PR #119797)

2024-12-12 Thread Thurston Dang via cfe-commits
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/119797 parseSanitizeTrapArgs follows the general pattern of "compute the sanitizer mask based on the default plus opt-in (if supported) minus opt-out". This patch refactors the functionality into a generalized funct

[clang] [NFCI][sanitizer] Refactor parseSanitizeTrapArgs (PR #119797)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Thurston Dang (thurstond) Changes parseSanitizeTrapArgs follows the general pattern of "compute the sanitizer mask based on the default plus opt-in (if supported) minus opt-out". This patch refactors the functionality into a genera

[clang] 357d00d - [clang][Driver] Allow `-fstack-clash-protection` for Fuchsia targets (#119633)

2024-12-12 Thread via cfe-commits
Author: Paul Kirth Date: 2024-12-12T09:47:10-08:00 New Revision: 357d00d7c7c81768047e9e9668c6f507c6c24cb3 URL: https://github.com/llvm/llvm-project/commit/357d00d7c7c81768047e9e9668c6f507c6c24cb3 DIFF: https://github.com/llvm/llvm-project/commit/357d00d7c7c81768047e9e9668c6f507c6c24cb3.diff LO

[clang] [clang][Driver] Allow `-fstack-clash-protection` for Fuchsia targets (PR #119633)

2024-12-12 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/119633 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver][Darwin] Optionally use xcselect to find macOS SDK (PR #119670)

2024-12-12 Thread Carlo Cabrera via cfe-commits
https://github.com/carlocab updated https://github.com/llvm/llvm-project/pull/119670 >From 9db768ec1be84d6bf647b85f052776720822f64f Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Tue, 10 Dec 2024 01:45:22 +0800 Subject: [PATCH 1/3] [clang][Driver][Darwin] Optionally use xcselect to find ma

[clang] [llvm] [HLSL] Adding Flatten and Branch if attributes (PR #116331)

2024-12-12 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/116331 >From ae719102cdafe101b3d718a144ed2f3488ecd44f Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Fri, 25 Oct 2024 17:48:41 + Subject: [PATCH 01/15] adding comments --- clang/include/clang/Basic/Attr.td

[clang] 5048808 - [OpenACC] Implement 'default' Sema for 'data' clause

2024-12-12 Thread via cfe-commits
Author: erichkeane Date: 2024-12-12T12:54:02-08:00 New Revision: 5048808859eece3aaa680aaecb4a89dfabe9627b URL: https://github.com/llvm/llvm-project/commit/5048808859eece3aaa680aaecb4a89dfabe9627b DIFF: https://github.com/llvm/llvm-project/commit/5048808859eece3aaa680aaecb4a89dfabe9627b.diff LO

[clang] [clang][perf-training] Fix profiling with -DCLANG_BOLT=perf (PR #119117)

2024-12-12 Thread Tom Stellard via cfe-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/119117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ea6e135 - [clang][perf-training] Fix profiling with -DCLANG_BOLT=perf (#119117)

2024-12-12 Thread via cfe-commits
Author: Tom Stellard Date: 2024-12-12T15:50:33-08:00 New Revision: ea6e13586ce22291e9e7a4e382f6b2409b406da9 URL: https://github.com/llvm/llvm-project/commit/ea6e13586ce22291e9e7a4e382f6b2409b406da9 DIFF: https://github.com/llvm/llvm-project/commit/ea6e13586ce22291e9e7a4e382f6b2409b406da9.diff

[clang] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/119643 >From cbcdcd37ec82e7bbb5fdd1cf83b093778d4fcf9f Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Wed, 11 Dec 2024 17:02:02 -0800 Subject: [PATCH 1/3] add concepts for raw buffers --- clang/lib/Sema/HLSLExte

[clang] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/119643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

2024-12-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/11277 Here is th

[clang] [Clang] Permit noescape on non-pointer types (PR #117344)

2024-12-12 Thread Julian Schmidt via cfe-commits
5chmidti wrote: > whether `bugprone-no-escape` would want to see these changes or not. The `bugprone-no-escape` check seems to be a bit limited because it only works with `dispatch_async` and `dispatch_after` (from Apple, it seems). It could probably be expanded to include some more async cons

[clang] [NFCI][sanitizer] Refactor parseSanitizeTrapArgs (PR #119797)

2024-12-12 Thread Thurston Dang via cfe-commits
thurstond wrote: > Would be possible to switch DiagnosedAlwaysRecoverableKinds to this function? That's a bit more complicated because it has Unrecoverable and AlwaysRecoverable error cases (vs. the current function only has one error case: ~Supported). I'll refactor RecoverableKinds in a foll

[clang] 7077896 - [NFCI][sanitizer] Refactor parseSanitizeTrapArgs (#119797)

2024-12-12 Thread via cfe-commits
Author: Thurston Dang Date: 2024-12-12T18:31:01-08:00 New Revision: 7077896a548a22d6a15c59d4b3edbc19d8e44fce URL: https://github.com/llvm/llvm-project/commit/7077896a548a22d6a15c59d4b3edbc19d8e44fce DIFF: https://github.com/llvm/llvm-project/commit/7077896a548a22d6a15c59d4b3edbc19d8e44fce.diff

[clang] [NFCI][sanitizer] Refactor parseSanitizeTrapArgs (PR #119797)

2024-12-12 Thread Thurston Dang via cfe-commits
https://github.com/thurstond closed https://github.com/llvm/llvm-project/pull/119797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Add a fallback for checking lambda captures (PR #119800)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes This PR reintroduces VisitLambdaExpr in LocalVisitor so that lambdas used to constrcut WTF::Function, for example, would get checked for its lambda captures. We explicitly ignore lambda used in initializing a

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

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

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

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

[clang] 3b10e31 - [clang][LoongArch] Add FreeBSD targets (#119191)

2024-12-12 Thread via cfe-commits
Author: hitmoon Date: 2024-12-13T10:34:53+08:00 New Revision: 3b10e31d3a4a1c660c82287d3b9f6515f37a32ca URL: https://github.com/llvm/llvm-project/commit/3b10e31d3a4a1c660c82287d3b9f6515f37a32ca DIFF: https://github.com/llvm/llvm-project/commit/3b10e31d3a4a1c660c82287d3b9f6515f37a32ca.diff LOG:

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

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

[clang] [webkit.UncountedLambdaCapturesChecker] Add a fallback for checking lambda captures (PR #119800)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes This PR reintroduces VisitLambdaExpr in LocalVisitor so that lambdas used to constrcut WTF::Function, for example, would get checked for its lambda captures. We explicitly ignore lambda used

[clang] [webkit.UncountedLambdaCapturesChecker] Add a fallback for checking lambda captures (PR #119800)

2024-12-12 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/119800 This PR reintroduces VisitLambdaExpr in LocalVisitor so that lambdas used to constrcut WTF::Function, for example, would get checked for its lambda captures. We explicitly ignore lambda used in initializing a Var

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

2024-12-12 Thread via cfe-commits
@@ -231,6 +231,9 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public OSTargetInfo { case llvm::Triple::riscv32: case llvm::Triple::riscv64: break; +case llvm::Triple::loongarch32: hitmoon wrote: @brooksdavis Thanks! after have readin

[clang] [llvm] [clang][modules] Separate parsing of modulemaps (PR #119740)

2024-12-12 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese created https://github.com/llvm/llvm-project/pull/119740 This separates out parsing of modulemaps from updating the `clang::ModuleMap` information. Currently this has no effect other than slightly changing diagnostics. Upcoming changes will use this to allow searc

[clang] f0f8434 - [OpenACC] Implement sema for 'async' on 'data' constructs

2024-12-12 Thread via cfe-commits
Author: erichkeane Date: 2024-12-12T10:55:27-08:00 New Revision: f0f8434afac2d30ac143250377fb6433c68fc0a8 URL: https://github.com/llvm/llvm-project/commit/f0f8434afac2d30ac143250377fb6433c68fc0a8 DIFF: https://github.com/llvm/llvm-project/commit/f0f8434afac2d30ac143250377fb6433c68fc0a8.diff LO

<    1   2   3   4   >