We also need the (version, capabilities, extensions) triple on the
spv.module op. Thus far we have been using separate 'extensions'
and 'capabilities' attributes there and 'version' is missing. Creating
a separate attribute for the trip allows us to reuse the assembly
form and verification.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This is awesome! Thanks!
mlir/include/mlir/Dialect/SPIRV/TargetAndABI.h | ||
---|---|---|
59 | Nit: can you just take an integer here? |
mlir/include/mlir/Dialect/SPIRV/TargetAndABI.h | ||
---|---|---|
59 | This constructor's purpose is to avoid recreating the IntegerAttr if already having one. So I have it this one. Normally one should use the above. |
Nit: can you just take an integer here?