search for: createinvok

Displaying 5 results from an estimated 5 matches for "createinvok".

Did you mean: createinvoke
2008 Apr 23
2
[LLVMdev] templates vs code to generate IR
...ta structure: InstructionHandle start = il.append(factory.createFieldAccess("java.lang.System", "out", p_stream, Constants.GETSTATIC)); il.append(new PUSH(cp, "Hello")); il.append(factory.createInvoke("java.io.PrintStream", "print", Type.VOID, new Type[] { Type.STRING }, Constants.INVOKEVIRTUAL)); Templates differ from code snippets in that templates specify exactly what the outp...
2012 Apr 05
0
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
...t; ctor_args.insert( ctor_args.begin(), void_obj_ptr ); > > // Call object's constructor. > BasicBlock *const normal_blk = BasicBlock::Create( ctx, "normal", fn ); > BasicBlock *const unwind_blk = BasicBlock::Create( ctx, "unwind", fn ); > builder.CreateInvoke( ctor, normal_blk, unwind_blk, ctor_args ); > > // Call object's destructor. > BasicBlock *const dtor_blk = BasicBlock::Create( ctx, "dtor", fn ); > builder.SetInsertPoint( dtor_blk ); > builder.CreateCall( dtor, void_obj_ptr ); > builder.CreateBr( unwi...
2008 Apr 24
0
[LLVMdev] templates vs code to generate IR
...tionHandle start = > il.append(factory.createFieldAccess("java.lang.System", "out", > p_stream, > Constants.GETSTATIC)); > il.append(new PUSH(cp, "Hello")); > il.append(factory.createInvoke("java.io.PrintStream", "print", > Type.VOID, > new Type[] { Type.STRING }, > Constants.INVOKEVIRTUAL)); > > Templates differ from code snippets in that templates specify...
2012 Mar 23
2
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
On Mar 23, 2012, at 4:29 PM, Paul J. Lucas wrote: > On Mar 23, 2012, at 3:25 PM, Bill Wendling wrote: > >> Let's take your example. You will have code that looks like this: >> >> extern "C" void thunk_item_M_delete( void *v_that ) { >> item *that = 0; >> try { >> that = static_cast<item*>( v_that ); >>
2016 Oct 28
4
What was the IR made for precisely?
> On Oct 28, 2016, at 1:21 AM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote: > > On 28 Oct 2016, at 02:43, ジョウェットジェームス <b3i4zz1gu1 at docomo.ne.jp> wrote: >> >> I would need to sum up all the rules and ABIs and sizes for all the targets I need and generate different IR for each, am I correct? > > This is a long-known limitation of LLVM IR and