diff --git a/mlir/include/mlir/Dialect/Affine/Passes.h b/mlir/include/mlir/Dialect/Affine/Passes.h --- a/mlir/include/mlir/Dialect/Affine/Passes.h +++ b/mlir/include/mlir/Dialect/Affine/Passes.h @@ -28,20 +28,7 @@ /// producer-consumer and sibling fusion. enum FusionMode { Greedy, ProducerConsumer, Sibling }; -#define GEN_PASS_DECL_AFFINEDATACOPYGENERATION -#define GEN_PASS_DECL_AFFINELOOPFUSION -#define GEN_PASS_DECL_AFFINELOOPINVARIANTCODEMOTION -#define GEN_PASS_DECL_AFFINELOOPTILING -#define GEN_PASS_DECL_AFFINELOOPUNROLL -#define GEN_PASS_DECL_AFFINELOOPUNROLLANDJAM -#define GEN_PASS_DECL_AFFINEPIPELINEDATATRANSFER -#define GEN_PASS_DECL_AFFINESCALARREPLACEMENT -#define GEN_PASS_DECL_AFFINEVECTORIZE -#define GEN_PASS_DECL_AFFINEPARALLELIZE -#define GEN_PASS_DECL_AFFINELOOPNORMALIZE -#define GEN_PASS_DECL_LOOPCOALESCING -#define GEN_PASS_DECL_SIMPLIFYAFFINESTRUCTURES -#define GEN_PASS_DECL_AFFINEEXPANDINDEXOPS +#define GEN_PASS_DECL #include "mlir/Dialect/Affine/Passes.h.inc" /// Creates a simplification pass for affine structures (maps and sets). In diff --git a/mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.h b/mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.h @@ -14,10 +14,7 @@ namespace mlir { namespace arith { -#define GEN_PASS_DECL_ARITHMETICBUFFERIZE -#define GEN_PASS_DECL_ARITHMETICEMULATEWIDEINT -#define GEN_PASS_DECL_ARITHMETICEXPANDOPS -#define GEN_PASS_DECL_ARITHMETICUNSIGNEDWHENEQUIVALENT +#define GEN_PASS_DECL #include "mlir/Dialect/Arithmetic/Transforms/Passes.h.inc" class WideIntEmulationConverter; diff --git a/mlir/include/mlir/Dialect/Async/Passes.h b/mlir/include/mlir/Dialect/Async/Passes.h --- a/mlir/include/mlir/Dialect/Async/Passes.h +++ b/mlir/include/mlir/Dialect/Async/Passes.h @@ -18,11 +18,7 @@ namespace mlir { class ModuleOp; -#define GEN_PASS_DECL_ASYNCPARALLELFOR -#define GEN_PASS_DECL_ASYNCTOASYNCRUNTIME -#define GEN_PASS_DECL_ASYNCRUNTIMEREFCOUNTING -#define GEN_PASS_DECL_ASYNCRUNTIMEREFCOUNTINGOPT -#define GEN_PASS_DECL_ASYNCRUNTIMEPOLICYBASEDREFCOUNTING +#define GEN_PASS_DECL #include "mlir/Dialect/Async/Passes.h.inc" std::unique_ptr createAsyncParallelForPass(); diff --git a/mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.h b/mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.h @@ -17,17 +17,7 @@ // Passes //===----------------------------------------------------------------------===// -#define GEN_PASS_DECL_BUFFERDEALLOCATION -#define GEN_PASS_DECL_BUFFERHOISTING -#define GEN_PASS_DECL_BUFFERLOOPHOISTING -#define GEN_PASS_DECL_BUFFERRESULTSTOOUTPARAMS -#define GEN_PASS_DECL_FINALIZINGBUFFERIZE -#define GEN_PASS_DECL_BUFFERIZATIONBUFFERIZE -#define GEN_PASS_DECL_DROPEQUIVALENTBUFFERRESULTS -#define GEN_PASS_DECL_ONESHOTBUFFERIZE -#define GEN_PASS_DECL_PROMOTEBUFFERSTOSTACK -#define GEN_PASS_DECL_TENSORCOPYINSERTION -#define GEN_PASS_DECL_ALLOCTENSORELIMINATION +#define GEN_PASS_DECL #include "mlir/Dialect/Bufferization/Transforms/Passes.h.inc" /// Creates an instance of the BufferDeallocation pass to free all allocated diff --git a/mlir/include/mlir/Dialect/Func/Transforms/Passes.h b/mlir/include/mlir/Dialect/Func/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/Func/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Func/Transforms/Passes.h @@ -26,7 +26,7 @@ namespace func { -#define GEN_PASS_DECL_FUNCBUFFERIZE +#define GEN_PASS_DECL #include "mlir/Dialect/Func/Transforms/Passes.h.inc" /// Creates an instance of func bufferization pass. diff --git a/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h b/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h @@ -27,10 +27,7 @@ class FuncOp; } // namespace func -#define GEN_PASS_DECL_GPULAUNCHSINKINDEXCOMPUTATIONS -#define GEN_PASS_DECL_GPUKERNELOUTLINING -#define GEN_PASS_DECL_GPUASYNCREGION -#define GEN_PASS_DECL_GPUMAPPARALLELLOOPS +#define GEN_PASS_DECL #include "mlir/Dialect/GPU/Transforms/Passes.h.inc" /// Pass that moves ops which are likely an index computation into gpu.launch diff --git a/mlir/include/mlir/Dialect/Linalg/Passes.h b/mlir/include/mlir/Dialect/Linalg/Passes.h --- a/mlir/include/mlir/Dialect/Linalg/Passes.h +++ b/mlir/include/mlir/Dialect/Linalg/Passes.h @@ -26,28 +26,7 @@ struct OneShotBufferizationOptions; } // namespace bufferization -#define GEN_PASS_DECL_CONVERTELEMENTWISETOLINALG -#define GEN_PASS_DECL_LINALGINITTENSORTOALLOCTENSOR -#define GEN_PASS_DECL_LINALGFOLDUNITEXTENTDIMS -#define GEN_PASS_DECL_LINALGELEMENTWISEOPFUSION -#define GEN_PASS_DECL_LINALGNAMEDOPCONVERSION -#define GEN_PASS_DECL_LINALGINLINESCALAROPERANDS -#define GEN_PASS_DECL_LINALGLOWERTOAFFINELOOPS -#define GEN_PASS_DECL_LINALGLOWERTOLOOPSPASS -#define GEN_PASS_DECL_LINALGLOWERTOPARALLELLOOPS -#define GEN_PASS_DECL_LINALGBUFFERIZE -#define GEN_PASS_DECL_LINALGTILINGPASS -#define GEN_PASS_DECL_LINALGGENERALIZATION -#define GEN_PASS_DECL_LINALGDETENSORIZE -#define GEN_PASS_DECL_LINALGSTRATEGYTILEANDFUSEPASS -#define GEN_PASS_DECL_LINALGSTRATEGYTILEPASS -#define GEN_PASS_DECL_LINALGSTRATEGYPADPASS -#define GEN_PASS_DECL_LINALGSTRATEGYDECOMPOSEPASS -#define GEN_PASS_DECL_LINALGSTRATEGYPEELPASS -#define GEN_PASS_DECL_LINALGSTRATEGYVECTORIZEPASS -#define GEN_PASS_DECL_LINALGSTRATEGYENABLEPASS -#define GEN_PASS_DECL_LINALGSTRATEGYLOWERVECTORSPASS -#define GEN_PASS_DECL_LINALGSTRATEGYREMOVEMARKERSPASS +#define GEN_PASS_DECL #include "mlir/Dialect/Linalg/Passes.h.inc" std::unique_ptr createConvertElementwiseToLinalgPass(); diff --git a/mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h b/mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h @@ -91,11 +91,7 @@ // Passes //===----------------------------------------------------------------------===// -#define GEN_PASS_DECL_EXPANDOPS -#define GEN_PASS_DECL_FOLDMEMREFALIASOPS -#define GEN_PASS_DECL_NORMALIZEMEMREFS -#define GEN_PASS_DECL_RESOLVERANKEDSHAPETYPERESULTDIMS -#define GEN_PASS_DECL_RESOLVESHAPEDTYPERESULTDIMS +#define GEN_PASS_DECL #include "mlir/Dialect/MemRef/Transforms/Passes.h.inc" /// Creates an instance of the ExpandOps pass that legalizes memref dialect ops diff --git a/mlir/include/mlir/Dialect/NVGPU/Passes.h b/mlir/include/mlir/Dialect/NVGPU/Passes.h --- a/mlir/include/mlir/Dialect/NVGPU/Passes.h +++ b/mlir/include/mlir/Dialect/NVGPU/Passes.h @@ -17,7 +17,7 @@ namespace mlir { namespace nvgpu { -#define GEN_PASS_DECL_OPTIMIZESHAREDMEMORY +#define GEN_PASS_DECL #include "mlir/Dialect/NVGPU/Passes.h.inc" /// Create a pass to optimize shared memory reads and writes. diff --git a/mlir/include/mlir/Dialect/SCF/Transforms/Passes.h b/mlir/include/mlir/Dialect/SCF/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/SCF/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/SCF/Transforms/Passes.h @@ -17,16 +17,7 @@ namespace mlir { -#define GEN_PASS_DECL_SCFBUFFERIZE -#define GEN_PASS_DECL_SCFFORLOOPCANONICALIZATION -#define GEN_PASS_DECL_SCFFORLOOPPEELING -#define GEN_PASS_DECL_SCFFORLOOPSPECIALIZATION -#define GEN_PASS_DECL_SCFPARALLELLOOPFUSION -#define GEN_PASS_DECL_SCFPARALLELLOOPCOLLAPSING -#define GEN_PASS_DECL_SCFPARALLELLOOPSPECIALIZATION -#define GEN_PASS_DECL_SCFPARALLELLOOPTILING -#define GEN_PASS_DECL_SCFFORLOOPRANGEFOLDING -#define GEN_PASS_DECL_SCFFORTOWHILELOOP +#define GEN_PASS_DECL #include "mlir/Dialect/SCF/Transforms/Passes.h.inc" /// Creates a pass that bufferizes the SCF dialect. diff --git a/mlir/include/mlir/Dialect/SPIRV/Transforms/Passes.h b/mlir/include/mlir/Dialect/SPIRV/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/SPIRV/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/SPIRV/Transforms/Passes.h @@ -27,12 +27,7 @@ // Passes //===----------------------------------------------------------------------===// -#define GEN_PASS_DECL_SPIRVCOMPOSITETYPELAYOUT -#define GEN_PASS_DECL_SPIRVCANONICALIZEGL -#define GEN_PASS_DECL_SPIRVLOWERABIATTRIBUTES -#define GEN_PASS_DECL_SPIRVREWRITEINSERTSPASS -#define GEN_PASS_DECL_SPIRVUNIFYALIASEDRESOURCEPASS -#define GEN_PASS_DECL_SPIRVUPDATEVCE +#define GEN_PASS_DECL #include "mlir/Dialect/SPIRV/Transforms/Passes.h.inc" /// Creates a pass to run canoncalization patterns that involve GL ops. diff --git a/mlir/include/mlir/Dialect/Shape/Transforms/Passes.h b/mlir/include/mlir/Dialect/Shape/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/Shape/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Shape/Transforms/Passes.h @@ -26,9 +26,7 @@ namespace mlir { -#define GEN_PASS_DECL_SHAPETOSHAPELOWERING -#define GEN_PASS_DECL_REMOVESHAPECONSTRAINTS -#define GEN_PASS_DECL_SHAPEBUFFERIZE +#define GEN_PASS_DECL #include "mlir/Dialect/Shape/Transforms/Passes.h.inc" /// Creates an instance of the ShapeToShapeLowering pass that legalizes Shape diff --git a/mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h b/mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.h @@ -54,9 +54,7 @@ kAnyStorageInnerLoop }; -#define GEN_PASS_DECL_SPARSIFICATIONPASS -#define GEN_PASS_DECL_SPARSETENSORCONVERSIONPASS -#define GEN_PASS_DECL_SPARSETENSORCODEGEN +#define GEN_PASS_DECL #include "mlir/Dialect/SparseTensor/Transforms/Passes.h.inc" /// Options for the Sparsification pass. diff --git a/mlir/include/mlir/Dialect/Tensor/Transforms/Passes.h b/mlir/include/mlir/Dialect/Tensor/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/Tensor/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Tensor/Transforms/Passes.h @@ -13,7 +13,7 @@ namespace mlir { -#define GEN_PASS_DECL_TENSORBUFFERIZE +#define GEN_PASS_DECL #include "mlir/Dialect/Tensor/Transforms/Passes.h.inc" /// Creates an instance of `tensor` dialect bufferization pass. diff --git a/mlir/include/mlir/Dialect/Tosa/Transforms/Passes.h b/mlir/include/mlir/Dialect/Tosa/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/Tosa/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Tosa/Transforms/Passes.h @@ -19,10 +19,7 @@ namespace mlir { namespace tosa { -#define GEN_PASS_DECL_TOSALAYERWISECONSTANTFOLD -#define GEN_PASS_DECL_TOSAINFERSHAPES -#define GEN_PASS_DECL_TOSAMAKEBROADCASTABLE -#define GEN_PASS_DECL_TOSAOPTIONALDECOMPOSITIONS +#define GEN_PASS_DECL #include "mlir/Dialect/Tosa/Transforms/Passes.h.inc" // Expose Rewrite Functions that decompose TOSA Ops into further TOSA Ops. diff --git a/mlir/include/mlir/Dialect/Transform/Transforms/Passes.h b/mlir/include/mlir/Dialect/Transform/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/Transform/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Transform/Transforms/Passes.h @@ -16,7 +16,7 @@ class Pass; namespace transform { -#define GEN_PASS_DECL_CHECKUSESPASS +#define GEN_PASS_DECL #include "mlir/Dialect/Transform/Transforms/Passes.h.inc" #define GEN_PASS_REGISTRATION diff --git a/mlir/include/mlir/Dialect/Vector/Transforms/Passes.h b/mlir/include/mlir/Dialect/Vector/Transforms/Passes.h --- a/mlir/include/mlir/Dialect/Vector/Transforms/Passes.h +++ b/mlir/include/mlir/Dialect/Vector/Transforms/Passes.h @@ -13,7 +13,7 @@ namespace mlir { namespace vector { -#define GEN_PASS_DECL_VECTORBUFFERIZE +#define GEN_PASS_DECL #include "mlir/Dialect/Vector/Transforms/Passes.h.inc" /// Creates an instance of the `vector` dialect bufferization pass. diff --git a/mlir/include/mlir/Reducer/Passes.h b/mlir/include/mlir/Reducer/Passes.h --- a/mlir/include/mlir/Reducer/Passes.h +++ b/mlir/include/mlir/Reducer/Passes.h @@ -12,8 +12,7 @@ namespace mlir { -#define GEN_PASS_DECL_REDUCTIONTREE -#define GEN_PASS_DECL_OPTREDUCTION +#define GEN_PASS_DECL #include "mlir/Reducer/Passes.h.inc" std::unique_ptr createReductionTreePass();