[cfe-commits] [PATCH] Allow PCHReader to be used without having a pre-initialized Preprocessor
Argyrios Kyrtzidis
kyrtzidis at apple.com
Wed Jun 17 21:28:05 PDT 2009
On Jun 17, 2009, at 8:46 PM, Chris Lattner wrote:
>
> On Jun 17, 2009, at 7:46 PM, Eli Friedman wrote:
>
>>> Argiris is working on building some infrastructure around the PCH
>>> format.
>>> Instead of just using the PCH writer for PCH, we'd like to use it
>>> for
>>> general AST serialization/deserialization. To do something like
>>> "load an
>>> ast and send it to codegen", you really just want to use whatever
>>> settings
>>> the AST was serialized with. Seem reasonable?
>>
>> Ah, okay, that makes sense. Although, what specific uses do you have
>> in mind? I can only think of a couple off the top of my head: a
>> dist-cc-like thing and an inter-procedural analysis tool.
>
> We'd like to do inter-procedural static analysis and other stuff
> eventually. Right now he's working on basic infrastructure: given a
> symbol identifier, return all the translation units (and the
> declcontext within them) that use/def it. Things like IP static
> analysis will build on top of this basic infrastructure.
Yep, with the awesome PCH implementation by Doug the sky is the
limit :-)
-Argiris
More information about the cfe-commits
mailing list