blob: d58cd2b47c55d1177bb18ee4d20c4c4958ba67a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
# This file was generated by the build system used internally in the Yandex monorepo.
# Only simple modifications are allowed (adding source-files to targets, adding simple properties
# like target_include_directories). These modifications will be ported to original
# ya.make files by maintainers. Any complex modifications which can't be ported back to the
# original buildsystem will not be accepted.
add_library(yql-minikql-computation)
target_compile_options(yql-minikql-computation PRIVATE
-DUSE_CURRENT_UDF_ABI_VERSION
-Wno-everything
)
target_link_libraries(yql-minikql-computation PUBLIC
contrib-libs-linux-headers
contrib-libs-cxxsupp
yutil
libs-apache-arrow
library-cpp-enumbitset
library-cpp-packedtypes
library-cpp-random_provider
library-cpp-time_provider
library-yql-minikql
yql-minikql-arrow
parser-pg_wrapper-interface
yql-public-udf
library-yql-utils
yql-minikql-codegen
llvm12-lib-IR
lib-ExecutionEngine-MCJIT
llvm12-lib-Linker
lib-Target-X86
Target-X86-AsmParser
lib-Transforms-IPO
library-cpp-resource
)
target_sources(yql-minikql-computation PRIVATE
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_computation_node.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_computation_node_codegen.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_computation_node_graph.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_computation_node_graph_saveload.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_computation_node_holders.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_computation_node_impl.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_computation_node_pack.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_computation_node_pack_impl.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_custom_list.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_validate.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_value_builder.cpp
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/presort.cpp
)
add_global_library_for(yql-minikql-computation.global yql-minikql-computation)
target_compile_options(yql-minikql-computation.global PRIVATE
-DUSE_CURRENT_UDF_ABI_VERSION
-Wno-everything
)
target_link_libraries(yql-minikql-computation.global PUBLIC
contrib-libs-linux-headers
contrib-libs-cxxsupp
yutil
libs-apache-arrow
library-cpp-enumbitset
library-cpp-packedtypes
library-cpp-random_provider
library-cpp-time_provider
library-yql-minikql
yql-minikql-arrow
parser-pg_wrapper-interface
yql-public-udf
library-yql-utils
yql-minikql-codegen
llvm12-lib-IR
lib-ExecutionEngine-MCJIT
llvm12-lib-Linker
lib-Target-X86
Target-X86-AsmParser
lib-Transforms-IPO
library-cpp-resource
)
target_sources(yql-minikql-computation.global PRIVATE
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/4dc9194f4b8472492eed05889d2e69e4.cpp
)
add_custom_command(
OUTPUT
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack.bc_optimized.bc
DEPENDS
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack.bc_merged.bc
COMMAND
${LLVMOPT}
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack.bc_merged.bc
-o
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack.bc_optimized.bc
-O2
-globalopt
-globaldce
-internalize
-internalize-public-api-list=FetchNextItem#GetElement#GetVariantItem#NextListItem#NextDictItem#PackString#PackStringData#PackBool#PackByte#PackFloat#PackDouble#PackInt32#PackUInt32#PackInt64#PackUInt64#GetListIterator#GetDictIterator#GetOptionalValue
)
add_custom_command(
OUTPUT
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack.bc_merged.bc
DEPENDS
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack_bc.cpp.bc
COMMAND
${LLVMLINK}
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack_bc.cpp.bc
-o
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack.bc_merged.bc
)
llvm_compile_cxx(yql-minikql-computation.global
\${CMAKE_SOURCE_DIR}/ydb/library/yql/minikql/computation/mkql_pack_bc.cpp
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack_bc.cpp.bc
${CLANGPLUSPLUS}
-Wno-unknown-warning-option
-emit-llvm
)
resources(yql-minikql-computation.global
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/4dc9194f4b8472492eed05889d2e69e4.cpp
INPUTS
\${CMAKE_BINARY_DIR}/ydb/library/yql/minikql/computation/mkql_pack.bc_optimized.bc
KEYS
/llvm_bc/mkql_pack.bc
)
|