File tree Expand file tree Collapse file tree 4 files changed +46
-3
lines changed
compiler_gym/envs/llvm/service Expand file tree Collapse file tree 4 files changed +46
-3
lines changed Original file line number Diff line number Diff line change @@ -367,9 +367,9 @@ cc_library(
367
367
],
368
368
)
369
369
""" ,
370
- sha256 = "92cbe1d023593c2d45588caf2b1530795f376045e8bc3d2868ba349fb8d61ea5 " ,
371
- strip_prefix = "IR2Vec-1.1.0 " ,
372
- urls = ["https://github.com/IITH-Compilers /IR2Vec/archive/refs/tags/v1.1.0 .tar.gz" ],
370
+ sha256 = "92cbe1d0235a3c2d45588caf2b1530795f376045e8bc3d2868ba349fb8d61ea5 " ,
371
+ strip_prefix = "IR2Vec-828e50584b9c8bc305208e22d2cca272bdb1ab64 " ,
372
+ urls = ["https://github.com/ChrisCummins /IR2Vec/archive/828e50584b9c8bc305208e22d2cca272bdb1ab64 .tar.gz" ],
373
373
)
374
374
375
375
# === Eigen ===
Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ cg_cc_library(
238
238
CpuInfo::cpuinfo
239
239
Boost::filesystem
240
240
glog::glog
241
+ ir2vec::ir2vec
241
242
${_LLVM_LIBS}
242
243
magic_enum
243
244
nlohmann_json::nlohmann_json
Original file line number Diff line number Diff line change @@ -135,6 +135,25 @@ else()
135
135
find_package (glog REQUIRED )
136
136
endif ()
137
137
138
+ # === IR2Vec ===
139
+ # https://github.com/IITH-Compilers/IR2Vec
140
+
141
+ set (COMPILER_GYM_IR2VEC_PROVIDER "internal"
142
+ CACHE STRING "Find or build IR2Vec together with Compiler Gym."
143
+ )
144
+ set_property (
145
+ CACHE COMPILER_GYM_IR2VEC_PROVIDER
146
+ PROPERTY STRINGS "internal" "external"
147
+ )
148
+ if (COMPILER_GYM_IR2VEC_PROVIDER STREQUAL "internal" )
149
+ build_external_cmake_project (
150
+ NAME ir2vec
151
+ SRC_DIR "${CMAKE_CURRENT_LIST_DIR} /ir2vec"
152
+ )
153
+ else ()
154
+ find_package (ir2vec REQUIRED )
155
+ endif ()
156
+
138
157
# === LLVM ===
139
158
140
159
set (COMPILER_GYM_LLVM_PROVIDER "internal"
Original file line number Diff line number Diff line change
1
+ # Copyright (c) Facebook, Inc. and its affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ project (ir2vec )
7
+ cmake_minimum_required (VERSION 3.15 )
8
+
9
+ include (ExternalProject )
10
+
11
+ externalproject_add (
12
+ ir2vec
13
+ PREFIX "${CMAKE_CURRENT_BINARY_DIR} /ir2vec"
14
+ GIT_REPOSITORY "https://github.com/ChrisCummins/IR2Vec.git"
15
+ GIT_TAG 828e50584b9c8bc305208e22d2cca272bdb1ab64
16
+ CMAKE_ARGS
17
+ -C "${CMAKE_CURRENT_BINARY_DIR} /ir2vec_initial_cache.cmake"
18
+ "-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} "
19
+ "-DLT_LLVM_INSTALL_DIR=${CMAKE_INSTALL_PREFIX} "
20
+ USES_TERMINAL_CONFIGURE TRUE
21
+ USES_TERMINAL_BUILD TRUE
22
+ USES_TERMINAL_INSTALL TRUE
23
+ )
You can’t perform that action at this time.
0 commit comments