[all-commits] [llvm/llvm-project] 046ed9: [mlir][spirv] Ensure function declarations precede...

Igor Wodiany via All-commits all-commits at lists.llvm.org
Mon Oct 27 02:29:12 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 046ed90d3f5189357bcce4cff43ad7739ae72b07
      https://github.com/llvm/llvm-project/commit/046ed90d3f5189357bcce4cff43ad7739ae72b07
  Author: Igor Wodiany <igor.wodiany at imgtec.com>
  Date:   2025-10-27 (Mon, 27 Oct 2025)

  Changed paths:
    M mlir/lib/Target/SPIRV/Serialization/Serializer.cpp
    M mlir/test/Target/SPIRV/function-decorations.mlir

  Log Message:
  -----------
  [mlir][spirv] Ensure function declarations precede definitions (#164956)

SPIR-V spec requires that any calls to external functions are preceded
by declarations of those external functions. To simplify the
implementation, we sort functions in the serializer using a stronger
condition: any functions declarations are moved before any functions
definitions - this ensures that external functions are always declared
before being used.



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