This patch is a follow up of D96422 and move CharacterType and BoxCharType to
TableGen.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/include/flang/Optimizer/Dialect/FIRTypes.td | ||
---|---|---|
76 | @mehdi_amini @rriddle I'm currently forcing this type to be generated before BoxCharType because it depends on it. Is there a better way to achieve this than adding a prefix (A_)? |
flang/include/flang/Optimizer/Dialect/FIRTypes.td | ||
---|---|---|
76 | Is this a matter of updating the TableGen backend to forward declare all classes before emitting the content? | |
141 | you have a non negligible amount of C++ here, consider replacing this with simple calls to static functions implemented in the cpp file. TableGen files don't have all the C++ IDE features... |
flang/include/flang/Optimizer/Dialect/FIRTypes.td | ||
---|---|---|
88 | Can you move the printer/parser to C++ instead? You just have to remove these fields and then you can provide your own definition for CharacterType::parse and CharacterType::print. |
flang/include/flang/Optimizer/Dialect/FIRTypes.td | ||
---|---|---|
76 | Moving the definitions in the .cpp files does the trick. |
@mehdi_amini @rriddle I'm currently forcing this type to be generated before BoxCharType because it depends on it. Is there a better way to achieve this than adding a prefix (A_)?