remove stupid transfer functions
parent
631c67dc18
commit
19f94b14dc
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
project(blt-gp VERSION 0.0.117)
|
||||
project(blt-gp VERSION 0.0.118)
|
||||
|
||||
include(CTest)
|
||||
|
||||
|
|
|
@ -34,10 +34,6 @@ namespace blt::gp
|
|||
|
||||
blt::ptrdiff_t find_endpoint(blt::gp::gp_program& program, const std::vector<blt::gp::op_container_t>& container, blt::ptrdiff_t start);
|
||||
|
||||
void transfer_forward(blt::gp::stack_allocator& from, blt::gp::stack_allocator& to, detail::op_iter begin, detail::op_iter end);
|
||||
|
||||
void transfer_backward(blt::gp::stack_allocator& from, blt::gp::stack_allocator& to, detail::op_iter begin, detail::op_iter end);
|
||||
|
||||
class crossover_t
|
||||
{
|
||||
public:
|
||||
|
|
2
lib/blt
2
lib/blt
|
@ -1 +1 @@
|
|||
Subproject commit 8535480ad57553e592640b98e9e005d7a4d27501
|
||||
Subproject commit f9938691ecb13b7b6acb2402235015bef9d58982
|
|
@ -304,23 +304,4 @@ namespace blt::gp
|
|||
|
||||
return index;
|
||||
}
|
||||
|
||||
void transfer_backward(stack_allocator& from, stack_allocator& to, detail::op_iter begin, detail::op_iter end)
|
||||
{
|
||||
for (auto it = begin; it != end; it--)
|
||||
{
|
||||
if (it->is_value)
|
||||
from.transfer_bytes(to, it->type_size);
|
||||
}
|
||||
}
|
||||
|
||||
void transfer_forward(stack_allocator& from, stack_allocator& to, detail::op_iter begin, detail::op_iter end)
|
||||
{
|
||||
// now copy back into the respective children
|
||||
for (auto it = begin; it != end; it++)
|
||||
{
|
||||
if (it->is_value)
|
||||
from.transfer_bytes(to, it->type_size);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue