-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathCMakeLists.txt
88 lines (80 loc) · 1.87 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
# ../CompilerGym/compiler_gym/third_party/llvm/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
llvm
SRCS
"__init__.py"
DEPS
compiler_gym::util::util
PUBLIC
)
llvm_map_components_to_libnames(llvm_libs support irreader core)
cg_cc_binary(
NAME
compute_ir_instruction_count
SRCS
"compute_ir_instruction_count.cc"
COPTS
"-DGOOGLE_PROTOBUF_NO_RTTI"
"-fno-rtti"
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
)
cg_py_library(
NAME
instcount
SRCS
"instcount.py"
PUBLIC
)
llvm_map_components_to_libnames(llvm_libs support core analysis)
cg_cc_library(
NAME
InstCount
COPTS
"-DGOOGLE_PROTOBUF_NO_RTTI"
"-fno-rtti"
HDRS
"InstCount.h"
SRCS
"InstCount.cc"
ABS_DEPS
glog::glog
${llvm_libs}
INCLUDES
${LLVM_INCLUDE_DIRS}
DEFINES
${LLVM_DEFINITIONS}
PUBLIC
)
cg_cc_binary(
NAME
PrintInstCountFeatureNames
SRCS
"PrintInstCountFeatureNames.cc"
DEPS
::InstCount
)
### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###