LLVM passes, IR generations, Flex&Bison and ANTLR parsers, LLVM BackEnd and simulator code examples for simple graphical SDL2 applications.
Simple examples of graphical application with simple interface based on the SDL 2.0. IRGen: LLVM IR generation for graphical application. Asm2IR LLVM IR generator for graphical application.
Examples of LLVM passes that collect static application IR information, insert instrumentation for collecting dynamic information and dummy optimization passes. Legacy: Examples of LLVM passes with old Pass Manager version.
LLVM IR generators examples: "hello world" LLVM IR generator => Calculator based on LLVM IR => assembly file to LLVM IR lifter => mathematical expressions frontend.
Examples of parsers based on Flex and Bison: "hello world" => simple mathematical expressions => expressions with variables and arrays => simple programming language files => interpretation and LLVM IR building => simple FrontEnd.
Examples of parsers based on ANTLR: Expressions parser and Frontend.
TableGen examples. Descriptions for simple steps for LLVM Backend implementation for sim target.
Steps are placed in https://github.com/lisitsynSA/llvm-add-backend.
Simple simulator for generated object files for sim target. Simulator ELF parsing is based on elfio.
"Compiler driver" example for programming language files.
*.lang/*.nl/*.c => Flex_Bison/ANTLR/Clang FrontEnd => *.ll => opt => *.opt.ll => Custom llc => *.opt.s + *.opt.o => simulator