Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add utilities for running modifications inside nested IR nodes #4940

Merged
merged 12 commits into from
Oct 10, 2024
Prev Previous commit
Next Next commit
Fix a typo & make lint happy
Signed-off-by: Vladimír Štill <vladimir.still@intel.com>
  • Loading branch information
vlstill committed Oct 4, 2024
commit 2e0a8573aea476400844678d32fb2279f2d9f5ac
4 changes: 2 additions & 2 deletions ir/ir-traversal.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ struct Traverse {
} // namespace Detail

/// @brief Given an object @p obj and a series of selector (ending with a modifier), modify the @p
/// obj's sub object at the selecte path. %This is useful for deeper modification of objects that
/// obj's sub object at the selected path. %This is useful for deeper modification of objects that
/// is not based on object types (in that case please use visitors) but on object structure (e.g.
/// member paths of C++ objects).
/// @param obj An object to modify.
Expand Down Expand Up @@ -199,4 +199,4 @@ Obj *apply(const Obj *obj, Selectors &&...selectors) {

} // namespace P4::IR::Traversal

#endif // IR_IR_TRAVERSAL_H_
#endif // IR_IR_TRAVERSAL_H_
Loading