diff --git a/IR2Vec b/IR2Vec index a9c6073d9125..3e2f3afaf71f 160000 --- a/IR2Vec +++ b/IR2Vec @@ -1 +1 @@ -Subproject commit a9c6073d912536c133d83017abf5993bd267f37c +Subproject commit 3e2f3afaf71f79ef40a4edf4ba3e8048949aef2e diff --git a/MLCompilerBridge b/MLCompilerBridge index 62439c9bc20c..d03a012728d1 160000 --- a/MLCompilerBridge +++ b/MLCompilerBridge @@ -1 +1 @@ -Subproject commit 62439c9bc20ce2b29e459575afcdd1a9c3e57a1a +Subproject commit d03a012728d1757350bdae2ace47b7ae4f44d6ea diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 1d92b9c5d062..92308983213d 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -82,6 +82,12 @@ if( "MLCompilerBridge" IN_LIST LLVM_ENABLE_PROJECTS ) set( PYTHON_UTILITIES_DIRECTORY ${CMAKE_BINARY_DIR}/tools/MLCompilerBridge/Python-Utilities CACHE PATH "Path to the directory containing the python utilities") endif() +option(LLVM_IR2VEC "where to enable IR2Vec as subproject for LLVM" OFF) + +if( "IR2Vec" IN_LIST LLVM_ENABLE_PROJECTS ) + set( LLVM_IR2VEC ON ) +endif() + # LLVM_ENABLE_PROJECTS_USED is `ON` if the user has ever used the # `LLVM_ENABLE_PROJECTS` CMake cache variable. This exists for # several reasons: