[cfe-dev] Where are the gepis generated?

Chris Lattner clattner at apple.com
Mon Sep 14 09:46:49 PDT 2009


On Sep 14, 2009, at 5:22 AM, Mattias Holm wrote:

> Hi everyone,
>
> I am trying to figure out where in the IR gen library the
> getelementpointer instructions for computing record field addresses  
> are
> generated. I have tried to search for those types and been digging
> around quite a bit, but found basically nothing of interest.
>
> Someone willing to give a hint? It would be nice if there was some
> overview of the ir-gen library somewhere :).

Clang uses IRBuilder to construct IR, so you can generally just grep  
for its methods, for example:

grep CreateGEP tools/clang/lib/CodeGen/*

-Chris



More information about the cfe-dev mailing list