aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/minikql/comp_nodes/mkql_todict.cpp
diff options
context:
space:
mode:
authorvvvv <vvvv@yandex-team.com>2025-01-15 11:23:27 +0300
committervvvv <vvvv@yandex-team.com>2025-01-15 11:46:46 +0300
commit350e1ae88774a5c2d9c9bf63bc4bfedcb9d44b03 (patch)
tree6c99f143a03fb0e45790b74bb951d4b451348b99 /yql/essentials/minikql/comp_nodes/mkql_todict.cpp
parent230b2bd8262d16de167b0bd9c761c271182a8582 (diff)
downloadydb-350e1ae88774a5c2d9c9bf63bc4bfedcb9d44b03.tar.gz
Drop broken windows LLVM support
commit_hash:fc1f44ff256c759953b54e2ccac3277dc66c1165
Diffstat (limited to 'yql/essentials/minikql/comp_nodes/mkql_todict.cpp')
-rw-r--r--yql/essentials/minikql/comp_nodes/mkql_todict.cpp92
1 files changed, 26 insertions, 66 deletions
diff --git a/yql/essentials/minikql/comp_nodes/mkql_todict.cpp b/yql/essentials/minikql/comp_nodes/mkql_todict.cpp
index 0ac6b83a11..10d0b4609c 100644
--- a/yql/essentials/minikql/comp_nodes/mkql_todict.cpp
+++ b/yql/essentials/minikql/comp_nodes/mkql_todict.cpp
@@ -1065,7 +1065,7 @@ public:
const auto insert = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TState::Insert));
- const auto keyArg = WrapArgumentForWindows(key, ctx, block);
+ const auto keyArg = key;
const auto insType = FunctionType::get(Type::getVoidTy(context), {stateArg->getType(), keyArg->getType()}, false);
const auto insPtr = CastInst::Create(Instruction::IntToPtr, insert, PointerType::getUnqual(insType), "insert", block);
@@ -1077,21 +1077,11 @@ public:
const auto build = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TState::Build));
- if (NYql::NCodegen::ETarget::Windows != ctx.Codegen.GetEffectiveTarget()) {
- const auto funType = FunctionType::get(valueType, {stateArg->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
- const auto dict = CallInst::Create(funType, funcPtr, {stateArg}, "dict", block);
- UnRefBoxed(state, ctx, block);
- result->addIncoming(dict, block);
- } else {
- const auto ptr = new AllocaInst(valueType, 0U, "ptr", block);
- const auto funType = FunctionType::get(Type::getVoidTy(context), {stateArg->getType(), ptr->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
- CallInst::Create(funType, funcPtr, {stateArg, ptr}, "", block);
- const auto dict = new LoadInst(valueType, ptr, "dict", block);
- UnRefBoxed(state, ctx, block);
- result->addIncoming(dict, block);
- }
+ const auto funType = FunctionType::get(valueType, {stateArg->getType()}, false);
+ const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
+ const auto dict = CallInst::Create(funType, funcPtr, {stateArg}, "dict", block);
+ UnRefBoxed(state, ctx, block);
+ result->addIncoming(dict, block);
new StoreInst(item, statePtr, block);
BranchInst::Create(over, block);
@@ -1262,7 +1252,7 @@ public:
const auto insert = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TState::Insert));
- const auto keyArg = WrapArgumentForWindows(key, ctx, block);
+ const auto keyArg = key;
const auto insType = FunctionType::get(Type::getVoidTy(context), {stateArg->getType(), keyArg->getType()}, false);
const auto insPtr = CastInst::Create(Instruction::IntToPtr, insert, PointerType::getUnqual(insType), "insert", block);
@@ -1274,21 +1264,11 @@ public:
const auto build = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TState::Build));
- if (NYql::NCodegen::ETarget::Windows != ctx.Codegen.GetEffectiveTarget()) {
- const auto funType = FunctionType::get(valueType, {stateArg->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
- const auto dict = CallInst::Create(funType, funcPtr, {stateArg}, "dict", block);
- UnRefBoxed(state, ctx, block);
- result->addIncoming(dict, block);
- } else {
- const auto ptr = new AllocaInst(valueType, 0U, "ptr", block);
- const auto funType = FunctionType::get(Type::getVoidTy(context), {stateArg->getType(), ptr->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
- CallInst::Create(funType, funcPtr, {stateArg, ptr}, "", block);
- const auto dict = new LoadInst(valueType, ptr, "dict", block);
- UnRefBoxed(state, ctx, block);
- result->addIncoming(dict, block);
- }
+ const auto funType = FunctionType::get(valueType, {stateArg->getType()}, false);
+ const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
+ const auto dict = CallInst::Create(funType, funcPtr, {stateArg}, "dict", block);
+ UnRefBoxed(state, ctx, block);
+ result->addIncoming(dict, block);
new StoreInst(GetFinish(context), statePtr, block);
BranchInst::Create(over, block);
@@ -1580,8 +1560,8 @@ public:
const auto insert = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TState::Insert));
- const auto keyArg = WrapArgumentForWindows(key, ctx, block);
- const auto payloadArg = WrapArgumentForWindows(payload, ctx, block);
+ const auto keyArg = key;
+ const auto payloadArg = payload;
const auto insType = FunctionType::get(Type::getVoidTy(context), {stateArg->getType(), keyArg->getType(), payloadArg->getType()}, false);
const auto insPtr = CastInst::Create(Instruction::IntToPtr, insert, PointerType::getUnqual(insType), "insert", block);
@@ -1593,21 +1573,11 @@ public:
const auto build = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TState::Build));
- if (NYql::NCodegen::ETarget::Windows != ctx.Codegen.GetEffectiveTarget()) {
- const auto funType = FunctionType::get(valueType, {stateArg->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
- const auto dict = CallInst::Create(funType, funcPtr, {stateArg}, "dict", block);
- UnRefBoxed(state, ctx, block);
- result->addIncoming(dict, block);
- } else {
- const auto ptr = new AllocaInst(valueType, 0U, "ptr", block);
- const auto funType = FunctionType::get(Type::getVoidTy(context), {stateArg->getType(), ptr->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
- CallInst::Create(funType, funcPtr, {stateArg, ptr}, "", block);
- const auto dict = new LoadInst(valueType, ptr, "dict", block);
- UnRefBoxed(state, ctx, block);
- result->addIncoming(dict, block);
- }
+ const auto funType = FunctionType::get(valueType, {stateArg->getType()}, false);
+ const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
+ const auto dict = CallInst::Create(funType, funcPtr, {stateArg}, "dict", block);
+ UnRefBoxed(state, ctx, block);
+ result->addIncoming(dict, block);
new StoreInst(item, statePtr, block);
BranchInst::Create(over, block);
@@ -1785,8 +1755,8 @@ public:
const auto insert = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TState::Insert));
- const auto keyArg = WrapArgumentForWindows(key, ctx, block);
- const auto payloadArg = WrapArgumentForWindows(payload, ctx, block);
+ const auto keyArg = key;
+ const auto payloadArg = payload;
const auto insType = FunctionType::get(Type::getVoidTy(context), {stateArg->getType(), keyArg->getType(), payloadArg->getType()}, false);
const auto insPtr = CastInst::Create(Instruction::IntToPtr, insert, PointerType::getUnqual(insType), "insert", block);
@@ -1798,21 +1768,11 @@ public:
const auto build = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&TState::Build));
- if (NYql::NCodegen::ETarget::Windows != ctx.Codegen.GetEffectiveTarget()) {
- const auto funType = FunctionType::get(valueType, {stateArg->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
- const auto dict = CallInst::Create(funType, funcPtr, {stateArg}, "dict", block);
- UnRefBoxed(state, ctx, block);
- result->addIncoming(dict, block);
- } else {
- const auto ptr = new AllocaInst(valueType, 0U, "ptr", block);
- const auto funType = FunctionType::get(Type::getVoidTy(context), {stateArg->getType(), ptr->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
- CallInst::Create(funType, funcPtr, {stateArg, ptr}, "", block);
- const auto dict = new LoadInst(valueType, ptr, "dict", block);
- UnRefBoxed(state, ctx, block);
- result->addIncoming(dict, block);
- }
+ const auto funType = FunctionType::get(valueType, {stateArg->getType()}, false);
+ const auto funcPtr = CastInst::Create(Instruction::IntToPtr, build, PointerType::getUnqual(funType), "build", block);
+ const auto dict = CallInst::Create(funType, funcPtr, {stateArg}, "dict", block);
+ UnRefBoxed(state, ctx, block);
+ result->addIncoming(dict, block);
new StoreInst(GetFinish(context), statePtr, block);
BranchInst::Create(over, block);