[all-commits] [llvm/llvm-project] 9df8bc: [mlir][spirv][nfc] Refactor member decorations in ...

Igor Wodiany via All-commits all-commits at lists.llvm.org
Thu Jul 24 05:37:06 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9df8bc953d72eb4b6401ebe210a347ba3956350a
      https://github.com/llvm/llvm-project/commit/9df8bc953d72eb4b6401ebe210a347ba3956350a
  Author: Igor Wodiany <igor.wodiany at imgtec.com>
  Date:   2025-07-24 (Thu, 24 Jul 2025)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTypes.h
    M mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp
    M mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
    M mlir/lib/Target/SPIRV/Serialization/Serializer.cpp
    M mlir/test/Dialect/SPIRV/IR/types.mlir

  Log Message:
  -----------
  [mlir][spirv][nfc] Refactor member decorations in StructType (#150218)

This patch makes `==` and `<` for MemberDecorationInfo a friend function
and removes a `hasValue` field. `decorationValue` is also made an
`mlir::Attribute` so `UnitAttr` can be used to represent no-value. This
is consistent with how OpDecorate is handled in the deserializer. Using
`Attribute` will also enable handling non-integer values, however, there
seem to be no such decorations for struct members now.



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