search for: invoke_jit_magic

Displaying 4 results from an estimated 4 matches for "invoke_jit_magic".

2007 Jun 20
1
[LLVMdev] Runtime optimization of C++ code with virtual functions
...d help in this case? > > LLVM won't help in this case. Is that so or it means that LLVM wouldn't have a prebuilt solution? I'm asking because (without having ever looked seriously into LLVM) I was thinking to experiment along these lines: class Source { void send (T data) { invoke_jit_magic(); transport (data); } } transport() would be a virtual method like the original posting. In my case send() would be part of the framework, so it is not a problem to add the invoke_jit_magic. In other case it might be trickier. On the first call, invoke_jit_magic gains control, tr...
2007 Jun 19
0
[LLVMdev] Runtime optimization of C++ code with virtual functions
On Sat, 16 Jun 2007, [ISO-8859-1] St�phane Letz wrote: > At runtime after a graph is created, one could imagine optimizing by > resolving call to "virtual Compute" and possibly get a more > efficient Compute method for the entire graph, so that we could write: > > DSP* graph = new PAR_DSP(new SEQ_DDSP(new CONCRETE_DSP(), new > CONCRETE_DSP()), new CONCRETE_DSP()); >
2007 Jun 21
1
[LLVMdev] Runtime optimization of C++ code with virtual functions
...tion? > > It means that LLVM doesn't have any trivial builtin solution. > >> I'm asking because (without having ever looked seriously into LLVM) I >> was thinking to experiment along these lines: >> >> class Source { >> void send (T data) { >> invoke_jit_magic(); >> transport (data); >> } >> } >> >> transport() would be a virtual method like the original posting. >> In my >> case send() would be part of the framework, so it is not a problem to >> add the invoke_jit_magic. In other case it might...
2007 Jun 16
2
[LLVMdev] Runtime optimization of C++ code with virtual functions
Let's say we have the following scheme using C++ and virtual functions: class DSP { public: DSP() {} virtual ~DSP() {} virtual int Compute(int count, float** in, float** out) = 0; }; class CONCRETE_DSP : public DSP { public: CONCRETE_DSP():fValue() {} virtual ~CONCRETE_DSP() {} virtual int Compute(int count, float** in, float** out) { DoSomeProcess(); } }; class