# LLVM: pass slices as ptr/len combo · gitcafe/zig

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

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

Visibility: public

Requested revision: 2f9533f639311f680f3080747aa03b411ca63100

Requested commit: 2f9533f639311f680f3080747aa03b411ca63100

Commit: 2f9533f639311f680f3080747aa03b411ca63100

Tree: 6ea7b61114cdbdfab7b87069810e624e834183a9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
LLVM: pass slices as ptr/len combo

LLVM optimization passes handle this better, and it allows Zig to
specify pointer parameter attributes such as readonly, nonnull, noalias,
and alignment.

closes #561

```

## Parents

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

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