This commit moves dangling ops in the main ops.td file to the proper file matching their categories. This makes ops.td as purely including all category files. Differential Revision: https://reviews.llvm.org/D94413
30 lines
655 B
MLIR
30 lines
655 B
MLIR
// RUN: mlir-opt -split-input-file -verify-diagnostics %s | FileCheck %s
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// spv.undef
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
func @undef() -> () {
|
|
// CHECK: %{{.*}} = spv.undef : f32
|
|
%0 = spv.undef : f32
|
|
// CHECK: %{{.*}} = spv.undef : vector<4xf32>
|
|
%1 = spv.undef : vector<4xf32>
|
|
spv.Return
|
|
}
|
|
|
|
// -----
|
|
|
|
func @undef() -> () {
|
|
// expected-error @+2{{expected non-function type}}
|
|
%0 = spv.undef :
|
|
spv.Return
|
|
}
|
|
|
|
// -----
|
|
|
|
func @undef() -> () {
|
|
// expected-error @+2{{expected ':'}}
|
|
%0 = spv.undef
|
|
spv.Return
|
|
}
|