search for: funcidx

Displaying 2 results from an estimated 2 matches for "funcidx".

Did you mean: funcid
2011 Aug 04
2
[LLVMdev] LLVM backend: Treat some function calls specially
...given as input at compile time. I have some vague ideas on how I could implement this, but would like to ask for your ideas in order to keep me from going too far in a wrong/cumbersome direction. The first option that came into my mind is adding a new intrinsic "llvm.myVM.call_native(i32 %funcIdx, ...)" and then linking at compile time a module that looks like define void @foo(i32 %a) { call @llvm.myVM.call_native(i32 1, i32 %a) } define void @bar(i32 %a, i32 %b) { call @llvm.myVM.call_native(i32 2, i32 %a, i32 %b) } ... But here I am unsure how to handle the...
2011 Aug 04
0
[LLVMdev] LLVM backend: Treat some function calls specially
...I have some vague ideas on how I could implement this, but would like > to > ask for your ideas in order to keep me from going too far in a > wrong/cumbersome direction. > > > The first option that came into my mind is adding a new intrinsic > "llvm.myVM.call_native(i32 %funcIdx, ...)" and then linking at compile > time a module that looks like > define void @foo(i32 %a) { > call @llvm.myVM.call_native(i32 1, i32 %a) > } > define void @bar(i32 %a, i32 %b) { > call @llvm.myVM.call_native(i32 2, i32 %a, i32 %b) > } > .....