File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed
include/clang/CIR/Dialect Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ def HoistAllocas : Pass<"cir-hoist-allocas"> {
118
118
}
119
119
120
120
def FlattenCFG : Pass<"cir-flatten-cfg"> {
121
- let summary = "Produces flatten cfg ";
122
- let description = [{
121
+ let summary = "Produces flatten CFG ";
122
+ let description = [{
123
123
This pass transforms CIR and inline all the nested regions. Thus,
124
124
the next post condtions are met after the pass applied:
125
125
- there is not any nested region in a function body
@@ -132,7 +132,7 @@ def FlattenCFG : Pass<"cir-flatten-cfg"> {
132
132
}
133
133
134
134
def GotoSolver : Pass<"cir-goto-solver"> {
135
- let summary = "Replaces goto operatations with branches";
135
+ let summary = "Replaces goto operations with branches";
136
136
let description = [{
137
137
This pass transforms CIR and replaces goto-s with branch
138
138
operations to the proper blocks.
Original file line number Diff line number Diff line change @@ -1356,7 +1356,11 @@ struct ConvertCIRToLLVMPass
1356
1356
1357
1357
void processCIRAttrs (mlir::ModuleOp moduleOp);
1358
1358
1359
- virtual StringRef getArgument () const override { return " cir-flat-to-llvm" ; }
1359
+ StringRef getDescription () const override {
1360
+ return " Convert the prepared CIR dialect module to LLVM dialect" ;
1361
+ }
1362
+
1363
+ StringRef getArgument () const override { return " cir-flat-to-llvm" ; }
1360
1364
};
1361
1365
1362
1366
mlir::LogicalResult
Original file line number Diff line number Diff line change @@ -86,7 +86,11 @@ struct ConvertCIRToMLIRPass
86
86
}
87
87
void runOnOperation () final ;
88
88
89
- virtual StringRef getArgument () const override { return " cir-to-mlir" ; }
89
+ StringRef getDescription () const override {
90
+ return " Convert the CIR dialect module to MLIR standard dialects" ;
91
+ }
92
+
93
+ StringRef getArgument () const override { return " cir-to-mlir" ; }
90
94
};
91
95
92
96
class CIRCallOpLowering : public mlir ::OpConversionPattern<cir::CallOp> {
Original file line number Diff line number Diff line change @@ -49,7 +49,12 @@ struct ConvertMLIRToLLVMPass
49
49
}
50
50
void runOnOperation () final ;
51
51
52
- virtual StringRef getArgument () const override { return " cir-mlir-to-llvm" ; }
52
+ StringRef getDescription () const override {
53
+ return " Convert the MLIR standard dialects produced from CIR to MLIR LLVM "
54
+ " dialect" ;
55
+ }
56
+
57
+ StringRef getArgument () const override { return " cir-mlir-to-llvm" ; }
53
58
};
54
59
55
60
void ConvertMLIRToLLVMPass::runOnOperation () {
You can’t perform that action at this time.
0 commit comments