search for: _zn9testclass10testmethodei

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

2007 Apr 05
2
[LLVMdev] For a small help
On 4 Apr 2007, at 20:10, Jeff Cohen wrote: > […] > %obj = alloca %struct.TestClass, align 1 ; <%struct.TestClass*> > [#uses=1] > %tmp1 = call int %_ZN9TestClass10testMethodEi( %struct.TestClass* % > obj, int 1 ) ; <int> [#uses=0] > ret void > } > > declare int %_ZN9TestClass10testMethodEi(%struct.TestClass*, int) The name mangling is not very pretty though and it is specific to the C++ front-end. What is the best manner to deal with that probl...
2007 Apr 04
0
[LLVMdev] For a small help
...32:32" target endian = little target pointersize = 32 target triple = "i686-pc-linux-gnu" %struct.TestClass = type { ubyte } implementation ; Functions: void %_Z4funcv() { entry: %obj = alloca %struct.TestClass, align 1 ; <%struct.TestClass*> [#uses=1] %tmp1 = call int %_ZN9TestClass10testMethodEi( %struct.TestClass* %obj, int 1 ) ; <int> [#uses=0] ret void } declare int %_ZN9TestClass10testMethodEi(%struct.TestClass*, int) The object on which you call the method becomes the first argument to the method.
2007 Apr 05
0
[LLVMdev] For a small help
Luc Bourhis wrote: > On 4 Apr 2007, at 20:10, Jeff Cohen wrote: > > >> […] >> %obj = alloca %struct.TestClass, align 1 ; <%struct.TestClass*> >> [#uses=1] >> %tmp1 = call int %_ZN9TestClass10testMethodEi( %struct.TestClass* % >> obj, int 1 ) ; <int> [#uses=0] >> ret void >> } >> >> declare int %_ZN9TestClass10testMethodEi(%struct.TestClass*, int) >> > > The name mangling is not very pretty though and it is specific to the > C++ front-end....
2007 Apr 04
4
[LLVMdev] For a small help
Hi, I want to ask for a small help for creating an instruction that calls e member method of an object. I suppose that this is not a headache but I am impatient in learning :) I would be very thankful if you can show me an example snippet code that does this in LLVM. Below is described my case. Let's say I have a class TestClass class TestClass { int testMethod(int a); } and I want to