# Sema: introduce all_vector_instructions backend feature · gitcafe/zig

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

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

Visibility: public

Requested revision: afa74c6b213efb1ff85b86ce4a9edd5cc03e5a9b

Requested commit: afa74c6b213efb1ff85b86ce4a9edd5cc03e5a9b

Commit: afa74c6b213efb1ff85b86ce4a9edd5cc03e5a9b

Tree: 6a4d326e31eda55c359ec1e2aef05681bbef0298

Author: Jacob Young

Committer: Jacob Young

## Message

```
Sema: introduce all_vector_instructions backend feature

Sema is arbitrarily scalarizing some operations, which means that when I
try to implement vectorized versions of those operations in a backend,
they are impossible to test due to Sema not producing them. Now, I can
implement them and then temporarily enable the new feature for that
backend in order to test them. Once the backend supports all of them,
the feature can be permanently enabled.

This also deletes the Air instructions `int_from_bool` and
`int_from_ptr`, which are just bitcasts with a fixed result type, since
changing `un_op` to `ty_op` takes up the same amount of memory.

```

## Parents

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

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