File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
mlir/test/lib/Dialect/Test Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -236,13 +236,14 @@ void test::writeToMlirBytecode(DialectBytecodeWriter &writer,
236
236
// Dynamic operations
237
237
// ===----------------------------------------------------------------------===//
238
238
239
- std::unique_ptr<DynamicOpDefinition> getDynamicGenericOp (TestDialect *dialect) {
239
+ static std::unique_ptr<DynamicOpDefinition>
240
+ getDynamicGenericOp (TestDialect *dialect) {
240
241
return DynamicOpDefinition::get (
241
242
" dynamic_generic" , dialect, [](Operation *op) { return success (); },
242
243
[](Operation *op) { return success (); });
243
244
}
244
245
245
- std::unique_ptr<DynamicOpDefinition>
246
+ static std::unique_ptr<DynamicOpDefinition>
246
247
getDynamicOneOperandTwoResultsOp (TestDialect *dialect) {
247
248
return DynamicOpDefinition::get (
248
249
" dynamic_one_operand_two_results" , dialect,
@@ -262,7 +263,7 @@ getDynamicOneOperandTwoResultsOp(TestDialect *dialect) {
262
263
[](Operation *op) { return success (); });
263
264
}
264
265
265
- std::unique_ptr<DynamicOpDefinition>
266
+ static std::unique_ptr<DynamicOpDefinition>
266
267
getDynamicCustomParserPrinterOp (TestDialect *dialect) {
267
268
auto verifier = [](Operation *op) {
268
269
if (op->getNumOperands () == 0 && op->getNumResults () == 0 )
You can’t perform that action at this time.
0 commit comments