IRUnit is defined as:
using IRUnit = PointerUnion<Operation *, Region *, Block *, Value>;
The tracing::Action is extended to take an ArrayRef<IRUnit> as context to
describe an Action. It is demonstrated in the "ActionLogging" observer.
Differential D144814
Add capture of "IRUnits" as context for an MLIR Action mehdi_amini on Feb 25 2023, 10:19 PM. Authored by
Details IRUnit is defined as: using IRUnit = PointerUnion<Operation *, Region *, Block *, Value>; The tracing::Action is extended to take an ArrayRef<IRUnit> as context to
Diff Detail
Event TimelineComment Actions The data-flow analysis framework has a concept very similar to IRUnit its called ProgramPoint maybe this should be shared ?
Comment Actions I'm not sure how to unify it, it feels that somehow the ProgramPoint could inherit from IRUnit but it is declared as a more extensible framework: public PointerUnion<GenericProgramPoint *, Operation *, Value, Block *> so I'm not sure how to unify.
|