aboutsummaryrefslogtreecommitdiffstats
path: root/yt
diff options
context:
space:
mode:
authorvvvv <vvvv@yandex-team.com>2025-01-14 11:57:29 +0300
committervvvv <vvvv@yandex-team.com>2025-01-14 12:19:19 +0300
commit5593aaf904fb630ebded70fb964bc73b39bc053a (patch)
tree8d52fa90c984c79168da59d5f12a0a13c1d8a61b /yt
parentc84f9bf19d66e2e3d96a52f6f2181676ebca8a52 (diff)
downloadydb-5593aaf904fb630ebded70fb964bc73b39bc053a.tar.gz
minikql - llvm16 compatibility (opaque pointers and some other stuff)
commit_hash:c166e0d029d87d2a10e5adfc3acf20a849670881
Diffstat (limited to 'yt')
-rw-r--r--yt/yql/providers/yt/comp_nodes/dq/dq_yt_reader_impl.h6
-rw-r--r--yt/yql/providers/yt/comp_nodes/yql_mkql_input.cpp8
-rw-r--r--yt/yql/providers/yt/comp_nodes/yql_mkql_output.cpp2
3 files changed, 8 insertions, 8 deletions
diff --git a/yt/yql/providers/yt/comp_nodes/dq/dq_yt_reader_impl.h b/yt/yql/providers/yt/comp_nodes/dq/dq_yt_reader_impl.h
index e10df53d2a..d4e2a867e5 100644
--- a/yt/yql/providers/yt/comp_nodes/dq/dq_yt_reader_impl.h
+++ b/yt/yql/providers/yt/comp_nodes/dq/dq_yt_reader_impl.h
@@ -138,7 +138,7 @@ public:
const auto good = BasicBlock::Create(context, "good", ctx.Func);
const auto done = BasicBlock::Create(context, "done", ctx.Func);
- BranchInst::Create(make, main, IsInvalid(statePtr, block), block);
+ BranchInst::Create(make, main, IsInvalid(statePtr, block, context), block);
block = make;
const auto self = CastInst::Create(Instruction::IntToPtr, ConstantInt::get(Type::getInt64Ty(context), uintptr_t(static_cast<const TDqYtReadWrapperBase<T, IS>*>(this))), structPtrType, "self", block);
@@ -160,10 +160,10 @@ public:
const auto fetch = CallInst::Create(funcType, funcPtr, { stateArg }, "fetch", block);
const auto result = PHINode::Create(statusType, 2U, "result", done);
- const auto special = SelectInst::Create(IsYield(fetch, block), ConstantInt::get(statusType, static_cast<i32>(EFetchResult::Yield)), ConstantInt::get(statusType, static_cast<i32>(EFetchResult::Finish)), "special", block);
+ const auto special = SelectInst::Create(IsYield(fetch, block, context), ConstantInt::get(statusType, static_cast<i32>(EFetchResult::Yield)), ConstantInt::get(statusType, static_cast<i32>(EFetchResult::Finish)), "special", block);
result->addIncoming(special, block);
- BranchInst::Create(done, good, IsSpecial(fetch, block), block);
+ BranchInst::Create(done, good, IsSpecial(fetch, block, context), block);
block = good;
diff --git a/yt/yql/providers/yt/comp_nodes/yql_mkql_input.cpp b/yt/yql/providers/yt/comp_nodes/yql_mkql_input.cpp
index 743d3c546e..21f48060eb 100644
--- a/yt/yql/providers/yt/comp_nodes/yql_mkql_input.cpp
+++ b/yt/yql/providers/yt/comp_nodes/yql_mkql_input.cpp
@@ -218,7 +218,7 @@ public:
const auto make = BasicBlock::Create(context, "make", ctx.Func);
const auto main = BasicBlock::Create(context, "main", ctx.Func);
- BranchInst::Create(make, main, IsInvalid(statePtr, block), block);
+ BranchInst::Create(make, main, IsInvalid(statePtr, block, context), block);
block = make;
const auto self = CastInst::Create(Instruction::IntToPtr, ConstantInt::get(Type::getInt64Ty(context), uintptr_t(static_cast<const TYtBaseInputWrapper*>(this))), structPtrType, "self", block);
@@ -238,7 +238,7 @@ public:
const auto funcType = FunctionType::get(valueType, { statePtrType }, false);
const auto funcPtr = CastInst::Create(Instruction::IntToPtr, func, PointerType::getUnqual(funcType), "fetch_func", block);
const auto fetch = CallInst::Create(funcType, funcPtr, { stateArg }, "fetch", block);
- const auto result = SelectInst::Create(IsExists(fetch, block), fetch, GetFinish(context), "result", block);
+ const auto result = SelectInst::Create(IsExists(fetch, block, context), fetch, GetFinish(context), "result", block);
return result;
}
@@ -301,7 +301,7 @@ public:
const auto good = BasicBlock::Create(context, "good", ctx.Func);
const auto done = BasicBlock::Create(context, "done", ctx.Func);
- BranchInst::Create(make, main, IsInvalid(statePtr, block), block);
+ BranchInst::Create(make, main, IsInvalid(statePtr, block, context), block);
block = make;
const auto self = CastInst::Create(Instruction::IntToPtr, ConstantInt::get(Type::getInt64Ty(context), uintptr_t(static_cast<const TYtBaseInputWrapper*>(this))), structPtrType, "self", block);
@@ -326,7 +326,7 @@ public:
result->addIncoming(ConstantInt::get(statusType, static_cast<i32>(EFetchResult::Finish)), block);
- BranchInst::Create(good, done, IsExists(fetch, block), block);
+ BranchInst::Create(good, done, IsExists(fetch, block, context), block);
block = good;
diff --git a/yt/yql/providers/yt/comp_nodes/yql_mkql_output.cpp b/yt/yql/providers/yt/comp_nodes/yql_mkql_output.cpp
index 819a8f9fd7..a093b6f89b 100644
--- a/yt/yql/providers/yt/comp_nodes/yql_mkql_output.cpp
+++ b/yt/yql/providers/yt/comp_nodes/yql_mkql_output.cpp
@@ -71,7 +71,7 @@ public:
const auto result = PHINode::Create(item->getType(), 2U, "result", pass);
result->addIncoming(item, block);
- BranchInst::Create(pass, work, IsSpecial(item, block), block);
+ BranchInst::Create(pass, work, IsSpecial(item, block, context), block);
block = work;