clangir icon indicating copy to clipboard operation
clangir copied to clipboard

[CIR][CodeGen] Support static local variables

Open lanza opened this issue 1 year ago • 1 comments

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.

lanza avatar Dec 11 '24 04:12 lanza

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.

bcardosolopes avatar Dec 11 '24 18:12 bcardosolopes