[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2025-01-09 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,114 @@ +//===--- Mustache.h -*- C++ -*-===// +// +// 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: Ap

[clang] [HLSL] Implement the HLSL distance intrinsic (PR #122357)

2025-01-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Farzon Lotfi (farzonl) Changes - Hook of SPIRV builtin - Implement Distance as length(X - Y) --- Full diff: https://github.com/llvm/llvm-project/pull/122357.diff 4 Files Affected: - (modified) clang/lib/Headers/hlsl/hlsl_detail.h (+15)

[clang] [Static analysis] Encodes a filename before inserting it into a URL. (PR #120810)

2025-01-09 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. I have a minor comment about a possibly unnecessary variable. Otherwise, LGTM. https://github.com/llvm/llvm-project/pull/120810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [Clang] Consider preferred_type in bitfield warnings (#116760) (PR #116785)

2025-01-09 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > > This does mean that if the preferred and explicit types have different > > storage requirements we may not warn in all possible cases, but that's a > > scenario for which the warnings are much more complex and confusing > > If I understand the patch correctly, we always warn,

[clang] [lldb] [clang][DebugInfo] Expand detection of structured bindings to account for std::get free function (PR #122265)

2025-01-09 Thread Michael Buch via cfe-commits
Michael137 wrote: > Did you try to modify `IgnoreUnlessSpelledInSource` to support CallExpr? Yea I was thinking about it initially. But I wasn't sure what that would look like tbh. IIUC `IgnoreImplicitMemberCallSingleStep` will unwrap `CXXMemberCallExpr` into the underlying `MemberExpr`. And t

[clang] [HLSL] Add 6.2 SM on half availability for length intrinsic (PR #122337)

2025-01-09 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl created https://github.com/llvm/llvm-project/pull/122337 - attribute keeps getting deleted on bad rebases >From 0f0b75dffaefc3460ae8aad7effa75e844ab29ee Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Thu, 9 Jan 2025 13:55:33 -0500 Subject: [PATCH] [HLSL] Add 6.2 S

[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2025-01-09 Thread Stephen Tozer via cfe-commits
SLTozer wrote: Post-holiday ping; I think all the outstanding comments have been addressed, with some minor changes since the last round of review - primarily referencing the new CodeGenOpts settings, and removing the O0-related logic. https://github.com/llvm/llvm-project/pull/110102 _

[clang] [HLSL] Add 6.2 SM on half availability for length intrinsic (PR #122337)

2025-01-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Farzon Lotfi (farzonl) Changes - attribute keeps getting deleted on bad rebases --- Full diff: https://github.com/llvm/llvm-project/pull/122337.diff 1 Files Affected: - (modified) clang/lib/Headers/hlsl/hlsl_intrinsics.h (+2) ```

[clang] [HLSL] Add 6.2 SM on half availability for length intrinsic (PR #122337)

2025-01-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Farzon Lotfi (farzonl) Changes - attribute keeps getting deleted on bad rebases --- Full diff: https://github.com/llvm/llvm-project/pull/122337.diff 1 Files Affected: - (modified) clang/lib/Headers/hlsl/hlsl_intrinsics.h (+2) `

[clang] 9ec9287 - Revert "[HLSL] Move length support out of the DirectX Backend (#121611)"

2025-01-09 Thread Nico Weber via cfe-commits
Author: Nico Weber Date: 2025-01-09T14:19:03-05:00 New Revision: 9ec92873ecc1c268a1d05e36b7b52e378860ea5b URL: https://github.com/llvm/llvm-project/commit/9ec92873ecc1c268a1d05e36b7b52e378860ea5b DIFF: https://github.com/llvm/llvm-project/commit/9ec92873ecc1c268a1d05e36b7b52e378860ea5b.diff LO

[clang] 26aa20a - Use range-based for to iterate over fields in record layout, NFCI (#122029)

2025-01-09 Thread via cfe-commits
Author: Reid Kleckner Date: 2025-01-09T11:21:03-08:00 New Revision: 26aa20a3dd82e2ff5855bee04b22b35f6b1f026f URL: https://github.com/llvm/llvm-project/commit/26aa20a3dd82e2ff5855bee04b22b35f6b1f026f DIFF: https://github.com/llvm/llvm-project/commit/26aa20a3dd82e2ff5855bee04b22b35f6b1f026f.diff

[clang] Use range-based for to iterate over fields in record layout, NFC (PR #122029)

2025-01-09 Thread Reid Kleckner via cfe-commits
rnk wrote: Thanks for the review! > nitpick, I don't think this is an NFC change. It would require some thought > to really convince myself this did not have subtle behavior changes even if > unintended. I agree this change assumes some invariants about immutability of field ordering to be c

[clang] [HLSL] Implement D3DCOLORtoUBYTE4 intrinsic (PR #122202)

2025-01-09 Thread Deric Cheung via cfe-commits
https://github.com/Icohedron updated https://github.com/llvm/llvm-project/pull/122202 >From f76d5038811c72d1e185cdceeb24d5014c5c8281 Mon Sep 17 00:00:00 2001 From: Icohedron Date: Thu, 9 Jan 2025 01:14:52 + Subject: [PATCH 1/5] Implement D3DCOLORtoUBYTE4 intrinsic --- clang/lib/Headers/hl

[clang] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--fmodule-output` (PR #121046)

2025-01-09 Thread Sharadh Rajaraman via cfe-commits
https://github.com/sharadhr updated https://github.com/llvm/llvm-project/pull/121046 >From a9f921227abccda6c82137bed0b95041f584a147 Mon Sep 17 00:00:00 2001 From: Sharadh Rajaraman Date: Tue, 24 Dec 2024 09:32:21 + Subject: [PATCH 1/3] Accept /Fo and -Fo in `-fmodule-output` when running u

[clang] Use range-based for to iterate over fields in record layout, NFC (PR #122029)

2025-01-09 Thread Reid Kleckner via cfe-commits
https://github.com/rnk closed https://github.com/llvm/llvm-project/pull/122029 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement a header only distance intrinsic (PR #117240)

2025-01-09 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/117240 >From c6a696373a2a6a51b8e74f5bed549328c21b0155 Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Thu, 21 Nov 2024 14:46:31 -0500 Subject: [PATCH] [HLSL] Implement a header only distance intrinsic Addressing RFC

[clang] [Static analysis] Encodes a filename before inserting it into a URL. (PR #120810)

2025-01-09 Thread Rashmi Mudduluru via cfe-commits
@@ -1465,6 +1466,17 @@ sub HtmlEscape { return $tmp; } +#### +# URLEscape - encode characters that are special in URLs +###

[clang] [llvm] [HLSL] Move length support out of the DirectX Backend (PR #121611)

2025-01-09 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-5` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/12510 Here

[clang-tools-extra] Initialize value. (PR #122339)

2025-01-09 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam created https://github.com/llvm/llvm-project/pull/122339 None >From d8268afeafb61f95f1fa917ab26214e84372eba3 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 9 Jan 2025 10:58:29 -0800 Subject: [PATCH] Initialize value. --- .../clang-tidy/modernize/Use

[clang] c123d0c - [HLSL][NFC] Move packoffset validation to separate function and calculate offsets in bytes (#121989)

2025-01-09 Thread via cfe-commits
Author: Helena Kotas Date: 2025-01-09T11:01:44-08:00 New Revision: c123d0c1df3363f309a2c0b7837297d3790d6ea5 URL: https://github.com/llvm/llvm-project/commit/c123d0c1df3363f309a2c0b7837297d3790d6ea5 DIFF: https://github.com/llvm/llvm-project/commit/c123d0c1df3363f309a2c0b7837297d3790d6ea5.diff

[clang] [HLSL][NFC] Move packoffset validation to separate function and calculate offsets in bytes (PR #121989)

2025-01-09 Thread Helena Kotas via cfe-commits
https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/121989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Initialize value. (PR #122339)

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

[clang] [TBAA] Don't emit pointer-tbaa for void pointers. (PR #122116)

2025-01-09 Thread Florian Hahn via cfe-commits
fhahn wrote: What would be a good place to document this? https://github.com/llvm/llvm-project/pull/122116 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Use range-based for to iterate over fields in record layout, NFC (PR #122029)

2025-01-09 Thread Reid Kleckner via cfe-commits
@@ -3115,7 +3115,19 @@ class FieldDecl : public DeclaratorDecl, public Mergeable { /// Returns the index of this field within its record, /// as appropriate for passing to ASTRecordLayout::getFieldOffset. - unsigned getFieldIndex() const; + unsigned getFieldIndex() cons

[clang] Use range-based for to iterate over fields in record layout, NFC (PR #122029)

2025-01-09 Thread Reid Kleckner via cfe-commits
@@ -3115,7 +3115,19 @@ class FieldDecl : public DeclaratorDecl, public Mergeable { /// Returns the index of this field within its record, /// as appropriate for passing to ASTRecordLayout::getFieldOffset. - unsigned getFieldIndex() const; + unsigned getFieldIndex() cons

[clang] Use range-based for to iterate over fields in record layout, NFC (PR #122029)

2025-01-09 Thread Reid Kleckner via cfe-commits
@@ -3115,7 +3115,19 @@ class FieldDecl : public DeclaratorDecl, public Mergeable { /// Returns the index of this field within its record, /// as appropriate for passing to ASTRecordLayout::getFieldOffset. - unsigned getFieldIndex() const; + unsigned getFieldIndex() cons

[clang] Use range-based for to iterate over fields in record layout, NFC (PR #122029)

2025-01-09 Thread Reid Kleckner via cfe-commits
@@ -3115,7 +3115,19 @@ class FieldDecl : public DeclaratorDecl, public Mergeable { /// Returns the index of this field within its record, /// as appropriate for passing to ASTRecordLayout::getFieldOffset. - unsigned getFieldIndex() const; + unsigned getFieldIndex() cons

[clang] [Clang][TableGen] Add missing __bf16 type to the builtins parser (PR #120662)

2025-01-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/120662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement D3DCOLORtoUBYTE4 intrinsic (PR #122202)

2025-01-09 Thread Deric Cheung via cfe-commits
@@ -33,6 +33,14 @@ constexpr enable_if_t bit_cast(T F) { return __builtin_bit_cast(U, F); } +constexpr vector d3d_color_to_ubyte4(vector V) { + // Use the same scaling factor used by FXC (i.e., 255.001953) + // Excerpt from stackoverflow discussion: + // "Built-in roundi

[clang] [HLSL] Add 6.2 SM on half availability for length intrinsic (PR #122337)

2025-01-09 Thread Farzon Lotfi via cfe-commits
farzonl wrote: > Does this fix a test failure? No failures. We would need to have tests for all intrinsics that if its not SM 6.2 or greater uses of half would error, but we never did that for any of the other intrinsics so we should probably discuss what the test coverage should be and appl

[clang] (reland) [clang] Warn [[clang::lifetimebound]] misusages on types (PR #118501)

2025-01-09 Thread Maksim Ivanov via cfe-commits
emaxx-google wrote: Also: I didn't proceed with this PR because internal cleanup in Google's internal code base took time, but as this is finished now the PR could be merged. https://github.com/llvm/llvm-project/pull/118501 ___ cfe-commits mailing li

[clang] [CUDA] Move CUDA to new driver by default (PR #122312)

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

[clang] [HLSL] Implement the HLSL distance intrinsic (PR #122357)

2025-01-09 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl created https://github.com/llvm/llvm-project/pull/122357 - Hook of SPIRV builtin - Implement Distance as length(X - Y) >From 73e0203dafcd3d237b02e6a3bce0448df92231b7 Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Thu, 9 Jan 2025 14:55:40 -0500 Subject: [PATCH] [HL

<    1   2   3   4   5   6