clangir
clangir copied to clipboard
[CIR][CodeGen] Support static local variables
Support static local variable. Emit the initialization code into the ctor region of the GlobalOp that represents the static local. During LoweringPrepare expand that ctor region into the guardAcquire/release walk.
Follow ups need to support exceptions and guardAbort.
Thanks so much for working on this, I gotta say this PR is huge though, we should probably talk about a way to split this down a bit, maybe we can incrementally converge faster if this is done in pieces.