Displaying 1 result from an estimated 1 matches for "subtype_reverse_iterator".
2015 Feb 27
0
[LLVMdev] using a structs datafield as operand
Hi all,
I need to exchange operands of e.g. instructions by others of the same type.
Suppose I need to replace a double typed operand; a possible candidate could
be a double typed datafield of a struct.
The typefinder shows how to recursively crawl types using
llvm::Type::subtype_reverse_iterator and thereby compiles a list of types
occuring in the module.
I could determine when I arrived at the 'deepest' level (an actual
datafield) by
getNumContainedTypes() (returns 0 in this case).
Suppose I descended from e.g. a global struct down to a double field (of
that struct).
How and...