# spirv: assembler · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/074ba69ba6c730e1095bdf78bdcc31bb37c358b1)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 074ba69ba6c730e1095bdf78bdcc31bb37c358b1

Requested commit: 074ba69ba6c730e1095bdf78bdcc31bb37c358b1

Commit: 074ba69ba6c730e1095bdf78bdcc31bb37c358b1

Tree: cb8bcc25858aa976bd21bd82ed9bce8b8d3c50ca

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: assembler

spirv: introduce SpvModule.Fn to generate function code into

spirv: assembler error message setup

spirv: runtime spec info

spirv: inline assembly tokenizer

spirv: inline assembly lhs result/opcode parsing

spirv: forgot to fmt

spirv: tokenize opcodes and assigned result-ids

spirv: operand parsing setup

spirv: assembler string literals

spirv: assembler integer literals

spirv: assembler value enums

spirv: assembler bit masks

spirv: update assembler to new asm air format

spirv: target 1.5 for now

Current vulkan sdk version (1.3.204) ships spirv tools targetting 1.5,
and so these do not work with binaries targetting 1.6 yet. In the
future, this version number should be decided by the target.

spirv: store operands in flat arraylist.

Instead of having dedicated Operand variants for variadic operands,
just flatten them and store them in the normal inst.operands list.
This is a little simpler, but is not easily decodable in the operand
data representation.

spirv: parse variadic assembly operands

spirv: improve assembler result-id tokenization

spirv: begin instruction processing

spirv: only remove decl if it was actually allocated

spirv: work around weird miscompilation

Seems like there are problems with switch in anonymous struct literals.

spirv: begin resolving some types in assembler

spirv: improve instruction processing

spirv: rename some types + process OpTypeInt

spirv: process OpTypeVector

spirv: process OpTypeMatrix and OpTypeSampler

spirv: add opcode class to spec, remove @exclude'd instructions

spirv: process more type instructions

spirv: OpTypeFunction

spirv: OpTypeOpaque

spirv: parse LiteralContextDependentNumber operands

spirv: emit assembly instruction into right section

spirv: parse OpPhi parameters

spirv: inline assembly inputs

spirv: also copy air types

spirv: inline assembly outputs

spirv: spir-v address spaces

spirv: basic vector constants/types and shuffle

spirv: assembler OpTypeImage

spirv: some stuff

spirv: remove spirv address spaces for now

```

## Parents

- [32ce2f91a92c23d46c6836a6dd68ae0f08bb04c5](https://git.cafe/gitcafe/zig/commit/32ce2f91a92c23d46c6836a6dd68ae0f08bb04c5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/074ba69ba6c730e1095bdf78bdcc31bb37c358b1?format=markdown)
