//===- translation.c - Test MLIR Target translations ----------------------===// // // 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-translation-test 2>&1 | FileCheck %s #include "llvm-c/Core.h" #include "llvm-c/Support.h" #include "llvm-c/Types.h" #include "mlir-c/BuiltinTypes.h" #include "mlir-c/Dialect/LLVM.h" #include "mlir-c/IR.h" #include "mlir-c/RegisterEverything.h" #include "mlir-c/Support.h" #include "mlir-c/Target/LLVMIR.h" #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // CHECK-LABEL: testToLLVMIR() static void testToLLVMIR(MlirContext ctx) { … } int main(void) { … }