//===- irdl.c - Test for the C bindings for IRDL registration -------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM // Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /* RUN: mlir-capi-irdl-test 2>&1 | FileCheck %s */ #include "mlir-c/Dialect/IRDL.h" #include "mlir-c/IR.h" const char irdlDialect[] = …; // CHECK: module { // CHECK-NEXT: %[[RES:.*]] = "foo.op"() : () -> i32 // CHECK-NEXT: "bar.op"(%[[RES]]) : (i32) -> () // CHECK-NEXT: } const char newDialectUsage[] = …; int main(void) { … }