search for: manadgement

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

2005 Aug 26
3
[LLVMdev] Mapping of class derivated and interfaces
...ublic Derived global_var = new ....; main() { myProc(d); } void myProc(base2 obj) { boolean b = (global_var == obj); // this would be false! Derived alias = (Derived) obj; // this would break too btw } So what am i missing ? maybe to deal with multiple ereditation one need some more "manadgement" code ? and does the optimizer still "see" all relations and code features? Thank you!
2005 Aug 26
0
[LLVMdev] Mapping of class derivated and interfaces
...; > } > > void myProc(base2 obj) > { > boolean b = (global_var == obj); // this would be false! > > Derived alias = (Derived) obj; // this would break too btw > } > > So what am i missing ? maybe to deal with multiple ereditation one > need some more "manadgement" code ? and does the optimizer still "see" > all relations and code features? I don't see why casting to a base class pointer will change the equality test at all. global_var == obj will evaluate to true and alias will point to global_var as expected. The fact that a pointer...
2005 Aug 26
0
[LLVMdev] Mapping of class derivated and interfaces
> Hi! i'm tring to figure out how classes and dependencies > can be mapped to llvm. > [snip] > how do i encode a function that takes "base" type > so that it also takes "derived" ? You'll notice that your function doesn't take an object of type base, but a pointer to it. This is important - in a language such as LLVM where actual structures can be
2005 Aug 25
5
[LLVMdev] Mapping of class derivated and interfaces
Hi! i'm tring to figure out how classes and dependencies can be mapped to llvm. I've read on docs that nesting can be used: class base { int Y; }; class derived : base { short Z; }; becomes: %base = type { int } %derived = type { %base, short } That's ok, but now the question is: how do i encode a function that takes "base" type so that it also takes "derived"