File tree Expand file tree Collapse file tree 7 files changed +19
-12
lines changed
include/mlir/ExecutionEngine Expand file tree Collapse file tree 7 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 1
- // ===- mlir_runner_utils .h - Utils for debugging MLIR CPU execution -------===//
1
+ // ===- RunnerUtils .h - Utils for debugging MLIR execution ---------- -------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- #ifndef MLIR_CPU_RUNNER_MLIRUTILS_H_
9
- #define MLIR_CPU_RUNNER_MLIRUTILS_H_
8
+
9
+ #ifndef EXECUTIONENGINE_RUNNERUTILS_H_
10
+ #define EXECUTIONENGINE_RUNNERUTILS_H_
10
11
11
12
#include < assert.h>
12
13
#include < cstdint>
@@ -291,4 +292,4 @@ extern "C" MLIR_RUNNER_UTILS_EXPORT void print_close();
291
292
extern " C" MLIR_RUNNER_UTILS_EXPORT void print_comma ();
292
293
extern " C" MLIR_RUNNER_UTILS_EXPORT void print_newline ();
293
294
294
- #endif // MLIR_CPU_RUNNER_MLIRUTILS_H_
295
+ #endif // EXECUTIONENGINE_RUNNERUTILS_H_
Original file line number Diff line number Diff line change
1
+ set (LLVM_OPTIONAL_SOURCES
2
+ ExecutionEngine.cpp
3
+ RunnerUtils.cpp
4
+ OptUtils.cpp
5
+ )
6
+
1
7
llvm_map_components_to_libnames (outlibs "nativecodegen" "IPO" )
2
8
add_llvm_library (MLIRExecutionEngine
3
9
ExecutionEngine.cpp
@@ -27,3 +33,6 @@ target_link_libraries(MLIRExecutionEngine
27
33
LLVMTransformUtils
28
34
29
35
${outlibs} )
36
+
37
+ add_llvm_library (MLIRRunnerUtils SHARED RunnerUtils.cpp )
38
+ target_compile_definitions (MLIRRunnerUtils PRIVATE mlir_runner_utils_EXPORTS )
Original file line number Diff line number Diff line change 1
- // ===- mlir_runner_utils .cpp - Utils for MLIR CPU execution ---------------===//
1
+ // ===- RunnerUtils .cpp - Utils for MLIR CPU execution ------ ---------------===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
11
11
//
12
12
// ===----------------------------------------------------------------------===//
13
13
14
- #include " include/mlir_runner_utils .h"
14
+ #include " mlir/ExecutionEngine/RunnerUtils .h"
15
15
16
16
#include < cinttypes>
17
17
#include < cstdio>
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ set(MLIR_TEST_DEPENDS
40
40
mlir-translate
41
41
cblas
42
42
cblas_interface
43
- mlir_runner_utils
43
+ MLIRRunnerUtils
44
44
)
45
45
46
46
if (LLVM_BUILD_EXAMPLES )
Original file line number Diff line number Diff line change 1
1
set (LLVM_OPTIONAL_SOURCES
2
2
cblas.cpp
3
3
cblas_interface.cpp
4
- mlir_runner_utils.cpp
5
4
)
6
5
7
6
add_llvm_library (cblas SHARED cblas.cpp )
@@ -11,5 +10,3 @@ add_llvm_library(cblas_interface SHARED cblas_interface.cpp)
11
10
target_link_libraries (cblas_interface PRIVATE cblas )
12
11
target_compile_definitions (cblas_interface PRIVATE cblas_interface_EXPORTS )
13
12
14
- add_llvm_library (mlir_runner_utils SHARED mlir_runner_utils.cpp )
15
- target_compile_definitions (mlir_runner_utils PRIVATE mlir_runner_utils_EXPORTS )
Original file line number Diff line number Diff line change 8
8
#ifndef MLIR_CPU_RUNNER_CBLAS_H_
9
9
#define MLIR_CPU_RUNNER_CBLAS_H_
10
10
11
- #include "mlir_runner_utils .h"
11
+ #include "mlir/ExecutionEngine/RunnerUtils .h"
12
12
13
13
#ifdef _WIN32
14
14
#ifndef MLIR_CBLAS_EXPORT
Original file line number Diff line number Diff line change 8
8
#ifndef MLIR_CPU_RUNNER_CBLAS_INTERFACE_H_
9
9
#define MLIR_CPU_RUNNER_CBLAS_INTERFACE_H_
10
10
11
- #include "mlir_runner_utils .h"
11
+ #include "mlir/ExecutionEngine/RunnerUtils .h"
12
12
13
13
#ifdef _WIN32
14
14
#ifndef MLIR_CBLAS_INTERFACE_EXPORT
You can’t perform that action at this time.
0 commit comments