[all-commits] [llvm/llvm-project] 15b036: [WebAssembly, clang] Add __builtin_wasm_test_functi...

Hood Chatham via All-commits all-commits at lists.llvm.org
Fri Jul 25 16:53:00 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15b03687ff655e2e64afb8554645457d2e4cabd7
      https://github.com/llvm/llvm-project/commit/15b03687ff655e2e64afb8554645457d2e4cabd7
  Author: Hood Chatham <roberthoodchatham at gmail.com>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsWebAssembly.def
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/SemaWasm.h
    M clang/lib/Basic/Targets/WebAssembly.cpp
    M clang/lib/Basic/Targets/WebAssembly.h
    M clang/lib/CodeGen/TargetBuiltins/WebAssembly.cpp
    M clang/lib/Sema/SemaWasm.cpp
    M clang/test/CodeGen/builtins-wasm.c
    M clang/test/Sema/builtins-wasm.c
    M llvm/lib/Target/WebAssembly/WebAssembly.td
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrRef.td
    M llvm/lib/Target/WebAssembly/WebAssemblySubtarget.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h
    M llvm/test/CodeGen/WebAssembly/ref-test-func.ll
    M llvm/test/CodeGen/WebAssembly/target-features-cpus.ll
    M llvm/test/MC/WebAssembly/reference-types.s

  Log Message:
  -----------
  [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (#150201)

Tests if the runtime type of the function pointer matches the static
type. If this returns false, calling the function pointer will trap.
Uses `@llvm.wasm.ref.test.func` added in #147486.

Also adds a "gc" wasm feature to gate the use of the ref.test
instruction.



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