-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathCMakeLists.txt
70 lines (64 loc) · 1.65 KB
/
CMakeLists.txt
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
# ../CompilerGym/compiler_gym/third_party/autophase/BUILD #
# #
# Use cg_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
# #
# To disable autogeneration for this file entirely, delete this header. #
################################################################################
cg_add_all_subdirs()
cg_py_library(
NAME
autophase
SRCS
"__init__.py"
PUBLIC
)
llvm_map_components_to_libnames(_LLVM_LIBS analysis core support)
cg_cc_library(
NAME
InstCount
COPTS
"-DGOOGLE_PROTOBUF_NO_RTTI"
"-fno-rtti"
HDRS
"InstCount.h"
SRCS
"InstCount.cc"
ABS_DEPS
${_LLVM_LIBS}
INCLUDES
${LLVM_INCLUDE_DIRS}
DEFINES
${LLVM_DEFINITIONS}
PUBLIC
)
llvm_map_components_to_libnames(_LLVM_LIBS analysis core irreader support)
cg_cc_binary(
NAME
compute_autophase
SRCS
"compute_autophase.cc"
COPTS
"-DGOOGLE_PROTOBUF_NO_RTTI"
"-fno-rtti"
DEPS
::InstCount
ABS_DEPS
glog::glog
${_LLVM_LIBS}
INCLUDES
${LLVM_INCLUDE_DIRS}
DEFINES
${LLVM_DEFINITIONS}
)
cg_genrule(
NAME libLLVMPolly
OUTS "libLLVMPolly.so"
COMMAND
"cp $<TARGET_FILE:LLVMPolly> $@"
ABS_DEPENDS
LLVMPolly
)
### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###