[all-commits] [llvm/llvm-project] d98746: [DirectX] Remove custom error classes from RootSig...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Wed Oct 8 12:49:39 PDT 2025


  Branch: refs/heads/users/vitalybuka/spr/nfcsupport-make-private-internals-details-of-matcher
  Home:   https://github.com/llvm/llvm-project
  Commit: d987465f47ec6460a4865238232a4f59072ef4b8
      https://github.com/llvm/llvm-project/commit/d987465f47ec6460a4865238232a4f59072ef4b8
  Author: joaosaffran <joaosaffranllvm at gmail.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M llvm/include/llvm/Frontend/HLSL/RootSignatureMetadata.h
    M llvm/lib/Frontend/HLSL/RootSignatureMetadata.cpp

  Log Message:
  -----------
  [DirectX] Remove custom error classes from RootSignature Metadata parser  (#161921)

We have too many custom error classes that look too much alike when
error handling root signature metadata parser. This PR removes those
custom error classes and instead reuses `StringError` and a few
pre-formatted error messages.

Closes: [#159429](https://github.com/llvm/llvm-project/issues/159429)

---------

Co-authored-by: joaosaffran <joao.saffran at microsoft.com>


  Commit: 7b820b28353e788603e56698035db42bb3327713
      https://github.com/llvm/llvm-project/commit/7b820b28353e788603e56698035db42bb3327713
  Author: Brad Smith <brad at comstyle.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M compiler-rt/lib/builtins/cpu_model/aarch64.c
    M compiler-rt/lib/builtins/cpu_model/aarch64/hwcap.inc
    M compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/android.inc
    M compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/getauxval.inc

  Log Message:
  -----------
  [builtins][AArch64] Clean up the sys/auxv.h header handling (#161751)

glibc 2.17 added AArch64 support and already had getauxval().


  Commit: f8ba5343ae19651b148e53960597bdff0c877757
      https://github.com/llvm/llvm-project/commit/f8ba5343ae19651b148e53960597bdff0c877757
  Author: Vladislav Dzhidzhoev <vdzhidzhoev at accesssoftek.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M lldb/test/API/functionalities/unwind/cortex-m-exception/TestCortexMExceptionUnwind.py
    M lldb/test/API/functionalities/unwind/cortex-m-exception/armv7m-nofpu-exception.yaml
    M lldb/test/API/functionalities/unwind/cortex-m-exception/binary.json

  Log Message:
  -----------
  Revert "[lldb] Cortex-M exception unwind API test cleanup" (#162520)

This reverts commit 01a8f9b81870ac9bfe26d80fa3313d56cb8cbe13.

The reason is "lldb-remote-linux-win" buildbot breakage
(https://lab.llvm.org/buildbot/#/builders/197/builds/9625).


  Commit: 33f26682507ec5f2b54c0300f3e1ec4efce45d86
      https://github.com/llvm/llvm-project/commit/33f26682507ec5f2b54c0300f3e1ec4efce45d86
  Author: Shawn K <kimshawn02 at icloud.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIRDataLayout.h
    M clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
    M clang/test/CIR/CodeGen/cast.cpp

  Log Message:
  -----------
  [CIR] Upstream handling of integral-to-pointer casts (#161653)

Fix #153658

Handle integral to pointer casts and port the relevant `cast.cpp` test
cases from incubator.


  Commit: 1892e6fbb33a1303f8103132c0122f9713dde21b
      https://github.com/llvm/llvm-project/commit/1892e6fbb33a1303f8103132c0122f9713dde21b
  Author: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M libc/src/__support/OSUtil/linux/auxv.h

  Log Message:
  -----------
  [libc] fix rv32 mmap in auxv library (#162519)

Fix auxv rv32 build problem


  Commit: 81c6f53c19cd29c401355a1c5764b35bfdea6164
      https://github.com/llvm/llvm-project/commit/81c6f53c19cd29c401355a1c5764b35bfdea6164
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M clang/lib/CIR/CodeGen/CIRGenClass.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/test/CIR/CodeGen/dtors.cpp

  Log Message:
  -----------
  [CIR] Add support for destructing class members (#162196)

This adds the necessary cleanup handling to get class destructors to
call the destructor for fields that require it.


  Commit: 40fbe32cbad1cec303345cb7908d35ea93d88ef2
      https://github.com/llvm/llvm-project/commit/40fbe32cbad1cec303345cb7908d35ea93d88ef2
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp

  Log Message:
  -----------
  [DirectX] Update DXILBitcodeWriter for #162255 (#162531)

Fix the build with the DirectX backend enabled by using `getUnversionedName()`
to match the updates of other similar uses of `getSourceLanguage()`.


  Commit: 761be78dd73436dfa66090ba921ca8154cc42209
      https://github.com/llvm/llvm-project/commit/761be78dd73436dfa66090ba921ca8154cc42209
  Author: Folkert de Vries <folkert at folkertdev.nl>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
    M llvm/test/CodeGen/WebAssembly/fpclamptosat_vec.ll
    A llvm/test/CodeGen/WebAssembly/saturating-truncation.ll

  Log Message:
  -----------
  [WebAssembly] recognize saturating truncation (#155470)

fixes https://github.com/llvm/llvm-project/issues/153838
using the same approach as
https://github.com/llvm/llvm-project/pull/155377

Recognize a manual saturating truncation and select the corresponding
instruction. This is useful in general, but came up specifically in
https://github.com/rust-lang/stdarch because it will allow us to drop
more target-specific intrinsics in favor of cross-platform ones.


  Commit: 774ffe5cce7392e6b4e29c83e725337727c2c994
      https://github.com/llvm/llvm-project/commit/774ffe5cce7392e6b4e29c83e725337727c2c994
  Author: Marco Elver <elver at google.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    A clang/docs/AllocToken.rst
    M clang/docs/ReleaseNotes.rst
    M clang/docs/UsersManual.rst
    M clang/docs/index.rst
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Driver/SanitizerArgs.h
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/lib/Driver/ToolChain.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp
    A clang/test/CodeGen/alloc-token-ignorelist.c
    A clang/test/CodeGen/alloc-token-lower.c
    A clang/test/CodeGen/alloc-token.c
    A clang/test/CodeGenCXX/alloc-token.cpp
    A clang/test/Driver/fsanitize-alloc-token.c
    A clang/test/Preprocessor/alloc_token.cpp

  Log Message:
  -----------
  [Clang] Wire up -fsanitize=alloc-token (#156839)

Wire up the `-fsanitize=alloc-token` command-line option, hooking up
the `AllocToken` pass -- it provides allocation tokens to compatible
runtime allocators, enabling different heap organization strategies,
e.g. hardening schemes based on heap partitioning.

The instrumentation rewrites standard allocation calls into variants
that accept an additional `size_t token_id` argument. For example,
calls to `malloc(size)` become `__alloc_token_malloc(size, token_id)`,
and a C++ `new MyType` expression will call
`__alloc_token__Znwm(size, token_id)`.

Currently untyped allocation calls do not yet have `!alloc_token`
metadata, and therefore receive the fallback token only. This will be
fixed in subsequent changes through best-effort type-inference.

One benefit of the instrumentation approach is that it can be applied
transparently to large codebases, and scales in deployment as other
sanitizers.

Similarly to other sanitizers, instrumentation can selectively be
controlled using `__attribute__((no_sanitize("alloc-token")))`. Support
for sanitizer ignorelists to disable instrumentation for specific
functions or source files is implemented.

See clang/docs/AllocToken.rst for more usage instructions.

Link:
https://discourse.llvm.org/t/rfc-a-framework-for-allocator-partitioning-hints/87434

---

This change is part of the following series:
  1. https://github.com/llvm/llvm-project/pull/160131
  2. https://github.com/llvm/llvm-project/pull/156838
  3. https://github.com/llvm/llvm-project/pull/162098
  4. https://github.com/llvm/llvm-project/pull/162099
  5. https://github.com/llvm/llvm-project/pull/156839
  6. https://github.com/llvm/llvm-project/pull/156840
  7. https://github.com/llvm/llvm-project/pull/156841
  8. https://github.com/llvm/llvm-project/pull/156842


  Commit: 4f6cb060b105f38d3652886b0f5b183cafe91095
      https://github.com/llvm/llvm-project/commit/4f6cb060b105f38d3652886b0f5b183cafe91095
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M clang/lib/Basic/Diagnostic.cpp
    M llvm/lib/Support/SpecialCaseList.cpp

  Log Message:
  -----------
  [NFC][SpecialCaseList] Move "LongestMatch" logic from WarningsSpecialCaseList into SpecialCaseList (#162409)

This way we can be more flexible optimizing SpecialCaseList internals.


  Commit: 33e6a9ae41413878cf04ff7d688e057dbd3ac256
      https://github.com/llvm/llvm-project/commit/33e6a9ae41413878cf04ff7d688e057dbd3ac256
  Author: S. VenkataKeerthy <31350914+svkeerthy at users.noreply.github.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M llvm/lib/Analysis/IR2Vec.cpp

  Log Message:
  -----------
  [IR2Vec] Added fixme for cyclic dependency in Flow-Aware embedding computation (#162522)


  Commit: c57796dcb2690657a99bf328e0f2e3c10bc0ab4d
      https://github.com/llvm/llvm-project/commit/c57796dcb2690657a99bf328e0f2e3c10bc0ab4d
  Author: Shreeyash Pandey <shreeyash335 at gmail.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/docs/headers/stdfix.rst
    M libc/include/stdfix.yaml
    M libc/src/__support/fixed_point/fx_bits.h
    M libc/src/stdfix/CMakeLists.txt
    A libc/src/stdfix/rdivi.cpp
    A libc/src/stdfix/rdivi.h
    M libc/test/src/stdfix/CMakeLists.txt
    A libc/test/src/stdfix/DivITest.h
    A libc/test/src/stdfix/rdivi_test.cpp

  Log Message:
  -----------
  [libc][stdfix] Implement fxdivi functions (rdivi) (#154914)

This PR includes only one of the fxdivi functions (rdivi). It uses a
polynomial function for initial approximation followed by 4
newton-raphson iterations to calculate the reciprocal and finally
multiplies the numerator with it to get the result.


---------

Signed-off-by: Shreeyash Pandey <shreeyash335 at gmail.com>


  Commit: 419f5f1d8986877f089a89bd46188af872446324
      https://github.com/llvm/llvm-project/commit/419f5f1d8986877f089a89bd46188af872446324
  Author: Kyungtak Woo <kevinwkt1997 at gmail.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [bazel] fix: add dependency for SCFToEmitC due to c3aa1584e098 (#162535)

Adding dependency changes due to bazel build failing since
https://github.com/llvm/llvm-project/pull/143008/files


  Commit: 23981c422207c11d0f52191a8af3a60801e92dc7
      https://github.com/llvm/llvm-project/commit/23981c422207c11d0f52191a8af3a60801e92dc7
  Author: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M libc/src/__support/OSUtil/linux/CMakeLists.txt
    M libc/src/__support/OSUtil/linux/vdso.cpp
    M libc/src/unistd/linux/CMakeLists.txt
    M libc/src/unistd/linux/sysconf.cpp

  Log Message:
  -----------
  [libc] Refactor internal auxv usage to reduce getauxval dependencies (#162489)


  Commit: 18ab50f21fde1223fd35e2cacb349d129a2a19f0
      https://github.com/llvm/llvm-project/commit/18ab50f21fde1223fd35e2cacb349d129a2a19f0
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    A clang/docs/AllocToken.rst
    M clang/docs/ReleaseNotes.rst
    M clang/docs/UsersManual.rst
    M clang/docs/index.rst
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/CIR/Dialect/IR/CIRDataLayout.h
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Driver/SanitizerArgs.h
    M clang/lib/CIR/CodeGen/CIRGenClass.cpp
    M clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/lib/Driver/ToolChain.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/test/CIR/CodeGen/cast.cpp
    M clang/test/CIR/CodeGen/dtors.cpp
    A clang/test/CodeGen/alloc-token-ignorelist.c
    A clang/test/CodeGen/alloc-token-lower.c
    A clang/test/CodeGen/alloc-token.c
    A clang/test/CodeGenCXX/alloc-token.cpp
    A clang/test/Driver/fsanitize-alloc-token.c
    A clang/test/Preprocessor/alloc_token.cpp
    M compiler-rt/lib/builtins/cpu_model/aarch64.c
    M compiler-rt/lib/builtins/cpu_model/aarch64/hwcap.inc
    M compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/android.inc
    M compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/getauxval.inc
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/docs/headers/stdfix.rst
    M libc/include/stdfix.yaml
    M libc/src/__support/OSUtil/linux/CMakeLists.txt
    M libc/src/__support/OSUtil/linux/auxv.h
    M libc/src/__support/OSUtil/linux/vdso.cpp
    M libc/src/__support/fixed_point/fx_bits.h
    M libc/src/stdfix/CMakeLists.txt
    A libc/src/stdfix/rdivi.cpp
    A libc/src/stdfix/rdivi.h
    M libc/src/unistd/linux/CMakeLists.txt
    M libc/src/unistd/linux/sysconf.cpp
    M libc/test/src/stdfix/CMakeLists.txt
    A libc/test/src/stdfix/DivITest.h
    A libc/test/src/stdfix/rdivi_test.cpp
    M lldb/test/API/functionalities/unwind/cortex-m-exception/TestCortexMExceptionUnwind.py
    M lldb/test/API/functionalities/unwind/cortex-m-exception/armv7m-nofpu-exception.yaml
    M lldb/test/API/functionalities/unwind/cortex-m-exception/binary.json
    M llvm/include/llvm/Frontend/HLSL/RootSignatureMetadata.h
    M llvm/lib/Analysis/IR2Vec.cpp
    M llvm/lib/Frontend/HLSL/RootSignatureMetadata.cpp
    M llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
    M llvm/test/CodeGen/WebAssembly/fpclamptosat_vec.ll
    A llvm/test/CodeGen/WebAssembly/saturating-truncation.ll
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  rebase

Created using spr 1.3.6


Compare: https://github.com/llvm/llvm-project/compare/01c3814ff093...18ab50f21fde

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list