File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
mlir/include/mlir/Dialect/SCF/IR Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,20 @@ include "mlir/Interfaces/ViewLikeInterface.td"
26
26
def SCF_Dialect : Dialect {
27
27
let name = "scf";
28
28
let cppNamespace = "::mlir::scf";
29
+
30
+ let description = [{
31
+ The `scf` (structured control flow) dialect contains operations that
32
+ represent control flow constructs such as `if` and `for`. Being
33
+ _structured_ means that the control flow has a structure unlike, for
34
+ example, `goto`s or `assert`s. Unstructured control flow operations are
35
+ located in the `cf` (control flow) dialect.
36
+
37
+ Originally, this dialect was developed as a common lowering stage for the
38
+ `affine` and `linalg` dialects. Both convert to SCF loops instead of
39
+ targeting branch-based CFGs directly. Typically, `scf` is lowered to `cf`
40
+ and then lowered to some final target like LLVM or SPIR-V.
41
+ }];
42
+
29
43
let dependentDialects = ["arith::ArithDialect"];
30
44
}
31
45
You can’t perform that action at this time.
0 commit comments