forked from ydb-platform/ydb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YQL-15941 no_llvm versions of purecalc and embedded (ydb-platform#707)
* init * build
- Loading branch information
Showing
46 changed files
with
494 additions
and
65 deletions.
There are no files selected for viewing
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
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
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
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
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,25 @@ | ||
#include "codegen.h" | ||
|
||
#include <util/generic/yexception.h> | ||
|
||
namespace NYql { | ||
namespace NCodegen { | ||
|
||
ICodegen::TPtr ICodegen::Make(ETarget target, ESanitize sanitize) { | ||
Y_UNUSED(target); | ||
Y_UNUSED(sanitize); | ||
throw yexception() << "Codegen is not available"; | ||
} | ||
|
||
ICodegen::TSharedPtr ICodegen::MakeShared(ETarget target, ESanitize sanitize) { | ||
Y_UNUSED(target); | ||
Y_UNUSED(sanitize); | ||
throw yexception() << "Codegen is not available"; | ||
} | ||
|
||
bool ICodegen::IsCodegenAvailable() { | ||
return false; | ||
} | ||
|
||
} | ||
} |
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,17 @@ | ||
LIBRARY() | ||
|
||
SRCDIR( | ||
ydb/library/yql/minikql/codegen | ||
) | ||
|
||
ADDINCL( | ||
ydb/library/yql/minikql/codegen | ||
) | ||
|
||
SRCS( | ||
codegen_dummy.cpp | ||
) | ||
|
||
PROVIDES(MINIKQL_CODEGEN) | ||
|
||
END() |
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 |
---|---|---|
@@ -1 +1 @@ | ||
RECURSE(llvm llvm14) | ||
RECURSE(no_llvm llvm llvm14) |
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
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
22 changes: 22 additions & 0 deletions
22
ydb/library/yql/providers/yt/codec/codegen/no_llvm/ya.make
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,22 @@ | ||
LIBRARY() | ||
|
||
ADDINCL( | ||
ydb/library/yql/providers/yt/codec/codegen | ||
) | ||
|
||
SRCDIR( | ||
ydb/library/yql/providers/yt/codec/codegen | ||
) | ||
|
||
SRCS( | ||
yt_codec_cg_dummy.cpp | ||
) | ||
|
||
PEERDIR( | ||
) | ||
|
||
PROVIDES(YT_CODEC_CODEGEN) | ||
|
||
YQL_LAST_ABI_VERSION() | ||
|
||
END() |
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 |
---|---|---|
|
@@ -72,8 +72,14 @@ ENDIF() | |
|
||
YQL_LAST_ABI_VERSION() | ||
|
||
PROVIDES(YT_CODEC_CODEGEN) | ||
|
||
END() | ||
|
||
RECURSE( | ||
no_llvm | ||
) | ||
|
||
RECURSE_FOR_TESTS( | ||
ut | ||
) |
38 changes: 38 additions & 0 deletions
38
ydb/library/yql/providers/yt/codec/codegen/yt_codec_cg_dummy.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,38 @@ | ||
#include "yt_codec_cg.h" | ||
|
||
#include <util/generic/yexception.h> | ||
|
||
namespace NYql { | ||
|
||
TString GetYtCodecBitCode() { | ||
throw yexception() << "Codegen is not available"; | ||
} | ||
|
||
void YtCodecAddMappings(NCodegen::ICodegen& codegen) { | ||
Y_UNUSED(codegen); | ||
throw yexception() << "Codegen is not available"; | ||
} | ||
|
||
template<bool Flat> | ||
THolder<IYtCodecCgWriter> MakeYtCodecCgWriter(const std::unique_ptr<NCodegen::ICodegen>& codegen, const void* cookie) { | ||
Y_UNUSED(codegen); | ||
Y_UNUSED(cookie); | ||
throw yexception() << "Codegen is not available"; | ||
} | ||
|
||
template THolder<IYtCodecCgWriter> MakeYtCodecCgWriter<true>(const std::unique_ptr<NCodegen::ICodegen>& codegen, const void* cookie); | ||
template THolder<IYtCodecCgWriter> MakeYtCodecCgWriter<false>(const std::unique_ptr<NCodegen::ICodegen>& codegen, const void* cookie); | ||
|
||
THolder<IYtCodecCgReader> MakeYtCodecCgReader(const std::unique_ptr<NCodegen::ICodegen>& codegen, | ||
const NKikimr::NMiniKQL::THolderFactory& holderFactory, const void* cookie) { | ||
Y_UNUSED(codegen); | ||
Y_UNUSED(holderFactory); | ||
Y_UNUSED(cookie); | ||
throw yexception() << "Codegen is not available"; | ||
} | ||
|
||
extern "C" void ThrowBadDecimal() { | ||
throw yexception() << "Codegen is not available"; | ||
} | ||
|
||
} |
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,26 @@ | ||
UNITTEST_FOR(ydb/library/yql/providers/yt/codec) | ||
|
||
SRCDIR( | ||
ydb/library/yql/providers/yt/codec/ut | ||
) | ||
|
||
SRCS( | ||
yt_codec_io_ut.cpp | ||
) | ||
|
||
PEERDIR( | ||
library/cpp/yson/node | ||
ydb/library/yql/minikql/codegen/no_llvm | ||
ydb/library/yql/minikql/computation/no_llvm | ||
ydb/library/yql/public/udf/service/exception_policy | ||
ydb/library/yql/sql | ||
ydb/library/yql/sql/pg_dummy | ||
ydb/library/yql/providers/common/codec | ||
ydb/library/yql/providers/common/mkql | ||
ydb/library/yql/providers/yt/lib/yson_helpers | ||
ydb/library/yql/providers/yt/codec/codegen/no_llvm | ||
) | ||
|
||
YQL_LAST_ABI_VERSION() | ||
|
||
END() |
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
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
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
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
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
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,23 @@ | ||
LIBRARY() | ||
|
||
OWNER( | ||
g:yql | ||
g:yql_ydb_core | ||
) | ||
|
||
NO_COMPILER_WARNINGS() | ||
|
||
PEERDIR( | ||
ydb/library/yql/minikql/codegen/llvm | ||
ydb/library/yql/minikql/invoke_builtins/llvm | ||
contrib/libs/llvm12/lib/IR | ||
contrib/libs/llvm12/lib/ExecutionEngine/MCJIT | ||
contrib/libs/llvm12/lib/Linker | ||
contrib/libs/llvm12/lib/Target/X86 | ||
contrib/libs/llvm12/lib/Target/X86/AsmParser | ||
contrib/libs/llvm12/lib/Transforms/IPO | ||
) | ||
|
||
INCLUDE(../ya.make.inc) | ||
|
||
END() |
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,23 @@ | ||
LIBRARY() | ||
|
||
OWNER( | ||
g:yql | ||
g:yql_ydb_core | ||
) | ||
|
||
NO_COMPILER_WARNINGS() | ||
|
||
PEERDIR( | ||
ydb/library/yql/minikql/codegen/llvm14 | ||
ydb/library/yql/minikql/invoke_builtins/llvm14 | ||
contrib/libs/llvm14/lib/IR | ||
contrib/libs/llvm14/lib/ExecutionEngine/MCJIT | ||
contrib/libs/llvm14/lib/Linker | ||
contrib/libs/llvm14/lib/Target/X86 | ||
contrib/libs/llvm14/lib/Target/X86/AsmParser | ||
contrib/libs/llvm14/lib/Transforms/IPO | ||
) | ||
|
||
INCLUDE(../ya.make.inc) | ||
|
||
END() |
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,16 @@ | ||
LIBRARY() | ||
|
||
OWNER( | ||
g:yql | ||
g:yql_ydb_core | ||
) | ||
|
||
CXXFLAGS(-DMKQL_DISABLE_CODEGEN) | ||
|
||
ADDINCL(GLOBAL ydb/library/yql/minikql/codegen/llvm_stub) | ||
|
||
INCLUDE(../ya.make.inc) | ||
|
||
PEERDIR(ydb/library/yql/minikql/invoke_builtins/no_llvm) | ||
|
||
END() |
Oops, something went wrong.