[cfe-dev] Lookup table in clang.

Deepak Rajendrakumaran via cfe-dev cfe-dev at lists.llvm.org
Thu Jan 14 15:43:05 PST 2021


Hello,

I’m familiar with LLVM API and IR but not well versed in clang intervals.

I’m trying to figure out how the lookup table implementation works in clang.

To be specific, I’m trying to figure out how forward declaration -> use ->
definition is handled.

For example.

Struct A;// declared- added to table?

// B created with pointer to A and added to table?
Struct B {
       A *a;
}

// does B get updated?
Struct A {
      Type bar;
}



Is there any documentation available to figure out the clang internals to
know where to start looking to figure this out?

I’m guessing type system( to understand relation between declared and
defined types) and lookup table implementation should be a good starting
point to figure out how it works. Suggestions?

Regards,
Deepak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210114/5cdee70d/attachment.html>


More information about the cfe-dev mailing list