spirv: make constant handle float, errorset, errorunion
This is in preparation of removing indirect lowering again. Also
modifies constant() to accept a repr so that both direct as well
as indirect representations can be generated. Indirect is not yet
used, but will be used for globals.
c92cc5798fRobin Voetter committed on 5/20/2023, 4:02:30 PMparent65157d3