[cfe-dev] static single assignment in clang

David Blaikie dblaikie at gmail.com
Thu Nov 15 11:55:27 PST 2012

On Thu, Nov 15, 2012 at 11:45 AM, madil90 <madil90 at gmail.com> wrote:
> Hi,
>   During which part of compilation does clang generate the SSA form?

During lowering to LLVM IR. (well, I suspect Clang emits lots of
things/everything as memory operands & then LLVM's mem2reg cleans it
all up into more SSA variable usage)

> I have
> a program that creates and parses an AST. Can I access the use def chains
> for a variable?

Not so much, no (so far as I understand it). We don't build a
full-input-language-fidelity SSA graph.

- David

More information about the cfe-dev mailing list