search for: _zn1x1fev

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

2012 Nov 20
3
[LLVMdev] Python Backend
...rom C++ code, the "class" keyword is stored inside of name (or something like name) of function: #include <stdio.h> #include <stdlib.h> class X{ public: void f(); }; void X::f() { printf("inside f");} int main() { X x; x.f();} translates into: [...] define void @_ZN1X1fEv(%class.X* nocapture %this) nounwind uwtable align 2 { %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([9 x i8]* @.str, i64 0, i64 0)) ret void } [...] How can I access it inside of my function Pass to get know if it was class or not? -------------------------------------...
2012 Nov 20
0
[LLVMdev] Python Backend
...something like name) of function: > > #include <stdio.h> > #include <stdlib.h> > class X{ > public: > void f(); > }; > void X::f() { printf("inside f");} > int main() { X x; x.f();} > > translates into: > > [...] > > define void @_ZN1X1fEv(%class.X* nocapture %this) nounwind uwtable align 2 { > %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([9 x > i8]* @.str, i64 0, i64 0)) > ret void > } > > [...] > > > How can I access it inside of my function Pass to get know if it was class >...
2012 Nov 21
2
[LLVMdev] Python Backend
...ing like name) of > function: > > #include <stdio.h> > #include <stdlib.h> > class X{ > public: > void f(); > }; > void X::f() { printf("inside f");} > int main() { X x; x.f();} > > translates into: > > [...] > > define void @_ZN1X1fEv(%class.X*nocapture %this)nounwind uwtablealign 2 { > %1 =tail call i32 (i8*, ...)* @printf(i8*getelementptr inbounds ([9 xi8]* @.str,i64 0,i64 0)) > ret void > } > > [...] > > > How can I access it inside of my function Pass to get know if it was class or not...
2012 Nov 21
3
[LLVMdev] Python Backend
...> > > #include <stdlib.h> > > class X{ > > public: > > void f(); > > }; > > void X::f() { printf("inside f");} > > int main() { X x; x.f();} > > > > translates into: > > > > [...] > > > > define void @_ZN1X1fEv(%class.X* nocapture %this) nounwind uwtable align > 2 { > > %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([9 x > > i8]* @.str, i64 0, i64 0)) > > ret void > > } > > > > [...] > > > > > > How can I access it inside of...
2012 Nov 21
0
[LLVMdev] Python Backend
...<stdio.h> >> #include <stdlib.h> >> class X{ >> public: >> void f(); >> }; >> void X::f() { printf("inside f");} >> int main() { X x; x.f();} >> >> translates into: >> >> [...] >> >> define void @_ZN1X1fEv(%class.X*nocapture %this)nounwind uwtablealign >> 2 { >> %1 =tail call i32 (i8*, ...)* @printf(i8*getelementptr inbounds >> ([9 xi8]* @.str,i64 0,i64 0)) >> ret void >> } >> >> [...] >> >> >> How can I access it inside of m...