haoNoQ wrote: Ooo interesting. I want to spend a bit more time thinking whether this has to go into every callback, maybe it can be a set-and-forget thing? (Probably not.)
Also it might be a good idea to cache only statements that may ever get directly queried. (This seems to be exactly necessary and sufficient.) For now they're just the 5 control flow statements right? Maybe add caching to these 5 callbacks and skip the rest? (I suspect it may matter for performance as well, dunno hard to tell though.) https://github.com/llvm/llvm-project/pull/82229 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits