How mshockwave/sqlgen works
Flow and Relationships
• TableGen Input -> Parser -> Appropriate Emitter -> SQL Output
• ↕ ↕
• Error Handler ↕
• ↕
• Base SQLEmitter
Key Technical Elements to Highlight
• Input/Output components (green)
• Processing components (blue)
• Error handling (red)
• Base classes (yellow)
• Inheritance hierarchy:
• SQLEmitter as the base class
• SQLQueryEmitter, SQLInsertEmitter, and SQLTableEmitter inheriting from it
Testing Infrastructure (Secondary Layer)
A separate section showing:
• LIT Testing Framework
• Test Files (.td)
• FileCheck Verification
• CMake Build System
Important Details
• Command flow from input to output
• Test verification paths
Specific Implementation Notes
• Notes about the Query class structure
• Transformation process from TableGen to SQL
• Where configuration happens (CMake)
Remember to:
• Keep the LLVM integration visible but not overwhelming
• Emitter hierarchy as it's central to the design
• Clear boundaries between test infrastructure and core functionality