This was important when ModuleOp was the only top level operation, but that isn't necessarily the case anymore. This is one of the last remaining aspects of the infrastructure that is hardcoded to ModuleOp.
Depends On D92450
Paths
| Differential D92605
[mlir][Parser] Don't hardcode the use of ModuleOp in the parser ClosedPublic Authored by rriddle on Dec 3 2020, 1:45 PM.
Details Summary This was important when ModuleOp was the only top level operation, but that isn't necessarily the case anymore. This is one of the last remaining aspects of the infrastructure that is hardcoded to ModuleOp. Depends On D92450
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 3 2020, 2:14 PM rriddle added inline comments.
This revision was landed with ongoing or failed builds.Dec 3 2020, 3:54 PM Closed by commit rGb57980309a69: [mlir][Parser] Don't hardcode the use of ModuleOp in the parser (authored by rriddle). · Explain Why This revision was automatically updated to reflect the committed changes. rriddle marked 2 inline comments as done.
Revision Contents
Diff 309395 mlir/include/mlir/Dialect/SPIRV/SPIRVModule.hmlir/include/mlir/IR/BuiltinOps.h
mlir/include/mlir/IR/OpDefinition.h
mlir/include/mlir/IR/OwningOpRef.h
mlir/include/mlir/Parser.h
mlir/lib/Parser/Parser.cpp
|
Could this be using OwningSPIRVModuleRef = OwningOpRef<spirv::ModuleOp>; ? (same for OwningModuleRef)