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
76 lines
1.8 KiB
TableGen
76 lines
1.8 KiB
TableGen
// RUN: mlir-tblgen -gen-op-decls -I %S/../../include %s | FileCheck %s --check-prefix=DECL
|
|
// RUN: mlir-tblgen -gen-op-defs -I %S/../../include %s | FileCheck %s --check-prefix=DEF
|
|
|
|
include "mlir/IR/OpBase.td"
|
|
|
|
// Check using the dialect name as the namespace
|
|
def A_Dialect : Dialect {
|
|
let name = "a";
|
|
}
|
|
|
|
def A_SomeOp : Op<A_Dialect, "some_op", []>;
|
|
|
|
// Check a single namespace
|
|
def B_Dialect : Dialect {
|
|
let name = "b";
|
|
let cppNamespace = "BNS";
|
|
}
|
|
|
|
// Check nested namespaces
|
|
def B_SomeOp : Op<B_Dialect, "some_op", []>;
|
|
|
|
def C_Dialect : Dialect {
|
|
let name = "c";
|
|
let cppNamespace = "::C::CC";
|
|
}
|
|
|
|
def C_SomeOp : Op<C_Dialect, "some_op", []>;
|
|
|
|
// Check no namespaces
|
|
def D_Dialect : Dialect {
|
|
let name = "d";
|
|
let cppNamespace = "";
|
|
}
|
|
|
|
def D_DSomeOp : Op<D_Dialect, "some_op", []>;
|
|
|
|
// Check op with namespace override.
|
|
def E_Dialect : Dialect {
|
|
let name = "e";
|
|
let cppNamespace = "ENS";
|
|
}
|
|
|
|
def E_SomeOp : Op<E_Dialect, "some_op", []>;
|
|
def E_SpecialNSOp : Op<E_Dialect, "special_ns_op", []> {
|
|
let cppNamespace = "::E::SPECIAL_NS";
|
|
}
|
|
|
|
// DEF-LABEL: GET_OP_LIST
|
|
// DEF: a::SomeOp
|
|
// DEF-NEXT: BNS::SomeOp
|
|
// DEF-NEXT: ::C::CC::SomeOp
|
|
// DEF-NEXT: DSomeOp
|
|
// DEF-NEXT: ENS::SomeOp
|
|
// DEF-NEXT: ::E::SPECIAL_NS::SpecialNSOp
|
|
|
|
// DEF-LABEL: GET_OP_CLASSES
|
|
// DEF: a::SomeOp definitions
|
|
// DEF: BNS::SomeOp definitions
|
|
// DEF: ::C::CC::SomeOp definitions
|
|
// DEF: DSomeOp definitions
|
|
// DEF: ENS::SomeOp definitions
|
|
// DEF: ::E::SPECIAL_NS::SpecialNSOp definitions
|
|
|
|
// DECL-LABEL: GET_OP_CLASSES
|
|
// DECL: namespace a {
|
|
// DECL: a::SomeOp declarations
|
|
// DECL: namespace BNS {
|
|
// DECL: BNS::SomeOp declarations
|
|
// DECL: namespace C::CC {
|
|
// DECL: ::C::CC::SomeOp declarations
|
|
// DECL: DSomeOp declarations
|
|
// DECL: namespace ENS {
|
|
// DECL: ENS::SomeOp declarations
|
|
// DECL: namespace E::SPECIAL_NS {
|
|
// DECL: ::E::SPECIAL_NS::SpecialNSOp declarations
|