CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
127 lines
5.0 KiB
TableGen
127 lines
5.0 KiB
TableGen
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR1 %s 2>&1 | FileCheck --check-prefix=ERROR1 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR2 %s 2>&1 | FileCheck --check-prefix=ERROR2 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR3 %s 2>&1 | FileCheck --check-prefix=ERROR3 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR4 %s 2>&1 | FileCheck --check-prefix=ERROR4 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR5 %s 2>&1 | FileCheck --check-prefix=ERROR5 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR6 %s 2>&1 | FileCheck --check-prefix=ERROR6 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR7 %s 2>&1 | FileCheck --check-prefix=ERROR7 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR8 %s 2>&1 | FileCheck --check-prefix=ERROR8 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR9 %s 2>&1 | FileCheck --check-prefix=ERROR9 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR10 %s 2>&1 | FileCheck --check-prefix=ERROR10 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR11 %s 2>&1 | FileCheck --check-prefix=ERROR11 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR12 %s 2>&1 | FileCheck --check-prefix=ERROR12 %s
|
|
// RUN: not mlir-tblgen -gen-op-decls -I %S/../../include -DERROR13 %s 2>&1 | FileCheck --check-prefix=ERROR13 %s
|
|
|
|
include "mlir/IR/OpBase.td"
|
|
|
|
def Test_Dialect : Dialect {
|
|
let name = "test_dialect";
|
|
}
|
|
|
|
#ifdef ERROR1
|
|
// ERROR1: error: expected 'ins'
|
|
def OpInsMissing : Op<Test_Dialect, "ins_missing"> {
|
|
let builders = [
|
|
OpBuilder<(outs)>
|
|
];
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR2
|
|
// ERROR2: error: expected an argument with default value after other arguments with default values
|
|
def OpDefaultValueNotTrailing : Op<Test_Dialect, "default_value"> {
|
|
let builders = [
|
|
OpBuilder<(ins CArg<"int", "42">, "int")>
|
|
];
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR3
|
|
// ERROR3: error: expected an argument with default value after other arguments with default values
|
|
def OpDefaultValueNotTrailing : Op<Test_Dialect, "default_value"> {
|
|
let builders = [
|
|
OpBuilder<(ins CArg<"int", "42">, CArg<"int">)>
|
|
];
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR4
|
|
// ERROR4: error: op has a conflict with two operands having the same name 'tensor'
|
|
def OpWithDuplicatedArgNames : Op<Test_Dialect, "default_value"> {
|
|
let arguments = (ins AnyTensor:$tensor, AnyTensor:$tensor);
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR5
|
|
// ERROR5: error: op has a conflict with two results having the same name 'tensor'
|
|
def OpWithDuplicatedResultNames : Op<Test_Dialect, "default_value"> {
|
|
let results = (outs AnyTensor:$tensor, AnyTensor:$tensor);
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR6
|
|
// ERROR6: error: op has a conflict with operands and results both having an entry with the name 'tensor'
|
|
def OpWithDuplicatedArgResultNames : Op<Test_Dialect, "default_value"> {
|
|
let arguments = (ins AnyTensor:$tensor);
|
|
let results = (outs AnyTensor:$tensor);
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR7
|
|
// ERROR7: error: op has a conflict with operands and regions both having an entry with the name 'tensor'
|
|
def OpWithDuplicatedArgResultNames : Op<Test_Dialect, "default_value"> {
|
|
let arguments = (ins AnyTensor:$tensor);
|
|
let regions = (region AnyRegion:$tensor);
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR8
|
|
// ERROR8: error: op has a conflict with results and regions both having an entry with the name 'tensor'
|
|
def OpWithDuplicatedArgResultNames : Op<Test_Dialect, "default_value"> {
|
|
let results = (outs AnyTensor:$tensor);
|
|
let regions = (region AnyRegion:$tensor);
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR9
|
|
// ERROR9: error: op has a conflict with operands and successors both having an entry with the name 'target'
|
|
def OpWithDuplicatedArgResultNames : Op<Test_Dialect, "default_value"> {
|
|
let successors = (successor AnySuccessor:$target);
|
|
let arguments = (ins AnyTensor:$target);
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR10
|
|
// ERROR10: error: op has a conflict with results and successors both having an entry with the name 'target'
|
|
def OpWithDuplicatedArgResultNames : Op<Test_Dialect, "default_value"> {
|
|
let successors = (successor AnySuccessor:$target);
|
|
let results = (outs AnyTensor:$target);
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR11
|
|
// ERROR11: error: op has a conflict with regions and successors both having an entry with the name 'target'
|
|
def OpWithDuplicatedArgResultNames : Op<Test_Dialect, "default_value"> {
|
|
let successors = (successor AnySuccessor:$target);
|
|
let regions = (region AnyRegion:$target);
|
|
}
|
|
#endif
|
|
|
|
#ifdef ERROR12
|
|
def OpTraitA : NativeOpTrait<"OpTraitA"> {}
|
|
def OpTraitB : NativeOpTrait<"OpTraitB", [OpTraitA]> {}
|
|
|
|
// ERROR12: error: OpTraitB requires OpTraitA to precede it in traits list
|
|
def OpTraitWithoutDependentTrait : Op<Test_Dialect, "default_value", [OpTraitB]> {}
|
|
#endif
|
|
|
|
#ifdef ERROR13
|
|
def OpTraitA : NativeOpTrait<"OpTraitA"> {}
|
|
def OpInterfaceB : OpInterface<"OpInterfaceB"> {
|
|
let dependentTraits = [OpTraitA];
|
|
}
|
|
|
|
// ERROR13: error: OpInterfaceB::Trait requires OpTraitA to precede it in traits list
|
|
def OpInterfaceWithoutDependentTrait : Op<Test_Dialect, "default_value", [OpInterfaceB]> {}
|
|
#endif
|