-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathPasses.cpp
39 lines (33 loc) · 1.14 KB
/
Passes.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//===-- Passes.cpp - DESC ---------------------------------------*- C++ -*-===//
//
// This file is licensed 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
//
//===----------------------------------------------------------------------===//
#include "gc/Transforms/Passes.h"
#include "gc/Dialect/CPURuntime/Transforms/CPURuntimePasses.h"
#include "mlir-c/Pass.h"
#include "mlir/CAPI/Pass.h"
#include "gc/Dialect/CPURuntime/Transforms/CPURuntimePasses.capi.h.inc"
#include "gc/Transforms/Passes.capi.h.inc"
using namespace mlir::gc;
using namespace mlir::cpuruntime;
namespace mlir::gc {
void registerCPUPipeline();
void registerGPUPipeline();
} // namespace mlir::gc
#ifdef __cplusplus
extern "C" {
#endif
#include "gc/Dialect/CPURuntime/Transforms/CPURuntimePasses.capi.cpp.inc"
#include "gc/Transforms/Passes.capi.cpp.inc"
MLIR_CAPI_EXPORTED void mlirRegisterAllGCPassesAndPipelines() {
registerCPUPipeline();
registerGPUPipeline();
mlirRegisterCPURuntimePasses();
mlirRegisterGraphCompilerPasses();
}
#ifdef __cplusplus
}
#endif