├── .clang-format ├── .gitignore ├── Chapter02 └── calc │ ├── CMakeLists.txt │ ├── rtcalc.c │ └── src │ ├── AST.h │ ├── CMakeLists.txt │ ├── Calc.cpp │ ├── CodeGen.cpp │ ├── CodeGen.h │ ├── Lexer.cpp │ ├── Lexer.h │ ├── Parser.cpp │ ├── Parser.h │ ├── Sema.cpp │ └── Sema.h ├── Chapter03 └── tinylang │ ├── .clang-format │ ├── .clang-tidy │ ├── CMakeLists.txt │ ├── cmake │ └── modules │ │ └── AddTinylang.cmake │ ├── example │ └── Gcd.mod │ ├── include │ └── tinylang │ │ ├── AST │ │ └── AST.h │ │ ├── Basic │ │ ├── Diagnostic.def │ │ ├── Diagnostic.h │ │ ├── LLVM.h │ │ ├── TokenKinds.def │ │ ├── TokenKinds.h │ │ ├── Version.h │ │ └── Version.inc.in │ │ ├── Lexer │ │ ├── Lexer.h │ │ └── Token.h │ │ ├── Parser │ │ └── Parser.h │ │ └── Sema │ │ ├── Scope.h │ │ └── Sema.h │ ├── lib │ ├── Basic │ │ ├── CMakeLists.txt │ │ ├── Diagnostic.cpp │ │ ├── TokenKinds.cpp │ │ └── Version.cpp │ ├── CMakeLists.txt │ ├── Lexer │ │ ├── CMakeLists.txt │ │ └── Lexer.cpp │ ├── Parser │ │ ├── CMakeLists.txt │ │ ├── Parser.cpp │ │ └── tinylang.g │ └── Sema │ │ ├── CMakeLists.txt │ │ ├── Scope.cpp │ │ └── Sema.cpp │ └── tools │ ├── CMakeLists.txt │ └── driver │ ├── CMakeLists.txt │ └── Driver.cpp ├── Chapter04 └── tinylang │ ├── .clang-format │ ├── .clang-tidy │ ├── CMakeLists.txt │ ├── cmake │ └── modules │ │ └── AddTinylang.cmake │ ├── examples │ ├── Gcd.mod │ └── callgcd.c │ ├── include │ └── tinylang │ │ ├── AST │ │ └── AST.h │ │ ├── Basic │ │ ├── Diagnostic.def │ │ ├── Diagnostic.h │ │ ├── LLVM.h │ │ ├── TokenKinds.def │ │ ├── TokenKinds.h │ │ ├── Version.h │ │ └── Version.inc.in │ │ ├── CodeGen │ │ ├── CGModule.h │ │ ├── CGProcedure.h │ │ └── CodeGenerator.h │ │ ├── Lexer │ │ ├── Lexer.h │ │ └── Token.h │ │ ├── Parser │ │ └── Parser.h │ │ └── Sema │ │ ├── Scope.h │ │ └── Sema.h │ ├── lib │ ├── Basic │ │ ├── CMakeLists.txt │ │ ├── Diagnostic.cpp │ │ ├── TokenKinds.cpp │ │ └── Version.cpp │ ├── CMakeLists.txt │ ├── CodeGen │ │ ├── CGModule.cpp │ │ ├── CGProcedure.cpp │ │ ├── CMakeLists.txt │ │ └── CodeGenerator.cpp │ ├── Lexer │ │ ├── CMakeLists.txt │ │ └── Lexer.cpp │ ├── Parser │ │ ├── CMakeLists.txt │ │ └── Parser.cpp │ └── Sema │ │ ├── CMakeLists.txt │ │ ├── Scope.cpp │ │ └── Sema.cpp │ └── tools │ ├── CMakeLists.txt │ └── driver │ ├── CMakeLists.txt │ └── Driver.cpp ├── Chapter05 └── tinylang │ ├── CMakeLists.txt │ ├── cmake │ └── modules │ │ └── AddTinylang.cmake │ ├── examples │ └── Point.mod │ ├── include │ └── tinylang │ │ ├── AST │ │ ├── AST.h │ │ └── ASTContext.h │ │ ├── Basic │ │ ├── Diagnostic.def │ │ ├── Diagnostic.h │ │ ├── LLVM.h │ │ ├── TokenKinds.def │ │ ├── TokenKinds.h │ │ ├── Version.h │ │ └── Version.inc.in │ │ ├── CodeGen │ │ ├── CGModule.h │ │ ├── CGProcedure.h │ │ └── CodeGenerator.h │ │ ├── Lexer │ │ ├── Lexer.h │ │ └── Token.h │ │ ├── Parser │ │ └── Parser.h │ │ └── Sema │ │ ├── Scope.h │ │ └── Sema.h │ ├── lib │ ├── Basic │ │ ├── CMakeLists.txt │ │ ├── Diagnostic.cpp │ │ ├── TokenKinds.cpp │ │ └── Version.cpp │ ├── CMakeLists.txt │ ├── CodeGen │ │ ├── CGModule.cpp │ │ ├── CGProcedure.cpp │ │ ├── CMakeLists.txt │ │ └── CodeGenerator.cpp │ ├── Lexer │ │ ├── CMakeLists.txt │ │ └── Lexer.cpp │ ├── Parser │ │ ├── CMakeLists.txt │ │ └── Parser.cpp │ └── Sema │ │ ├── CMakeLists.txt │ │ ├── Scope.cpp │ │ └── Sema.cpp │ └── tools │ ├── CMakeLists.txt │ └── driver │ ├── CMakeLists.txt │ └── Driver.cpp ├── Chapter06 ├── calc │ ├── CMakeLists.txt │ ├── rtcalc.cpp │ └── src │ │ ├── AST.h │ │ ├── CMakeLists.txt │ │ ├── Calc.cpp │ │ ├── CodeGen.cpp │ │ ├── CodeGen.h │ │ ├── Lexer.cpp │ │ ├── Lexer.h │ │ ├── Parser.cpp │ │ ├── Parser.h │ │ ├── Sema.cpp │ │ └── Sema.h └── tinylang │ ├── CMakeLists.txt │ ├── cmake │ └── modules │ │ └── AddTinylang.cmake │ ├── examples │ ├── Gcd.mod │ ├── Person.mod │ ├── Person2.mod │ └── SpecialPtr.mod │ ├── include │ └── tinylang │ │ ├── AST │ │ ├── AST.h │ │ └── ASTContext.h │ │ ├── Basic │ │ ├── Diagnostic.def │ │ ├── Diagnostic.h │ │ ├── LLVM.h │ │ ├── TokenKinds.def │ │ ├── TokenKinds.h │ │ ├── Version.h │ │ └── Version.inc.in │ │ ├── CodeGen │ │ ├── CGDebugInfo.h │ │ ├── CGModule.h │ │ ├── CGProcedure.h │ │ ├── CGTBAA.h │ │ └── CodeGenerator.h │ │ ├── Lexer │ │ ├── Lexer.h │ │ └── Token.h │ │ ├── Parser │ │ └── Parser.h │ │ └── Sema │ │ ├── Scope.h │ │ └── Sema.h │ ├── lib │ ├── Basic │ │ ├── CMakeLists.txt │ │ ├── Diagnostic.cpp │ │ ├── TokenKinds.cpp │ │ └── Version.cpp │ ├── CMakeLists.txt │ ├── CodeGen │ │ ├── CGDebugInfo.cpp │ │ ├── CGModule.cpp │ │ ├── CGProcedure.cpp │ │ ├── CGTBAA.cpp │ │ ├── CMakeLists.txt │ │ └── CodeGenerator.cpp │ ├── Lexer │ │ ├── CMakeLists.txt │ │ └── Lexer.cpp │ ├── Parser │ │ ├── CMakeLists.txt │ │ └── Parser.cpp │ └── Sema │ │ ├── CMakeLists.txt │ │ ├── Scope.cpp │ │ └── Sema.cpp │ └── tools │ ├── CMakeLists.txt │ └── driver │ ├── CMakeLists.txt │ └── Driver.cpp ├── Chapter07 ├── ppprofiler-intree-plugin │ └── ppprofiler.diff ├── ppprofiler-intree │ └── ppprofiler.diff ├── ppprofiler │ ├── .clang-format │ ├── .clang-tidy │ ├── CMakeLists.txt │ ├── PPProfiler.cpp │ ├── runtime │ │ └── runtime.c │ └── scripts │ │ ├── avg.awk │ │ ├── count.awk │ │ ├── demangle.awk │ │ └── join.awk ├── tinylang │ ├── .clang-format │ ├── .clang-tidy │ ├── CMakeLists.txt │ ├── cmake │ │ └── modules │ │ │ └── AddTinylang.cmake │ ├── examples │ │ ├── Const.mod │ │ └── Gcd.mod │ ├── include │ │ └── tinylang │ │ │ ├── AST │ │ │ ├── AST.h │ │ │ └── ASTContext.h │ │ │ ├── Basic │ │ │ ├── Diagnostic.def │ │ │ ├── Diagnostic.h │ │ │ ├── LLVM.h │ │ │ ├── TokenKinds.def │ │ │ ├── TokenKinds.h │ │ │ ├── Version.h │ │ │ └── Version.inc.in │ │ │ ├── CodeGen │ │ │ ├── CGDebugInfo.h │ │ │ ├── CGModule.h │ │ │ ├── CGProcedure.h │ │ │ ├── CGTBAA.h │ │ │ └── CodeGenerator.h │ │ │ ├── Lexer │ │ │ ├── Lexer.h │ │ │ └── Token.h │ │ │ ├── Parser │ │ │ └── Parser.h │ │ │ └── Sema │ │ │ ├── Scope.h │ │ │ └── Sema.h │ ├── lib │ │ ├── Basic │ │ │ ├── CMakeLists.txt │ │ │ ├── Diagnostic.cpp │ │ │ ├── TokenKinds.cpp │ │ │ └── Version.cpp │ │ ├── CMakeLists.txt │ │ ├── CodeGen │ │ │ ├── CGDebugInfo.cpp │ │ │ ├── CGModule.cpp │ │ │ ├── CGProcedure.cpp │ │ │ ├── CGTBAA.cpp │ │ │ ├── CMakeLists.txt │ │ │ └── CodeGenerator.cpp │ │ ├── Lexer │ │ │ ├── CMakeLists.txt │ │ │ └── Lexer.cpp │ │ ├── Parser │ │ │ ├── CMakeLists.txt │ │ │ └── Parser.cpp │ │ └── Sema │ │ │ ├── CMakeLists.txt │ │ │ ├── Scope.cpp │ │ │ └── Sema.cpp │ └── tools │ │ ├── CMakeLists.txt │ │ └── driver │ │ ├── CMakeLists.txt │ │ └── Driver.cpp └── tinylang2 │ ├── .clang-format │ ├── .clang-tidy │ ├── CMakeLists.txt │ ├── cmake │ └── modules │ │ └── AddTinylang.cmake │ ├── examples │ ├── Const.mod │ └── Gcd.mod │ ├── include │ └── tinylang │ │ ├── AST │ │ ├── AST.h │ │ └── ASTContext.h │ │ ├── Basic │ │ ├── Diagnostic.def │ │ ├── Diagnostic.h │ │ ├── LLVM.h │ │ ├── TokenKinds.def │ │ ├── TokenKinds.h │ │ ├── Version.h │ │ └── Version.inc.in │ │ ├── CodeGen │ │ ├── CGDebugInfo.h │ │ ├── CGModule.h │ │ ├── CGProcedure.h │ │ ├── CGTBAA.h │ │ └── CodeGenerator.h │ │ ├── Lexer │ │ ├── Lexer.h │ │ └── Token.h │ │ ├── Parser │ │ └── Parser.h │ │ └── Sema │ │ ├── Scope.h │ │ └── Sema.h │ ├── lib │ ├── Basic │ │ ├── CMakeLists.txt │ │ ├── Diagnostic.cpp │ │ ├── TokenKinds.cpp │ │ └── Version.cpp │ ├── CMakeLists.txt │ ├── CodeGen │ │ ├── CGDebugInfo.cpp │ │ ├── CGModule.cpp │ │ ├── CGProcedure.cpp │ │ ├── CGTBAA.cpp │ │ ├── CMakeLists.txt │ │ └── CodeGenerator.cpp │ ├── Lexer │ │ ├── CMakeLists.txt │ │ └── Lexer.cpp │ ├── Parser │ │ ├── CMakeLists.txt │ │ └── Parser.cpp │ └── Sema │ │ ├── CMakeLists.txt │ │ ├── Scope.cpp │ │ └── Sema.cpp │ └── tools │ ├── CMakeLists.txt │ └── driver │ ├── CMakeLists.txt │ └── Driver.cpp ├── Chapter08 └── TableGen │ ├── CMakeLists.txt │ ├── Keyword.td │ ├── KeywordC.td │ ├── KeywordM2.td │ ├── TableGen.cpp │ ├── TableGenBackends.h │ └── TokenEmitter.cpp ├── Chapter09 ├── jit │ ├── .clang-format │ ├── .clang-tidy │ ├── CMakeLists.txt │ ├── JIT.cpp │ ├── JIT.h │ └── main.c └── lljit │ ├── .clang-format │ ├── .clang-tidy │ ├── AST.h │ ├── CMakeLists.txt │ ├── Calc.cpp │ ├── CodeGen.cpp │ ├── CodeGen.h │ ├── Lexer.cpp │ ├── Lexer.h │ ├── Parser.cpp │ ├── Parser.h │ ├── Sema.cpp │ ├── Sema.h │ └── examples │ ├── greetings.c │ ├── hello.ll │ └── main.ll ├── Chapter10 ├── clang-plugin │ ├── .clang-format │ ├── CMakeLists.txt │ ├── NamingPlugin.cpp │ └── example │ │ └── naming.c ├── clang-plugin2 │ ├── .clang-format │ ├── CMakeLists.txt │ └── NamingPlugin.cpp ├── iconvchecker │ ├── CMakeLists.txt │ ├── IconvChecker.cpp │ └── example │ │ └── conv.c ├── libfuzzer │ └── fuzzer.c ├── sanitizers │ ├── memory.c │ ├── outofbounds.c │ ├── thread.c │ └── useafterfree.c ├── staticanalyzer │ ├── div.c │ └── scan-build │ │ ├── index.html │ │ ├── report-c9ff72.html │ │ ├── scanview.css │ │ └── sorttable.js └── xray │ ├── flame.svg │ ├── xray.evt │ └── xraydemo.c ├── Chapter11 ├── 0001-Add-m88k-to-the-Triple-class.patch ├── 0002-Add-support-for-the-m88k-variant-of-ELF.patch ├── 0003-TableGen-SubtargetEmitter-must-use-std-nullopt-69475.patch ├── 0004-Add-minimal-m88k-target.patch ├── 0005-Add-AsmParser.patch ├── 0006-Add-disassembler.patch └── README.md ├── Chapter12 ├── 0007-Add-SelectionDAG.patch ├── 0008-Add-GLobalISel.patch └── README.md ├── Chapter13 ├── 0009-Add-m88k-div-instr-pass.patch └── README.md ├── LICENSE └── README.md /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/.clang-format -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/.gitignore -------------------------------------------------------------------------------- /Chapter02/calc/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter02/calc/rtcalc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/rtcalc.c -------------------------------------------------------------------------------- /Chapter02/calc/src/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/AST.h -------------------------------------------------------------------------------- /Chapter02/calc/src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter02/calc/src/Calc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/Calc.cpp -------------------------------------------------------------------------------- /Chapter02/calc/src/CodeGen.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/CodeGen.cpp -------------------------------------------------------------------------------- /Chapter02/calc/src/CodeGen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/CodeGen.h -------------------------------------------------------------------------------- /Chapter02/calc/src/Lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/Lexer.cpp -------------------------------------------------------------------------------- /Chapter02/calc/src/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/Lexer.h -------------------------------------------------------------------------------- /Chapter02/calc/src/Parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/Parser.cpp -------------------------------------------------------------------------------- /Chapter02/calc/src/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/Parser.h -------------------------------------------------------------------------------- /Chapter02/calc/src/Sema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/Sema.cpp -------------------------------------------------------------------------------- /Chapter02/calc/src/Sema.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter02/calc/src/Sema.h -------------------------------------------------------------------------------- /Chapter03/tinylang/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | ColumnLimit: 60 -------------------------------------------------------------------------------- /Chapter03/tinylang/.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/.clang-tidy -------------------------------------------------------------------------------- /Chapter03/tinylang/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter03/tinylang/cmake/modules/AddTinylang.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/cmake/modules/AddTinylang.cmake -------------------------------------------------------------------------------- /Chapter03/tinylang/example/Gcd.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/example/Gcd.mod -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/AST/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/AST/AST.h -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Basic/Diagnostic.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Basic/Diagnostic.def -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Basic/Diagnostic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Basic/Diagnostic.h -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Basic/LLVM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Basic/LLVM.h -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Basic/TokenKinds.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Basic/TokenKinds.def -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Basic/TokenKinds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Basic/TokenKinds.h -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Basic/Version.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Basic/Version.h -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Basic/Version.inc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Basic/Version.inc.in -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Lexer/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Lexer/Lexer.h -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Lexer/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Lexer/Token.h -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Parser/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Parser/Parser.h -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Sema/Scope.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Sema/Scope.h -------------------------------------------------------------------------------- /Chapter03/tinylang/include/tinylang/Sema/Sema.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/include/tinylang/Sema/Sema.h -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Basic/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Basic/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Basic/Diagnostic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Basic/Diagnostic.cpp -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Basic/TokenKinds.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Basic/TokenKinds.cpp -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Basic/Version.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Basic/Version.cpp -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Lexer/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Lexer/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Lexer/Lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Lexer/Lexer.cpp -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Parser/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Parser/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Parser/Parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Parser/Parser.cpp -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Parser/tinylang.g: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Parser/tinylang.g -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Sema/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Sema/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Sema/Scope.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Sema/Scope.cpp -------------------------------------------------------------------------------- /Chapter03/tinylang/lib/Sema/Sema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/lib/Sema/Sema.cpp -------------------------------------------------------------------------------- /Chapter03/tinylang/tools/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/tools/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter03/tinylang/tools/driver/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/tools/driver/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter03/tinylang/tools/driver/Driver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter03/tinylang/tools/driver/Driver.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | ColumnLimit: 60 -------------------------------------------------------------------------------- /Chapter04/tinylang/.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/.clang-tidy -------------------------------------------------------------------------------- /Chapter04/tinylang/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter04/tinylang/cmake/modules/AddTinylang.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/cmake/modules/AddTinylang.cmake -------------------------------------------------------------------------------- /Chapter04/tinylang/examples/Gcd.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/examples/Gcd.mod -------------------------------------------------------------------------------- /Chapter04/tinylang/examples/callgcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/examples/callgcd.c -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/AST/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/AST/AST.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Basic/Diagnostic.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Basic/Diagnostic.def -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Basic/Diagnostic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Basic/Diagnostic.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Basic/LLVM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Basic/LLVM.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Basic/TokenKinds.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Basic/TokenKinds.def -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Basic/TokenKinds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Basic/TokenKinds.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Basic/Version.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Basic/Version.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Basic/Version.inc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Basic/Version.inc.in -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/CodeGen/CGModule.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/CodeGen/CGModule.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/CodeGen/CGProcedure.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/CodeGen/CGProcedure.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/CodeGen/CodeGenerator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/CodeGen/CodeGenerator.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Lexer/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Lexer/Lexer.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Lexer/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Lexer/Token.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Parser/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Parser/Parser.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Sema/Scope.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Sema/Scope.h -------------------------------------------------------------------------------- /Chapter04/tinylang/include/tinylang/Sema/Sema.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/include/tinylang/Sema/Sema.h -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Basic/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Basic/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Basic/Diagnostic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Basic/Diagnostic.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Basic/TokenKinds.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Basic/TokenKinds.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Basic/Version.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Basic/Version.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/CodeGen/CGModule.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/CodeGen/CGModule.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/CodeGen/CGProcedure.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/CodeGen/CGProcedure.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/CodeGen/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/CodeGen/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/CodeGen/CodeGenerator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/CodeGen/CodeGenerator.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Lexer/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Lexer/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Lexer/Lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Lexer/Lexer.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Parser/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Parser/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Parser/Parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Parser/Parser.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Sema/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Sema/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Sema/Scope.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Sema/Scope.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/lib/Sema/Sema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/lib/Sema/Sema.cpp -------------------------------------------------------------------------------- /Chapter04/tinylang/tools/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/tools/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter04/tinylang/tools/driver/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/tools/driver/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter04/tinylang/tools/driver/Driver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter04/tinylang/tools/driver/Driver.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter05/tinylang/cmake/modules/AddTinylang.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/cmake/modules/AddTinylang.cmake -------------------------------------------------------------------------------- /Chapter05/tinylang/examples/Point.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/examples/Point.mod -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/AST/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/AST/AST.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/AST/ASTContext.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/AST/ASTContext.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Basic/Diagnostic.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Basic/Diagnostic.def -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Basic/Diagnostic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Basic/Diagnostic.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Basic/LLVM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Basic/LLVM.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Basic/TokenKinds.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Basic/TokenKinds.def -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Basic/TokenKinds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Basic/TokenKinds.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Basic/Version.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Basic/Version.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Basic/Version.inc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Basic/Version.inc.in -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/CodeGen/CGModule.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/CodeGen/CGModule.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/CodeGen/CGProcedure.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/CodeGen/CGProcedure.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/CodeGen/CodeGenerator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/CodeGen/CodeGenerator.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Lexer/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Lexer/Lexer.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Lexer/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Lexer/Token.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Parser/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Parser/Parser.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Sema/Scope.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Sema/Scope.h -------------------------------------------------------------------------------- /Chapter05/tinylang/include/tinylang/Sema/Sema.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/include/tinylang/Sema/Sema.h -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Basic/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Basic/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Basic/Diagnostic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Basic/Diagnostic.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Basic/TokenKinds.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Basic/TokenKinds.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Basic/Version.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Basic/Version.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/CodeGen/CGModule.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/CodeGen/CGModule.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/CodeGen/CGProcedure.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/CodeGen/CGProcedure.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/CodeGen/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/CodeGen/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/CodeGen/CodeGenerator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/CodeGen/CodeGenerator.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Lexer/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Lexer/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Lexer/Lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Lexer/Lexer.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Parser/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Parser/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Parser/Parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Parser/Parser.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Sema/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Sema/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Sema/Scope.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Sema/Scope.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/lib/Sema/Sema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/lib/Sema/Sema.cpp -------------------------------------------------------------------------------- /Chapter05/tinylang/tools/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/tools/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter05/tinylang/tools/driver/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/tools/driver/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter05/tinylang/tools/driver/Driver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter05/tinylang/tools/driver/Driver.cpp -------------------------------------------------------------------------------- /Chapter06/calc/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/calc/rtcalc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/rtcalc.cpp -------------------------------------------------------------------------------- /Chapter06/calc/src/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/AST.h -------------------------------------------------------------------------------- /Chapter06/calc/src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/calc/src/Calc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/Calc.cpp -------------------------------------------------------------------------------- /Chapter06/calc/src/CodeGen.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/CodeGen.cpp -------------------------------------------------------------------------------- /Chapter06/calc/src/CodeGen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/CodeGen.h -------------------------------------------------------------------------------- /Chapter06/calc/src/Lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/Lexer.cpp -------------------------------------------------------------------------------- /Chapter06/calc/src/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/Lexer.h -------------------------------------------------------------------------------- /Chapter06/calc/src/Parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/Parser.cpp -------------------------------------------------------------------------------- /Chapter06/calc/src/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/Parser.h -------------------------------------------------------------------------------- /Chapter06/calc/src/Sema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/Sema.cpp -------------------------------------------------------------------------------- /Chapter06/calc/src/Sema.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/calc/src/Sema.h -------------------------------------------------------------------------------- /Chapter06/tinylang/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/tinylang/cmake/modules/AddTinylang.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/cmake/modules/AddTinylang.cmake -------------------------------------------------------------------------------- /Chapter06/tinylang/examples/Gcd.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/examples/Gcd.mod -------------------------------------------------------------------------------- /Chapter06/tinylang/examples/Person.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/examples/Person.mod -------------------------------------------------------------------------------- /Chapter06/tinylang/examples/Person2.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/examples/Person2.mod -------------------------------------------------------------------------------- /Chapter06/tinylang/examples/SpecialPtr.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/examples/SpecialPtr.mod -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/AST/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/AST/AST.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/AST/ASTContext.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/AST/ASTContext.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Basic/Diagnostic.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Basic/Diagnostic.def -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Basic/Diagnostic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Basic/Diagnostic.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Basic/LLVM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Basic/LLVM.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Basic/TokenKinds.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Basic/TokenKinds.def -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Basic/TokenKinds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Basic/TokenKinds.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Basic/Version.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Basic/Version.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Basic/Version.inc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Basic/Version.inc.in -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/CodeGen/CGDebugInfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/CodeGen/CGDebugInfo.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/CodeGen/CGModule.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/CodeGen/CGModule.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/CodeGen/CGProcedure.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/CodeGen/CGProcedure.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/CodeGen/CGTBAA.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/CodeGen/CGTBAA.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/CodeGen/CodeGenerator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/CodeGen/CodeGenerator.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Lexer/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Lexer/Lexer.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Lexer/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Lexer/Token.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Parser/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Parser/Parser.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Sema/Scope.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Sema/Scope.h -------------------------------------------------------------------------------- /Chapter06/tinylang/include/tinylang/Sema/Sema.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/include/tinylang/Sema/Sema.h -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Basic/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Basic/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Basic/Diagnostic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Basic/Diagnostic.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Basic/TokenKinds.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Basic/TokenKinds.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Basic/Version.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Basic/Version.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/CodeGen/CGDebugInfo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/CodeGen/CGDebugInfo.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/CodeGen/CGModule.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/CodeGen/CGModule.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/CodeGen/CGProcedure.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/CodeGen/CGProcedure.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/CodeGen/CGTBAA.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/CodeGen/CGTBAA.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/CodeGen/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/CodeGen/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/CodeGen/CodeGenerator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/CodeGen/CodeGenerator.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Lexer/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Lexer/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Lexer/Lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Lexer/Lexer.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Parser/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Parser/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Parser/Parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Parser/Parser.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Sema/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Sema/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Sema/Scope.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Sema/Scope.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/lib/Sema/Sema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/lib/Sema/Sema.cpp -------------------------------------------------------------------------------- /Chapter06/tinylang/tools/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/tools/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/tinylang/tools/driver/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/tools/driver/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter06/tinylang/tools/driver/Driver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter06/tinylang/tools/driver/Driver.cpp -------------------------------------------------------------------------------- /Chapter07/ppprofiler-intree-plugin/ppprofiler.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler-intree-plugin/ppprofiler.diff -------------------------------------------------------------------------------- /Chapter07/ppprofiler-intree/ppprofiler.diff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler-intree/ppprofiler.diff -------------------------------------------------------------------------------- /Chapter07/ppprofiler/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | ColumnLimit: 60 -------------------------------------------------------------------------------- /Chapter07/ppprofiler/.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler/.clang-tidy -------------------------------------------------------------------------------- /Chapter07/ppprofiler/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/ppprofiler/PPProfiler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler/PPProfiler.cpp -------------------------------------------------------------------------------- /Chapter07/ppprofiler/runtime/runtime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler/runtime/runtime.c -------------------------------------------------------------------------------- /Chapter07/ppprofiler/scripts/avg.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler/scripts/avg.awk -------------------------------------------------------------------------------- /Chapter07/ppprofiler/scripts/count.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler/scripts/count.awk -------------------------------------------------------------------------------- /Chapter07/ppprofiler/scripts/demangle.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler/scripts/demangle.awk -------------------------------------------------------------------------------- /Chapter07/ppprofiler/scripts/join.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/ppprofiler/scripts/join.awk -------------------------------------------------------------------------------- /Chapter07/tinylang/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | ColumnLimit: 56 -------------------------------------------------------------------------------- /Chapter07/tinylang/.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/.clang-tidy -------------------------------------------------------------------------------- /Chapter07/tinylang/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang/cmake/modules/AddTinylang.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/cmake/modules/AddTinylang.cmake -------------------------------------------------------------------------------- /Chapter07/tinylang/examples/Const.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/examples/Const.mod -------------------------------------------------------------------------------- /Chapter07/tinylang/examples/Gcd.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/examples/Gcd.mod -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/AST/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/AST/AST.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/AST/ASTContext.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/AST/ASTContext.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Basic/Diagnostic.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Basic/Diagnostic.def -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Basic/Diagnostic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Basic/Diagnostic.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Basic/LLVM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Basic/LLVM.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Basic/TokenKinds.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Basic/TokenKinds.def -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Basic/TokenKinds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Basic/TokenKinds.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Basic/Version.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Basic/Version.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Basic/Version.inc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Basic/Version.inc.in -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/CodeGen/CGDebugInfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/CodeGen/CGDebugInfo.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/CodeGen/CGModule.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/CodeGen/CGModule.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/CodeGen/CGProcedure.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/CodeGen/CGProcedure.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/CodeGen/CGTBAA.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/CodeGen/CGTBAA.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/CodeGen/CodeGenerator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/CodeGen/CodeGenerator.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Lexer/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Lexer/Lexer.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Lexer/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Lexer/Token.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Parser/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Parser/Parser.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Sema/Scope.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Sema/Scope.h -------------------------------------------------------------------------------- /Chapter07/tinylang/include/tinylang/Sema/Sema.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/include/tinylang/Sema/Sema.h -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Basic/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Basic/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Basic/Diagnostic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Basic/Diagnostic.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Basic/TokenKinds.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Basic/TokenKinds.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Basic/Version.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Basic/Version.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/CodeGen/CGDebugInfo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/CodeGen/CGDebugInfo.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/CodeGen/CGModule.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/CodeGen/CGModule.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/CodeGen/CGProcedure.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/CodeGen/CGProcedure.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/CodeGen/CGTBAA.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/CodeGen/CGTBAA.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/CodeGen/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/CodeGen/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/CodeGen/CodeGenerator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/CodeGen/CodeGenerator.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Lexer/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Lexer/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Lexer/Lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Lexer/Lexer.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Parser/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Parser/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Parser/Parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Parser/Parser.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Sema/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Sema/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Sema/Scope.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Sema/Scope.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/lib/Sema/Sema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/lib/Sema/Sema.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang/tools/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/tools/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang/tools/driver/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/tools/driver/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang/tools/driver/Driver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang/tools/driver/Driver.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | ColumnLimit: 56 -------------------------------------------------------------------------------- /Chapter07/tinylang2/.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/.clang-tidy -------------------------------------------------------------------------------- /Chapter07/tinylang2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang2/cmake/modules/AddTinylang.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/cmake/modules/AddTinylang.cmake -------------------------------------------------------------------------------- /Chapter07/tinylang2/examples/Const.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/examples/Const.mod -------------------------------------------------------------------------------- /Chapter07/tinylang2/examples/Gcd.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/examples/Gcd.mod -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/AST/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/AST/AST.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/AST/ASTContext.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/AST/ASTContext.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Basic/Diagnostic.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Basic/Diagnostic.def -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Basic/Diagnostic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Basic/Diagnostic.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Basic/LLVM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Basic/LLVM.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Basic/TokenKinds.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Basic/TokenKinds.def -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Basic/TokenKinds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Basic/TokenKinds.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Basic/Version.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Basic/Version.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Basic/Version.inc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Basic/Version.inc.in -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/CodeGen/CGDebugInfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/CodeGen/CGDebugInfo.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/CodeGen/CGModule.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/CodeGen/CGModule.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/CodeGen/CGProcedure.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/CodeGen/CGProcedure.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/CodeGen/CGTBAA.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/CodeGen/CGTBAA.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/CodeGen/CodeGenerator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/CodeGen/CodeGenerator.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Lexer/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Lexer/Lexer.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Lexer/Token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Lexer/Token.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Parser/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Parser/Parser.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Sema/Scope.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Sema/Scope.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/include/tinylang/Sema/Sema.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/include/tinylang/Sema/Sema.h -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Basic/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Basic/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Basic/Diagnostic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Basic/Diagnostic.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Basic/TokenKinds.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Basic/TokenKinds.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Basic/Version.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Basic/Version.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/CodeGen/CGDebugInfo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/CodeGen/CGDebugInfo.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/CodeGen/CGModule.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/CodeGen/CGModule.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/CodeGen/CGProcedure.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/CodeGen/CGProcedure.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/CodeGen/CGTBAA.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/CodeGen/CGTBAA.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/CodeGen/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/CodeGen/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/CodeGen/CodeGenerator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/CodeGen/CodeGenerator.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Lexer/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Lexer/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Lexer/Lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Lexer/Lexer.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Parser/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Parser/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Parser/Parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Parser/Parser.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Sema/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Sema/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Sema/Scope.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Sema/Scope.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/lib/Sema/Sema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/lib/Sema/Sema.cpp -------------------------------------------------------------------------------- /Chapter07/tinylang2/tools/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/tools/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang2/tools/driver/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/tools/driver/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter07/tinylang2/tools/driver/Driver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter07/tinylang2/tools/driver/Driver.cpp -------------------------------------------------------------------------------- /Chapter08/TableGen/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter08/TableGen/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter08/TableGen/Keyword.td: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter08/TableGen/Keyword.td -------------------------------------------------------------------------------- /Chapter08/TableGen/KeywordC.td: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter08/TableGen/KeywordC.td -------------------------------------------------------------------------------- /Chapter08/TableGen/KeywordM2.td: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter08/TableGen/KeywordM2.td -------------------------------------------------------------------------------- /Chapter08/TableGen/TableGen.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter08/TableGen/TableGen.cpp -------------------------------------------------------------------------------- /Chapter08/TableGen/TableGenBackends.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter08/TableGen/TableGenBackends.h -------------------------------------------------------------------------------- /Chapter08/TableGen/TokenEmitter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter08/TableGen/TokenEmitter.cpp -------------------------------------------------------------------------------- /Chapter09/jit/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | ColumnLimit: 55 -------------------------------------------------------------------------------- /Chapter09/jit/.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/jit/.clang-tidy -------------------------------------------------------------------------------- /Chapter09/jit/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/jit/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter09/jit/JIT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/jit/JIT.cpp -------------------------------------------------------------------------------- /Chapter09/jit/JIT.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/jit/JIT.h -------------------------------------------------------------------------------- /Chapter09/jit/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/jit/main.c -------------------------------------------------------------------------------- /Chapter09/lljit/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | ColumnLimit: 50 -------------------------------------------------------------------------------- /Chapter09/lljit/.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/.clang-tidy -------------------------------------------------------------------------------- /Chapter09/lljit/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/AST.h -------------------------------------------------------------------------------- /Chapter09/lljit/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter09/lljit/Calc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/Calc.cpp -------------------------------------------------------------------------------- /Chapter09/lljit/CodeGen.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/CodeGen.cpp -------------------------------------------------------------------------------- /Chapter09/lljit/CodeGen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/CodeGen.h -------------------------------------------------------------------------------- /Chapter09/lljit/Lexer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/Lexer.cpp -------------------------------------------------------------------------------- /Chapter09/lljit/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/Lexer.h -------------------------------------------------------------------------------- /Chapter09/lljit/Parser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/Parser.cpp -------------------------------------------------------------------------------- /Chapter09/lljit/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/Parser.h -------------------------------------------------------------------------------- /Chapter09/lljit/Sema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/Sema.cpp -------------------------------------------------------------------------------- /Chapter09/lljit/Sema.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/Sema.h -------------------------------------------------------------------------------- /Chapter09/lljit/examples/greetings.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void greetings() { 4 | puts("Hi!"); 5 | } 6 | 7 | -------------------------------------------------------------------------------- /Chapter09/lljit/examples/hello.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/examples/hello.ll -------------------------------------------------------------------------------- /Chapter09/lljit/examples/main.ll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter09/lljit/examples/main.ll -------------------------------------------------------------------------------- /Chapter10/clang-plugin/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | ColumnLimit: 56 -------------------------------------------------------------------------------- /Chapter10/clang-plugin/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/clang-plugin/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter10/clang-plugin/NamingPlugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/clang-plugin/NamingPlugin.cpp -------------------------------------------------------------------------------- /Chapter10/clang-plugin/example/naming.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/clang-plugin/example/naming.c -------------------------------------------------------------------------------- /Chapter10/clang-plugin2/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: LLVM 2 | ColumnLimit: 56 -------------------------------------------------------------------------------- /Chapter10/clang-plugin2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/clang-plugin2/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter10/clang-plugin2/NamingPlugin.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/clang-plugin2/NamingPlugin.cpp -------------------------------------------------------------------------------- /Chapter10/iconvchecker/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/iconvchecker/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter10/iconvchecker/IconvChecker.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/iconvchecker/IconvChecker.cpp -------------------------------------------------------------------------------- /Chapter10/iconvchecker/example/conv.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/iconvchecker/example/conv.c -------------------------------------------------------------------------------- /Chapter10/libfuzzer/fuzzer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/libfuzzer/fuzzer.c -------------------------------------------------------------------------------- /Chapter10/sanitizers/memory.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/sanitizers/memory.c -------------------------------------------------------------------------------- /Chapter10/sanitizers/outofbounds.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/sanitizers/outofbounds.c -------------------------------------------------------------------------------- /Chapter10/sanitizers/thread.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/sanitizers/thread.c -------------------------------------------------------------------------------- /Chapter10/sanitizers/useafterfree.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/sanitizers/useafterfree.c -------------------------------------------------------------------------------- /Chapter10/staticanalyzer/div.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/staticanalyzer/div.c -------------------------------------------------------------------------------- /Chapter10/staticanalyzer/scan-build/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/staticanalyzer/scan-build/index.html -------------------------------------------------------------------------------- /Chapter10/staticanalyzer/scan-build/report-c9ff72.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/staticanalyzer/scan-build/report-c9ff72.html -------------------------------------------------------------------------------- /Chapter10/staticanalyzer/scan-build/scanview.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/staticanalyzer/scan-build/scanview.css -------------------------------------------------------------------------------- /Chapter10/staticanalyzer/scan-build/sorttable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/staticanalyzer/scan-build/sorttable.js -------------------------------------------------------------------------------- /Chapter10/xray/flame.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/xray/flame.svg -------------------------------------------------------------------------------- /Chapter10/xray/xray.evt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/xray/xray.evt -------------------------------------------------------------------------------- /Chapter10/xray/xraydemo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter10/xray/xraydemo.c -------------------------------------------------------------------------------- /Chapter11/0001-Add-m88k-to-the-Triple-class.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter11/0001-Add-m88k-to-the-Triple-class.patch -------------------------------------------------------------------------------- /Chapter11/0002-Add-support-for-the-m88k-variant-of-ELF.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter11/0002-Add-support-for-the-m88k-variant-of-ELF.patch -------------------------------------------------------------------------------- /Chapter11/0003-TableGen-SubtargetEmitter-must-use-std-nullopt-69475.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter11/0003-TableGen-SubtargetEmitter-must-use-std-nullopt-69475.patch -------------------------------------------------------------------------------- /Chapter11/0004-Add-minimal-m88k-target.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter11/0004-Add-minimal-m88k-target.patch -------------------------------------------------------------------------------- /Chapter11/0005-Add-AsmParser.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter11/0005-Add-AsmParser.patch -------------------------------------------------------------------------------- /Chapter11/0006-Add-disassembler.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter11/0006-Add-disassembler.patch -------------------------------------------------------------------------------- /Chapter11/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter11/README.md -------------------------------------------------------------------------------- /Chapter12/0007-Add-SelectionDAG.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter12/0007-Add-SelectionDAG.patch -------------------------------------------------------------------------------- /Chapter12/0008-Add-GLobalISel.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter12/0008-Add-GLobalISel.patch -------------------------------------------------------------------------------- /Chapter12/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter12/README.md -------------------------------------------------------------------------------- /Chapter13/0009-Add-m88k-div-instr-pass.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter13/0009-Add-m88k-div-instr-pass.patch -------------------------------------------------------------------------------- /Chapter13/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/Chapter13/README.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Learn-LLVM-17/HEAD/README.md --------------------------------------------------------------------------------