Update the FuncToLLVM pass to use the generated constructors and
the generated pass option struct. The hand written constructor
got out of sync after some refactorings. Using a generated constructor
and options struct ensures the everything remains in sync.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Conversion/FuncToLLVM/ConvertFuncToLLVMPass.h | ||
---|---|---|
20–21 | These constructor functions will be auto generated by TableGen, although currently they do not have matching names. |
These constructor functions will be auto generated by TableGen, although currently they do not have matching names.
The name is simply create + TableGenRecordDefName. So if you rename ConvertFuncToLLVM to ConvertFuncToLLVMPass in the td file it should create both of these two declarations and the definitions in the cpp file for you and you'll be able to delete them here.