-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): move the use of conflicting symbols to the runtime lib
- Loading branch information
1 parent
fac5c0a
commit 8cf8d99
Showing
4 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
compilers/concrete-compiler/compiler/include/concretelang/Runtime/utils.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Part of the Concrete Compiler Project, under the BSD3 License with Zama | ||
// Exceptions. See | ||
// https://github.com/zama-ai/concrete/blob/main/LICENSE.txt | ||
// for license information. | ||
|
||
#ifndef CONCRETELANG_RUNTIME_UTILS_H | ||
#define CONCRETELANG_RUNTIME_UTILS_H | ||
|
||
#include "llvm/Support/TargetSelect.h" | ||
|
||
namespace mlir { | ||
namespace concretelang { | ||
|
||
// Mainly a wrapper to some LLVM functions. The reason to have this wrapper is | ||
// to avoid linking conflicts between the python binary extension, and LLVM. | ||
void LLVMInitializeNativeTarget(); | ||
|
||
} // namespace concretelang | ||
} // namespace mlir | ||
|
||
#endif |
4 changes: 2 additions & 2 deletions
4
compilers/concrete-compiler/compiler/lib/Runtime/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
compilers/concrete-compiler/compiler/lib/Runtime/utils.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Part of the Concrete Compiler Project, under the BSD3 License with Zama | ||
// Exceptions. See | ||
// https://github.com/zama-ai/concrete/blob/main/LICENSE.txt | ||
// for license information. | ||
|
||
#include "concretelang/Runtime/utils.h" | ||
|
||
namespace mlir { | ||
namespace concretelang { | ||
void LLVMInitializeNativeTarget() { | ||
llvm::InitializeNativeTarget(); | ||
llvm::InitializeNativeTargetAsmPrinter(); | ||
} | ||
} // namespace concretelang | ||
} // namespace mlir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters