summaryrefslogtreecommitdiff
path: root/llvm/lib/TableGen/TableGenBackendSkeleton.cpp
AgeCommit message (Collapse)Author
2024-10-01[TableGen] Change TableGenMain to use const RecordKeeper (#110578)Rahul Joshi
Change TableGenMain's `MainFn` argument to be a function that accepts a const reference to RecordKeeper. This is a part of effort to have better const correctness in TableGen backends: https://discourse.llvm.org/t/psa-planned-changes-to-tablegen-getallderiveddefinitions-api-potential-downstream-breakages/81089
2023-11-11[llvm] Stop including llvm/ADT/DenseMapInfo.h (NFC)Kazu Hirata
Identified with clangd.
2023-03-21TableGen: Introduce `llvm::TableGen::Emitter` to register backendsNAKAMURA Takumi
`Opt(flag, func, desc)` registers an option into `Action`. `OptClass<EmitterC>` is also available if `EmitterC(RK).run(OS)` is capable. `Action` is defined as `ManagedStatic<cl::opt>` to guarantee to be created when each registration of emitter is invoked. `llvm::TableGenMain(argv0, MainFn)` invokes `Action` instead of `MainFn` Differential Revision: https://reviews.llvm.org/D144351
2022-01-28Cleanup includes for LLVMTableGenGlobalISelserge-sans-paille
Based on the output of include-what-you-use. No big deal here, it's a utils library and it doesn't seem to be used a lot across the codebase. $ clang++ -E -Iinclude -I../llvm/include ../llvm/utils/TableGen/GlobalISel/*.cpp -std=c++14 -fno-rtti -fno-exceptions | wc -l before: 573143 after: 568908 Related Discourse thread: https://llvm.discourse.group/t/include-what-you-use-include-cleanup Differential Revision: https://reviews.llvm.org/D118375
2022-01-28Cleanup include dependencies for LLVMTableGenserge-sans-paille
Based on the output of include-what-you-use. No other library seems affected by the new forward declaration. $ clang++ -E -Iinclude -I../llvm/include ../llvm/lib/TableGen/*.cpp -std=c++14 -fno-rtti -fno-exceptions | wc -l before: 795231 after: 750654 Related Discourse thread: https://llvm.discourse.group/t/include-what-you-use-include-cleanup Differential Revision: https://reviews.llvm.org/D118374
2020-10-02[TableGen] New backend to print detailed records.Paul C. Anagnostopoulos
Pertinent lints are fixed.
2020-09-22Two patches to fix the broken build.Paul C. Anagnostopoulos
One to fix a C++ compiler warning. One to allow Sphinx to find a new document.
2020-09-22Version 0.5 of the new "TableGen Backend Developer's Guide."Paul C. Anagnostopoulos
Files modified to take comments into account. MLIR documentation updated for new TableGen documentation files.