File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ public:
73
73
// otherwise.
74
74
// ...
75
75
}
76
- void rewrite(Operation * op, PatternRewriter &rewriter) {
76
+ void rewrite(Operation * op, PatternRewriter &rewriter) const override {
77
77
// The ` rewrite ` method performs mutations on the IR rooted at ` op ` using
78
78
// the provided rewriter. All mutations must go through the provided
79
79
// rewriter.
80
80
}
81
81
82
82
/// In this section, the ` match ` and ` rewrite ` implementation is specified
83
83
/// using a single hook.
84
- LogicalResult matchAndRewrite(Operation * op, PatternRewriter &rewriter) {
84
+ LogicalResult matchAndRewrite(Operation * op, PatternRewriter &rewriter) const override {
85
85
// The ` matchAndRewrite ` method performs both the matching and the mutation.
86
86
// Note that the match must reach a successful point before IR mutation may
87
87
// take place.
You can’t perform that action at this time.
0 commit comments