Displaying 1 result from an estimated 1 matches for "isvtableaccess".
2019 Apr 19
2
Question: How to access c++ vtable pointer to use as Value* in LLVM pass
...ass; iterating over the struct again, it looks like the vtable ptr
is tangled even deeper within the object:
%class.Base.base = type <{i32 (...)**, i32 }>
i32
I looked at the ThreadSanitizer.cpp pass for inspiration, and it seems
they are also using MD_tbaa as hints for whether a load/store
isVTableAccess(), but doesn't need the Value. Maybe MDNode metadata
could be of use here?
TLDR: How can I leverage a Value that is of StructType generated from
a C++ object to get its vtable ptr in LLVM to use as a Value for a
to-be-inserted function call??
Thank you in advance!
Sincerely,
Christopher Jel...