-
Notifications
You must be signed in to change notification settings - Fork 448
/
Copy pathCMakeLists.txt
72 lines (65 loc) · 1.54 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
# Copyright 2013-present Barefoot Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set (IR_SRCS
base.cpp
bitrange.cpp
dbprint.cpp
dbprint-expression.cpp
dbprint-stmt.cpp
dbprint-type.cpp
dbprint-p4.cpp
dump.cpp
expression.cpp
ir.cpp
irutils.cpp
json_parser.cpp
loop-visitor.cpp
node.cpp
pass_manager.cpp
pass_utils.cpp
type.cpp
visitor.cpp
write_context.cpp
)
set (IR_HDRS
configuration.h
dbprint.h
dump.h
id.h
indexed_vector.h
ir-inline.h
ir-tree-macros.h
ir.h
irutils.h
json_generator.h
json_loader.h
json_parser.h
namemap.h
node.h
nodemap.h
pass_manager.h
pass_utils.h
vector.h
visitor.h
)
set (BASE_IR_DEF_FILES
${CMAKE_CURRENT_SOURCE_DIR}/base.def
${CMAKE_CURRENT_SOURCE_DIR}/type.def
${CMAKE_CURRENT_SOURCE_DIR}/expression.def
${CMAKE_CURRENT_SOURCE_DIR}/ir.def
)
set (IR_DEF_FILES ${IR_DEF_FILES} ${BASE_IR_DEF_FILES} PARENT_SCOPE)
add_library (ir STATIC ${IR_SRCS})
target_link_libraries(ir PRIVATE absl::flat_hash_map ${LIBGC_LIBRARIES})
add_dependencies(ir genIR)