Support OpTypeSampledImage in SPIRV Dialect.
co-authored-by: Alan Liu <alanliu.yf@gmail.com>
Paths
| Differential D96169
[mlir][spirv] Add support for OpTypeSampledImage ClosedPublic Authored by Weiwei-2021 on Feb 5 2021, 11:49 AM.
Details Summary Support OpTypeSampledImage in SPIRV Dialect. co-authored-by: Alan Liu <alanliu.yf@gmail.com>
Diff Detail
Event TimelineHerald added subscribers: teijeong, rdzhabarov, tatianashp and 16 others. · View Herald TranscriptFeb 5 2021, 11:49 AM Herald added subscribers: stephenneuendorffer, nicolasvasilache. · View Herald TranscriptFeb 5 2021, 11:49 AM Comment Actions Awesome, looks nice. Could you also add tests to test/Dialect/SPIRV/IR/types.mlir? That one is for testing type/op validaty. test/Target/SPIRV/ is just for serialization/deserialization roundtrip.
This revision now requires changes to proceed.Feb 6 2021, 6:47 AM bondhugula added inline comments.
Weiwei-2021 marked 4 inline comments as done. Comment ActionsI am not familiar with adding test for mlir, please let me know whether the way I add API it right or wrong. Thanks! Weiwei-2021 added inline comments.
Comment Actions Generally LGTM. Could you also update SPIR-V.md regarding the new changes? Thanks!
This revision now requires changes to proceed.Feb 9 2021, 6:46 AM Weiwei-2021 marked 2 inline comments as done and an inline comment as not done. Weiwei-2021 added inline comments. This revision is now accepted and ready to land.Feb 9 2021, 10:42 AM Comment Actions Thanks for contributing and also thanks for the patience to tolerate multiple runs of my nitpicking. :) The first few patches typically see more of that as a way to establish coding conventions. I expect it to happen less in the future. Closed by commit rG2ef24139fcc1: [mlir][spirv] Add support for sampled image type (authored by Weiwei-2021, committed by antiagainst). · Explain WhyFeb 9 2021, 11:14 AM This revision was automatically updated to reflect the committed changes. Comment Actions
Thank you very much for your review and explanation all the time. Like I mentioned at the beginning, I am a newbie in both MLIR and contrinbuing code to an open source community. I do need those advices! Appreciate for you time and help!
Revision Contents
Diff 322451 mlir/docs/Dialects/SPIR-V.md
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTypes.h
mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp
mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp
mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp
mlir/lib/Target/SPIRV/Deserialization/Deserializer.h
mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
mlir/lib/Target/SPIRV/Serialization/Serializer.cpp
mlir/test/Dialect/SPIRV/IR/types.mlir
mlir/test/Target/SPIRV/sampled-image.mlir
|
Hmm, the text wrapping seems a bit off. Did you use the script under utils/spirv to add it here? You can
It will automatically pull in the opcode from the spec and update the enum list here, including reflowing .