mlir icon indicating copy to clipboard operation
mlir copied to clipboard

[spirv] Add module level constants in SPIR-V dialect

Open MaheshRavishankar opened this issue 6 years ago • 0 comments

Global variables in SPIR-V now use symbol names instead of returning a SSA values. The initializers of global variables also use these symbol names. Since constants can be used as initializers, module-level constants need to also have symbol names (instead of returning a symbol value). Also need a mechanism to either materialize these global constant within a function scope so that there is an SSA value to use with other instructions.

MaheshRavishankar avatar Aug 17 '19 17:08 MaheshRavishankar