[llvm-dev] distinguish program and temporary variables
Mohammad Norouzi via llvm-dev
llvm-dev at lists.llvm.org
Mon Feb 8 08:29:53 PST 2016
thanks for your time and reply.
>
> Look at the Doxygen documentation on the LLVM web site for documentation
> on the Value and Instruction classes. They probably have methods for
> retrieving the Debug Metadata (and if they don't, one of their
> subclasses/superclasses does). You can search through the LLVM source code
> for examples as well, plus I think there's a document that describes the
> format of the LLVM Debug Metadata on the LLVM web page.
>
>
what about DILocalVariable class? do you think it would provide any info
about the case?
>
>
>>
>> It sounds like you need to be analyzing Clang ASTs instead of LLVM IR.
>> The Clang AST represents a program in its original source form, so you can
>> tell what is a program variable, in what file it was defined, its original
>> source type, etc.
>>
>
> I'm not sure about Clang ASTs but this is part of an llvm pass which
> analyzes llvm IR. So, i doubt if i can use Clang AST.
>
>
> Why are you restricted to using LLVM IR?
>
I'm working on some part of a project. The whole project works on llvm ir.
Best,
Mohammad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160208/d28f9cae/attachment.html>
More information about the llvm-dev
mailing list