@@ -31,13 +31,14 @@ class AttrTypeReplacer {
31
31
// Application
32
32
// ===--------------------------------------------------------------------===//
33
33
34
- // / Replace the elements within the given operation. By default this includes
35
- // / the attributes within the operation. If `replaceLocs` is true, this also
36
- // / updates its location, the locations of any nested block arguments. If
37
- // / `replaceTypes` is true, this also updates the result types of the
38
- // / operation, and the types of any nested block arguments.
39
- void replaceElementsIn (Operation *op, bool replaceLocs = false ,
40
- bool replaceTypes = false );
34
+ // / Replace the elements within the given operation. If `replaceAttrs` is
35
+ // / true, this updates the attribute dictionary of the operation. If
36
+ // / `replaceLocs` is true, this also updates its location, and the locations
37
+ // / of any nested block arguments. If `replaceTypes` is true, this also
38
+ // / updates the result types of the operation, and the types of any nested
39
+ // / block arguments.
40
+ void replaceElementsIn (Operation *op, bool replaceAttrs = true ,
41
+ bool replaceLocs = false , bool replaceTypes = false );
41
42
42
43
// / Replace the given attribute/type, and recursively replace any sub
43
44
// / elements. Returns either the new attribute/type, or nullptr in the case of
0 commit comments