llvm/mlir/test/CAPI/pass.c

//===- pass.c - Simple test of C APIs -------------------------------------===//
//
// 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-pass-test 2>&1 | FileCheck %s
 */

#include "mlir-c/Pass.h"
#include "mlir-c/Dialect/Func.h"
#include "mlir-c/IR.h"
#include "mlir-c/RegisterEverything.h"
#include "mlir-c/Transforms.h"

#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

static void registerAllUpstreamDialects(MlirContext ctx) {}

void testRunPassOnModule(void) {}

void testRunPassOnNestedModule(void) {}

static void printToStderr(MlirStringRef str, void *userData) {}

static void dontPrint(MlirStringRef str, void *userData) {}

void testPrintPassPipeline(void) {}

void testParsePassPipeline(void) {}

void testParseErrorCapture(void) {}

struct TestExternalPassUserData {};
TestExternalPassUserData;

void testConstructExternalPass(void *userData) {}

void testDestructExternalPass(void *userData) {}

MlirLogicalResult testInitializeExternalPass(MlirContext ctx, void *userData) {}

MlirLogicalResult testInitializeFailingExternalPass(MlirContext ctx,
                                                    void *userData) {}

void *testCloneExternalPass(void *userData) {}

void testRunExternalPass(MlirOperation op, MlirExternalPass pass,
                         void *userData) {}

void testRunExternalFuncPass(MlirOperation op, MlirExternalPass pass,
                             void *userData) {}

void testRunFailingExternalPass(MlirOperation op, MlirExternalPass pass,
                                void *userData) {}

MlirExternalPassCallbacks makeTestExternalPassCallbacks(
    MlirLogicalResult (*initializePass)(MlirContext ctx, void *userData),
    void (*runPass)(MlirOperation op, MlirExternalPass, void *userData)) {}

void testExternalPass(void) {}

int main(void) {}