This patch moves Function::AttributeList to a separate FnAttributeList class
where it is declared as private. The Function class inherits from
FnAttributeList but all accesses to the attributes have to go through
getter/setter functions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It funnels all changes to attributes through a single function, which makes it really easy to track all attribute changes from a single point.
Comment Actions
And what is this needed for / what will this be used for?
This is to make it easier to track changes to the attributes for Checkpointing, but regardless I think this is generally useful e.g., for debugging, as you can watch all changes from a single point.
Comment Actions
I see. In that case, I think this change makes sense as part of a patch stack to implement that RFC (if it is accepted), but I don't think we should do this otherwise.