//===- pdl.c - Test of PDL dialect C API ----------------------------------===// // // 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-pdl-test 2>&1 | FileCheck %s #include "mlir-c/Dialect/PDL.h" #include "mlir-c/BuiltinTypes.h" #include "mlir-c/IR.h" #include <assert.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> // CHECK-LABEL: testAttributeType void testAttributeType(MlirContext ctx) { … } // CHECK-LABEL: testOperationType void testOperationType(MlirContext ctx) { … } // CHECK-LABEL: testRangeType void testRangeType(MlirContext ctx) { … } // CHECK-LABEL: testTypeType void testTypeType(MlirContext ctx) { … } // CHECK-LABEL: testValueType void testValueType(MlirContext ctx) { … } int main(void) { … }