search for: childtype_do_foo

Displaying 3 results from an estimated 3 matches for "childtype_do_foo".

2010 Jul 17
1
[LLVMdev] Tool for run-time code generation?
...e'd like to inline the children's operations into the parent > where a C compiler would do it. > > Could your technique be extended to that? e.g. precompile to LLVM IR > with calls to a non-existent "node_do_foo()" call, and then replace it > with the specific "childtype_do_foo()" call when we know the type of the > child? Will you know the prototype of the function call in advance? If so, you can do something really simple where you write the C functions with a function pointer parameter. Then at run-time, use llvm::CloneAndPruneFunctionInto to produce the sp...
2010 Jul 18
0
[LLVMdev] Tool for run-time code generation?
...ne the children's operations into the parent >> where a C compiler would do it. >> >> Could your technique be extended to that? e.g. precompile to LLVM IR >> with calls to a non-existent "node_do_foo()" call, and then replace it >> with the specific "childtype_do_foo()" call when we know the type of the >> child? > > Will you know the prototype of the function call in advance? If so, you > can do something really simple where you write the C functions with a > function pointer parameter. Then at run-time, use > llvm::CloneAndPruneFunct...
2010 Jul 16
6
[LLVMdev] Tool for run-time code generation?
Using C++ code, I would like to generate code at run-time (the same way .NET code can use dynamic methods or compiled expressions) in order to obtain very high performance code (to read binary data records whose formats are only known at run-time.) I need to target x86 (Win32) and ARM (WinCE). Can LLVM be used for this purpose, or would something else work better? Are there any open-source