@@ -12,14 +12,6 @@ up with MLIR development.
1212
1313## Deprecated
1414
15- ### Use the free function variants for ` dyn_cast ` /` cast ` /` isa ` /...
16-
17- When casting attributes or type, use the free functions variants, e.g.,
18- ` dyn_cast<T>(x) ` , ` isa<T>(x) ` , etc. Use of the cast methods variants (e.g.,
19- ` x.dyn_cast<T>() ` ) should be avoided in new code as we'll remove these
20- methods in the future.
21- [ Discussion on Discourse] ( https://discourse.llvm.org/t/preferred-casting-style-going-forward/68443 )
22-
2315### Use ` matchAndRewrite ` instead of ` match ` / ` rewrite `
2416
2517The ` match ` and ` rewrite ` functions of ` RewritePattern ` and ` ConversionPattern `
@@ -108,3 +100,14 @@ been implemented in upstream MLIR or any known downstream projects. Due to this
108100lack of use, it was decided that the operation should be removed.
109101
110102[ Discussion on Discourse] ( https://discourse.llvm.org/t/rfc-should-vector-reshape-be-removed/80478 )
103+
104+ ## LLVM 21
105+
106+ ### Use the free function variants for ` dyn_cast ` /` cast ` /` isa ` /...
107+
108+ When casting attributes or type, use the free functions variants, e.g.,
109+ ` dyn_cast<T>(x) ` , ` isa<T>(x) ` , etc. Use of the cast methods variants (e.g.,
110+ ` x.dyn_cast<T>() ` ) should be avoided in new code as we removed these
111+ methods in https://github.com/llvm/llvm-project/pull/135556 .
112+
113+ [ Discussion on Discourse] ( https://discourse.llvm.org/t/preferred-casting-style-going-forward/68443 )
0 commit comments