search for: pinstanc

Displaying 1 result from an estimated 1 matches for "pinstanc".

Did you mean: pinstance
2010 Oct 11
4
[LLVMdev] Missed devirtualization opportunities
...ction; I create an instance and call the virtual method all in one function: ; The TestVirtual class vtbl @classvtbl.TestVirtual = constant %classvtbltype.TestVirtual { ; Pointers to the virtual methods for the TestVirtual class ... } ; ... define i32 @main() nounwind { ; create the instance %pinstance = alloca %class.TestVirtual ; %ppVtbl becomes a pointer to the instance's vtbl pointer. %ppVtbl = getelementptr %class.TestVirtual* %pinstance, i64 0, i32 0 ; Populate the instance's vtbl pointer. After this, the instance is constructed. store %classvtbltype.TestVirtual* @classvtbl.Test...