Also a new pass option ConvertToLLVMPass to populate only patterns from the specified dialects. This is needed because the existing test cases expect that only ops from certain dialects are lowered. (E.g., "arith-to-llvm" expects that only "arith" ops are lowered but not "func" ops.)
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Conversion/Passes.td | ||
---|---|---|
30 | What about calling this "filterDialects"? That's more descriptive of what it does right? | |
mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp | ||
90 | The error message does not check for the interface, or if the dialect is registered, just that it is loaded. | |
101–102 | ||
121 | What's this comment about here? | |
mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp | ||
797 | This one is implicitly loaded already, the interface documents it as a guarantee |
Comment Actions
address comments
mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp | ||
---|---|---|
121 | deleted, this is from an earlier version of this code |
What about calling this "filterDialects"? That's more descriptive of what it does right?