[LLVMdev] VTable Method Index
Михаил
neonomaly.x at gmail.com
Thu Apr 19 14:01:15 PDT 2012
Virtual call translates into IR like this:
%0 = bitcast %class.A* %call to i32 (%class.A*, i32)***
%vtable = load i32 (%class.A*, i32)*** %0
%vfn = getelementptr inbounds i32 (%class.A*, i32)** %vtable, i64 0
%1 = load i32 (%class.A*, i32)** %vfn
Is it possible to map pair [StructType, methodIndex(i64 0 in example)] into Function?
Yours sincerely,
Kadysev Mikhail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120420/c99fe5fd/attachment.html>
More information about the llvm-dev
mailing list