mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
the new wrapper function will make a call to the main compiled function, and we got some problem in the GOT/PLT due to function of the same name. So now we prefiex with `concrete_` to avoid that.
23 lines
578 B
C++
23 lines
578 B
C++
// Part of the Concrete Compiler Project, under the BSD3 License with Zama
|
|
// Exceptions. See
|
|
// https://github.com/zama-ai/concrete-compiler-internal/blob/main/LICENSE.txt
|
|
// for license information.
|
|
|
|
#include <concretelang/Support/Utils.h>
|
|
|
|
namespace concretelang {
|
|
|
|
std::string prefixFuncName(llvm::StringRef funcName) {
|
|
return "concrete_" + funcName.str();
|
|
}
|
|
|
|
std::string makePackedFunctionName(llvm::StringRef name) {
|
|
return "_mlir_" + name.str();
|
|
}
|
|
|
|
uint64_t numArgOfRankedMemrefCallingConvention(uint64_t rank) {
|
|
return 3 + 2 * rank;
|
|
}
|
|
|
|
} // namespace concretelang
|