
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
8 lines
169 B
LLVM
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
|
|
} |