@@ -259,22 +259,23 @@ void mlirIRRewriterDestroy(MlirRewriterBase rewriter) {
259259// / RewritePatternSet and FrozenRewritePatternSet API
260260// ===----------------------------------------------------------------------===//
261261
262- inline mlir::RewritePatternSet &unwrap (MlirRewritePatternSet module ) {
262+ static inline mlir::RewritePatternSet &unwrap (MlirRewritePatternSet module ) {
263263 assert (module .ptr && " unexpected null module" );
264264 return *(static_cast <mlir::RewritePatternSet *>(module .ptr ));
265265}
266266
267- inline MlirRewritePatternSet wrap (mlir::RewritePatternSet *module ) {
267+ static inline MlirRewritePatternSet wrap (mlir::RewritePatternSet *module ) {
268268 return {module };
269269}
270270
271- inline mlir::FrozenRewritePatternSet *
271+ static inline mlir::FrozenRewritePatternSet *
272272unwrap (MlirFrozenRewritePatternSet module ) {
273273 assert (module .ptr && " unexpected null module" );
274274 return static_cast <mlir::FrozenRewritePatternSet *>(module .ptr );
275275}
276276
277- inline MlirFrozenRewritePatternSet wrap (mlir::FrozenRewritePatternSet *module ) {
277+ static inline MlirFrozenRewritePatternSet
278+ wrap (mlir::FrozenRewritePatternSet *module ) {
278279 return {module };
279280}
280281
@@ -321,12 +322,12 @@ inline MlirPatternRewriter wrap(mlir::PatternRewriter *rewriter) {
321322// ===----------------------------------------------------------------------===//
322323
323324#if MLIR_ENABLE_PDL_IN_PATTERNMATCH
324- inline mlir::PDLPatternModule *unwrap (MlirPDLPatternModule module ) {
325+ static inline mlir::PDLPatternModule *unwrap (MlirPDLPatternModule module ) {
325326 assert (module .ptr && " unexpected null module" );
326327 return static_cast <mlir::PDLPatternModule *>(module .ptr );
327328}
328329
329- inline MlirPDLPatternModule wrap (mlir::PDLPatternModule *module ) {
330+ static inline MlirPDLPatternModule wrap (mlir::PDLPatternModule *module ) {
330331 return {module };
331332}
332333
0 commit comments