llvm-project/llvm/test/Verifier/target-ext-vector-invalid.ll
arysef 78af498035
[LLVM][IR] Support target extension types in vectors (#140630)
This change is to support target extension types in vectors. The change
allows sized target extension types to opt-in to being a valid vector
element.
Allowing target extension types as vector elements will allow backends
to use vector operations such as `insertelement` and `extractelement` on
their target types with minimal changes.

RFC:
https://discourse.llvm.org/t/rfc-supporting-sized-target-extension-types-in-vector/86431
2025-06-09 12:03:15 -07:00

8 lines
169 B
LLVM

; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
; CHECK: invalid vector element type
define void @bad() {
%v = alloca <2 x target("spirv.Image")>
ret void
}