You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[mlir][spirv] Fix LowerABIAttributesPass to generate EntryPoints for SPV1.4
- Extend the SPIRV::LowerABIAttributesPass to detect when the target env is
using SPIR-V ver >= 1.4, and in this case add all the functions' interface storage
variables to the spirv.EntryPoint calls, as required by the spec of OpEntryPoint:
"Before version 1.4, the interface’s storage classes are limited to the Input and
Output storage classes. Starting with version 1.4, the interface’s storage classes
are all storage classes used in declaring all global variables referenced by
the entry point’s call tree."
- Fix: generate the replacement ops (spirv.AddressOf and .AccessChain) in the
order in which the associated variable appears in the function signature
Signed-off-by: Fabrizio Indirli <[email protected]>
0 commit comments