Where are the gepis generated?

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 :).

/ Mattias

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

grep CreateGEP tools/clang/lib/CodeGen/*