[IR Container] Phase2 Basic shared ptr#5960
[IR Container] Phase2 Basic shared ptr#5960mdavis36 wants to merge 1 commit intomd/fusion-stmt-regfrom
Conversation
|
!test |
|
Review updated until commit 53e5045 Description
|
| Relevant files | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Enhancement |
| ||||||||
| Configuration changes |
|
PR Reviewer Guide
Here are some key observations to aid the review process:
| 🧪 No relevant tests |
| ⚡ Recommended focus areas for review |
Missing Error Handling
ir_container_->removeFusion(this) without checking if ir_container_ is null. While there's a null check, the error message suggests this should never happen, but defensive programming would be safer. |
Change Fusion::ir_container_ from unique_ptr to shared_ptr to enable future container sharing between Fusions. Add Fusion tracking API to IrContainer (addFusion/removeFusion/transferFusion/sharingCount). Remove IrContainer::parent_ since the 1:1 relationship no longer holds. Disable parallel compilation during the shared_ptr transition.
3a199c8 to
53e5045
Compare
Change Fusion::ir_container_ from unique_ptr to shared_ptr to enable future container sharing between Fusions. Add Fusion tracking API to IrContainer (addFusion/removeFusion/transferFusion/sharingCount). Disable parallel compilation during the shared_ptr transition.