mirror of
https://github.com/luxfhe/torus.git
synced 2026-10-30 17:07:26 +00:00
The headers said 'BSD3 License with Lux Industries Exceptions', which is not a licence that exists — the sweep that removed the upstream vendor's name substituted ours into the licence title instead of correcting it. LICENSE.txt is the BSD 3-Clause Clear License and the headers now say so.
23 lines
534 B
C++
23 lines
534 B
C++
// Part of the Torus Compiler Project, under the BSD 3-Clause Clear
|
|
// License. See
|
|
// https://github.com/luxfhe/torus/blob/main/LICENSE.txt
|
|
// for license information.
|
|
|
|
#include <toruslang/Support/Utils.h>
|
|
|
|
namespace toruslang {
|
|
|
|
std::string prefixFuncName(llvm::StringRef funcName) {
|
|
return "torus_" + funcName.str();
|
|
}
|
|
|
|
std::string makePackedFunctionName(llvm::StringRef name) {
|
|
return "_mlir_" + name.str();
|
|
}
|
|
|
|
uint64_t numArgOfRankedMemrefCallingConvention(uint64_t rank) {
|
|
return 3 + 2 * rank;
|
|
}
|
|
|
|
} // namespace toruslang
|