Displaying 1 result from an estimated 1 matches for "callafunct".
Did you mean:
call_func
2015 Mar 10
3
[LLVMdev] Chatty C++API code generation
Hi all,
when I have c code like
--- c code -------------
struct stest { /* deklariert den Strukturtyp person */
int age;
float weight;
} foo={44,67.2}; /* deklariert Variable des Typs person */
int main() {
callAFunction(foo.weight);
------------------------
The generated c++API code to me seems to be too chatty in the sense that
the foo.weight's data is copied to a local variable using a load
instruction.
The call instruction is then using the local copy.
--- API code ---------------
...
std::vector<...