[llvm-dev] How to iterate over all the GlovalVariables at runtime
Alberto Barbaro via llvm-dev
llvm-dev at lists.llvm.org
Mon Dec 9 11:23:13 PST 2019
Hi all,
I'm playing with the interpreter and I'm able to access to some
GlobalVariable, if for instance used by a GEP instruction. I was wondering
if it is possible to list all of them independently from the instruction
I'm currently visiting and obviously the relative value. For instance, in
my .ll I have something:
@.str.4.49 = private unnamed_addr constant [19 x i8] c" but running with
\00", align 1
@.str.2.50 = private unnamed_addr constant [7 x i8] c"1.6.15\00", align 1
@.str.5.55 = private unnamed_addr constant [42 x i8] c"Unknown freer
parameter in png_data_freer\00", align 1
Is it possible to iterate over them and get the values?
Thanks
Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191209/1edb900e/attachment.html>
More information about the llvm-dev
mailing list