Displaying 3 results from an estimated 3 matches for "functior".
Did you mean:
function
2019 Jul 09
2
Using bytecode version of std::sort for JIT generated data type
...m LLVM optimization pass.
>
> Though, that said - perhaps it should just be a runtime parameter where
> you rely on LLVM to inline/optimize things away? You could do some
> relatively smaller code generation - generate a function that calls into
> the generic function (that takes the functior by pointer) and have the
> generic function be always_inline, so it gets inlined into the outer,
> type-specific function, without you having to write code to create all that
> IR on every use (instead relying on the inliner to create it for you,
> essentially)
>
I don't underst...
2019 Jul 10
2
Using bytecode version of std::sort for JIT generated data type
...gt;>> Though, that said - perhaps it should just be a runtime parameter where
>>> you rely on LLVM to inline/optimize things away? You could do some
>>> relatively smaller code generation - generate a function that calls into
>>> the generic function (that takes the functior by pointer) and have the
>>> generic function be always_inline, so it gets inlined into the outer,
>>> type-specific function, without you having to write code to create all that
>>> IR on every use (instead relying on the inliner to create it for you,
>>> essent...
2019 Jul 08
2
Using bytecode version of std::sort for JIT generated data type
Thanks David!
I am not clear on how to achieve this though. Could you give more info on
this?
I expect something like this:
sort.cc file:
bool Compare(void* a, void* b) {
return false;
}
void SortFunc(void* arr, int len) {
std::sort(arr, len, &Compare)
}
$MAGIC_COMMAND sort.cc -o a.llvm
a.llvm is a bytecode which can be loaded at runtime in my JIT module and
write some code to