Skip to content

Commit a60c0be

Browse files
authored
Move cast member function deprecation to completed refactorings (#222)
This was completed in llvm/llvm-project#135556
1 parent f06807b commit a60c0be

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

website/content/deprecation/_index.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

2517
The `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
108100
lack 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

Comments
 (0)