summaryrefslogtreecommitdiffstats
path: root/yql/essentials/minikql/computation/mkql_computation_node_holders_codegen.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/computation/mkql_computation_node_holders_codegen.cpp
parent230b2bd8262d16de167b0bd9c761c271182a8582 (diff)
Drop broken windows LLVM support
commit_hash:fc1f44ff256c759953b54e2ccac3277dc66c1165
Diffstat (limited to 'yql/essentials/minikql/computation/mkql_computation_node_holders_codegen.cpp')
-rw-r--r--yql/essentials/minikql/computation/mkql_computation_node_holders_codegen.cpp38
1 files changed, 10 insertions, 28 deletions
diff --git a/yql/essentials/minikql/computation/mkql_computation_node_holders_codegen.cpp b/yql/essentials/minikql/computation/mkql_computation_node_holders_codegen.cpp
index 3fe7772ba9d..cead70dec0a 100644
--- a/yql/essentials/minikql/computation/mkql_computation_node_holders_codegen.cpp
+++ b/yql/essentials/minikql/computation/mkql_computation_node_holders_codegen.cpp
@@ -126,21 +126,12 @@ Value* TContainerCacheOnContext::GenNewArray(ui64 sz, Value* items, const TCodeg
const auto func = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&THolderFactory::CreateDirectArrayHolder));
const auto size = ConstantInt::get(Type::getInt64Ty(context), sz);
- if (NYql::NCodegen::ETarget::Windows != ctx.Codegen.GetEffectiveTarget()) {
- const auto funType = FunctionType::get(valueType, {fact->getType(), size->getType(), items->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, func, PointerType::getUnqual(funType), "function", block);
- const auto array = CallInst::Create(funType, funcPtr, {fact, size, items}, "array", block);
- AddRefBoxed(array, ctx, block);
- result->addIncoming(array, block);
- new StoreInst(array, tpsecond, block);
- } else {
- const auto funType = FunctionType::get(Type::getVoidTy(context), {fact->getType(), tpsecond->getType(), size->getType(), items->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, func, PointerType::getUnqual(funType), "function", block);
- CallInst::Create(funType, funcPtr, {fact, tpsecond, size, items}, "", block);
- const auto array = new LoadInst(valueType, tpsecond, "array", block);
- AddRefBoxed(array, ctx, block);
- result->addIncoming(array, block);
- }
+ const auto funType = FunctionType::get(valueType, {fact->getType(), size->getType(), items->getType()}, false);
+ const auto funcPtr = CastInst::Create(Instruction::IntToPtr, func, PointerType::getUnqual(funType), "function", block);
+ const auto array = CallInst::Create(funType, funcPtr, {fact, size, items}, "array", block);
+ AddRefBoxed(array, ctx, block);
+ result->addIncoming(array, block);
+ new StoreInst(array, tpsecond, block);
BranchInst::Create(exit, block);
}
@@ -189,19 +180,10 @@ public:
const auto factory = ctx.GetFactory();
const auto func = ConstantInt::get(Type::getInt64Ty(context), GetMethodPtr(&THolderFactory::GetEmptyContainerLazy));
- if (NYql::NCodegen::ETarget::Windows != ctx.Codegen.GetEffectiveTarget()) {
- const auto funType = FunctionType::get(valueType, {factory->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, func, PointerType::getUnqual(funType), "function", block);
- const auto res = CallInst::Create(funType, funcPtr, {factory}, "res", block);
- return res;
- } else {
- const auto retPtr = new AllocaInst(valueType, 0U, "ret_ptr", block);
- const auto funType = FunctionType::get(Type::getVoidTy(context), {factory->getType(), retPtr->getType()}, false);
- const auto funcPtr = CastInst::Create(Instruction::IntToPtr, func, PointerType::getUnqual(funType), "function", block);
- CallInst::Create(funType, funcPtr, {factory, retPtr}, "", block);
- const auto res = new LoadInst(valueType, retPtr, "res", block);
- return res;
- }
+ const auto funType = FunctionType::get(valueType, {factory->getType()}, false);
+ const auto funcPtr = CastInst::Create(Instruction::IntToPtr, func, PointerType::getUnqual(funType), "function", block);
+ const auto res = CallInst::Create(funType, funcPtr, {factory}, "res", block);
+ return res;
}
#endif
private: