search for: ppvtbl

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

2010 Oct 11
4
[LLVMdev] Missed devirtualization opportunities
...irtual 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.TestVirtual, %classvtbltype.TestVirtual** %p...