# spirv: implement pointer comparison in for air cmp · gitcafe/zig

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

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

Visibility: public

Requested revision: 6e3770e970dbf460271a0e0cb60c2bf40a7c861e

Requested commit: 6e3770e970dbf460271a0e0cb60c2bf40a7c861e

Commit: 6e3770e970dbf460271a0e0cb60c2bf40a7c861e

Tree: fa880846415c07b0d153688a1e1a7b8c35971671

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: implement pointer comparison in for air cmp

It turns out that the Khronos LLVM SPIRV translator does not support OpPtrEqual.
Therefore, this instruction is emitted using a series of conversions.

This commit breaks intToEnum, because enum was removed from the arithmetic type
info. The enum should be converted to an int before this function is called.

```

## Parents

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

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