Displaying 3 results from an estimated 3 matches for "lllvmcustomcallback".
2013 Nov 01
0
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...gt; Arg.arg2 = 20;
>
>
>
> PerformCustomCallback("Callback1", &Arg);
>
>
>
> Compile the user program (test.cc) using clang as follows:
>
> # clang -c -emit-llvm `llvm-config --cppflags` -o test test.cc
> `llvm-config --libs` `llvm-config --ldflags` -lLLVMCustomCallback
>
>
>
> *Usecases:*
>
> A typical usecase for this is to induce LLVM into Recompiling and
> relinking a function on demand from the client. Also, if we want to find
> the address of a function in a large module, we can get it using a
> mechanism like this.
>
>
>...
2013 Nov 01
4
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...arg1;
int arg2;
}Arg;
Arg.arg1 = 10;
Arg.arg2 = 20;
PerformCustomCallback("Callback1", &Arg);
Compile the user program (test.cc) using clang as follows:
# clang -c -emit-llvm `llvm-config --cppflags` -o test test.cc `llvm-config
--libs` `llvm-config --ldflags` -lLLVMCustomCallback
*Usecases:*
A typical usecase for this is to induce LLVM into Recompiling and relinking
a function on demand from the client. Also, if we want to find the address
of a function in a large module, we can get it using a mechanism like this.
Please let me know if there is a better design to ach...
2013 Nov 01
0
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...int arg1;
int arg2;
}Arg;
Arg.arg1 = 10;
Arg.arg2 = 20;
PerformCustomCallback("Callback1", &Arg);
Compile the user program (test.cc) using clang as follows:
# clang -c -emit-llvm `llvm-config --cppflags` -o test test.cc `llvm-config --libs` `llvm-config --ldflags` -lLLVMCustomCallback
Usecases:
A typical usecase for this is to induce LLVM into Recompiling and relinking a function on demand from the client. Also, if we want to find the address of a function in a large module, we can get it using a mechanism like this.
Please let me know if there is a better design to achieve th...