llvm / clangir

A new (MLIR based) high-level IR for clang.
https://clangir.org
Other
351 stars 95 forks source link

[CIR][CIRGen] Support undefined initialization attribute #628

Closed SchrodingerZhu closed 3 months ago

SchrodingerZhu commented 4 months ago

This PR adds the capability to initialize Globals with undefined values.

bcardosolopes commented 4 months ago

Thanks for the PR, how's is this different from a global without initializers? Seems like the same functionality to me.

bcardosolopes commented 4 months ago

Btw, it's possible we might need an undef attribute someday, but up to now we should be good without one!

bcardosolopes commented 3 months ago

@SchrodingerZhu do you plan to resume the work for this PR or should I close for the moment?

SchrodingerZhu commented 3 months ago

I may not be able to continue on this for now due to conflict. Please close this for now. Thanks!