Re:A Complete Guide to LLVM for Programming Language Creators
by ufo on Saturday December 26, 2020 @09:30AM
(#25543678)
Flex+yacc and llvm are for separate steps in the process. The former are for parsing the source code into an AST and the latter for generating executable code from the AST.
That said, somewhere else on this comment thread user "finiteloop" posted the scaffolding for a toy compiler using yacc+llvm. You could check that out.
Trying to get into LLVM, Id love to find an example done in flex+yacc vs the same done in LLVM.