Hi,
I’m keenly interested in this command-line option -bpf-expand-memcpy-in-order
.
The reason I want to use it is in order to emit longer memset/memcpy in bpftrace
.
But the example code described in that patch enables the flag by passing a command-line option to llc
:
llc < %s -march=bpfel -bpf-expand-memcpy-in-order
Whereas in bpftrace
we use C++ to create an LLVM Module via the Compiler API, and emit IR programmatically.
Given that we don’t invoke llc
, but rather invoke LLVM via its C++ APIs: is there any way for us to pass command-line options such as -bpf-expand-memcpy-in-order
?
I note that the LLVM Command Line docs mention a difference between external/internal storage for command-line options. Could it be that there’s no external-facing way to set this option?
Thanks for any assistance you can give!