There are very few instances in which we use multiple files
for interface definitions (none upstream), and this allows
for including interfaces that shouldn't be generated (for
interface inheritance, dependencies, etc.)
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/docs/Interfaces.md | ||
---|---|---|
641 | Worst case impact of this is having more cmake/bazel rules? (one for each include now). Beyond running mlir-tblgen more in such cases, I can't think of another consequence of using this as organizing method. | |
mlir/tools/mlir-tblgen/OpInterfacesGen.cpp | ||
68–77 | Sort of surprised this hasn't hit us anywhere ... | |
76 | return llvm::SrcMgr.FindBufferContainingLoc(def->getLoc()[0] != llvm::SrcMgr.getMainFileID(); ? |
mlir/docs/Interfaces.md | ||
---|---|---|
641 | Yeah, would just need more rules. I can't think of any situations where it's really that bad. |
Worst case impact of this is having more cmake/bazel rules? (one for each include now). Beyond running mlir-tblgen more in such cases, I can't think of another consequence of using this as organizing method.