[all-commits] [llvm/llvm-project] cefb93: [SPIRV] Add support for G_PTRMASK (#201450)

Nick Sarnie via All-commits all-commits at lists.llvm.org
Tue Jun 9 08:04:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cefb93799312e772f2d71529075bc4ab1b94b845
      https://github.com/llvm/llvm-project/commit/cefb93799312e772f2d71529075bc4ab1b94b845
  Author: Nick Sarnie <nick.sarnie at intel.com>
  Date:   2026-06-09 (Tue, 09 Jun 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    M llvm/lib/Target/SPIRV/SPIRVLegalizerInfo.cpp
    A llvm/test/CodeGen/SPIRV/ptrmask-logical.ll
    A llvm/test/CodeGen/SPIRV/ptrmask-vec.ll
    A llvm/test/CodeGen/SPIRV/ptrmask32.ll
    A llvm/test/CodeGen/SPIRV/ptrmask64-32.ll
    A llvm/test/CodeGen/SPIRV/ptrmask64.ll

  Log Message:
  -----------
  [SPIRV] Add support for G_PTRMASK (#201450)

This instruction is generated by the
[llvm.ptrmask](https://llvm.org/docs/LangRef.html#llvm-ptrmask-intrinsic)
intrinsic, which is used for Clang builtins like
[__builtin_align_up](https://clang.llvm.org/docs/LanguageExtensions.html#alignment-builtins)
which is used in `libc`.

We are working on building `libc` for SPIR-V, so we hit this problem.

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply at anthropic.com>

---------

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
Co-authored-by: Claude Sonnet 4.5 <noreply at anthropic.com>



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