summaryrefslogtreecommitdiffstats
path: root/yql/essentials/minikql/comp_nodes/mkql_block_skiptake.cpp
diff options
context:
space:
mode:
authorvvvv <[email protected]>2025-01-15 11:23:27 +0300
committervvvv <[email protected]>2025-01-15 11:46:46 +0300
commit350e1ae88774a5c2d9c9bf63bc4bfedcb9d44b03 (patch)
tree6c99f143a03fb0e45790b74bb951d4b451348b99 /yql/essentials/minikql/comp_nodes/mkql_block_skiptake.cpp
parent230b2bd8262d16de167b0bd9c761c271182a8582 (diff)
Drop broken windows LLVM support
commit_hash:fc1f44ff256c759953b54e2ccac3277dc66c1165
Diffstat (limited to 'yql/essentials/minikql/comp_nodes/mkql_block_skiptake.cpp')
-rw-r--r--yql/essentials/minikql/comp_nodes/mkql_block_skiptake.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/yql/essentials/minikql/comp_nodes/mkql_block_skiptake.cpp b/yql/essentials/minikql/comp_nodes/mkql_block_skiptake.cpp
index f5671b2635f..2496b75ca60 100644
--- a/yql/essentials/minikql/comp_nodes/mkql_block_skiptake.cpp
+++ b/yql/essentials/minikql/comp_nodes/mkql_block_skiptake.cpp
@@ -51,7 +51,6 @@ public:
const auto indexType = Type::getInt64Ty(context);
const auto valueType = Type::getInt128Ty(context);
- const auto ptrValueType = PointerType::getUnqual(valueType);
const auto atTop = &ctx.Func->getEntryBlock().back();
@@ -64,9 +63,7 @@ public:
const auto name = "GetBlockCount";
ctx.Codegen.AddGlobalMapping(name, reinterpret_cast<const void*>(&GetBlockCount));
- const auto getCountType = NYql::NCodegen::ETarget::Windows != ctx.Codegen.GetEffectiveTarget() ?
- FunctionType::get(indexType, { valueType }, false):
- FunctionType::get(indexType, { ptrValueType }, false);
+ const auto getCountType = FunctionType::get(indexType, { valueType }, false);
const auto getCount = ctx.Codegen.GetModule().getOrInsertFunction(name, getCountType);
const auto init = BasicBlock::Create(context, "init", ctx.Func);
@@ -119,7 +116,7 @@ public:
block = test;
const auto countValue = getres.second.back()(ctx, block);
- const auto height = CallInst::Create(getCount, { WrapArgumentForWindows(countValue, ctx, block) }, "height", block);
+ const auto height = CallInst::Create(getCount, { countValue }, "height", block);
ValueCleanup(EValueRepresentation::Any, countValue, ctx, block);
@@ -272,7 +269,6 @@ public:
const auto indexType = Type::getInt64Ty(context);
const auto valueType = Type::getInt128Ty(context);
- const auto ptrValueType = PointerType::getUnqual(valueType);
const auto atTop = &ctx.Func->getEntryBlock().back();
@@ -285,9 +281,7 @@ public:
const auto name = "GetBlockCount";
ctx.Codegen.AddGlobalMapping(name, reinterpret_cast<const void*>(&GetBlockCount));
- const auto getCountType = NYql::NCodegen::ETarget::Windows != ctx.Codegen.GetEffectiveTarget() ?
- FunctionType::get(indexType, { valueType }, false):
- FunctionType::get(indexType, { ptrValueType }, false);
+ const auto getCountType = FunctionType::get(indexType, { valueType }, false);
const auto getCount = ctx.Codegen.GetModule().getOrInsertFunction(name, getCountType);
const auto init = BasicBlock::Create(context, "init", ctx.Func);
@@ -332,7 +326,7 @@ public:
block = good;
const auto countValue = getres.second.back()(ctx, block);
- const auto height = CallInst::Create(getCount, { WrapArgumentForWindows(countValue, ctx, block) }, "height", block);
+ const auto height = CallInst::Create(getCount, { countValue }, "height", block);
ValueCleanup(EValueRepresentation::Any, countValue, ctx, block);