aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2024-08-26 12:10:33 -0700
committerGitHub <noreply@github.com>2024-08-26 12:10:33 -0700
commit34dee0a96105d6aeb8b386efbbbfe437ab1be02e (patch)
treed04d44a7a2b8b5db9abf81c28b504426094948cc /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentb1e058943b4ee526f89b4fbc7603108bc8b5252b (diff)
downloadllvm-34dee0a96105d6aeb8b386efbbbfe437ab1be02e.zip
llvm-34dee0a96105d6aeb8b386efbbbfe437ab1be02e.tar.gz
llvm-34dee0a96105d6aeb8b386efbbbfe437ab1be02e.tar.bz2
[TableGen] Allow emitter callbacks to use `const RecordKeeper &` (#104716)
- Refactor TableGen backend options to allow specifying a callback function that takes either a const reference or a non-const reference to `RecordKeeper`. This will enable gradual migration of code to use const references and pointers to `RecordKeeper` and `Record` in the TableGen backends. - Refactor handling of the callback command line options. Move variable for the command line option from the header to the CPP file, and add a function `ApplyCallback` to apply the selected callback. - Change callbacks in TableGen.cpp to take const reference. They use the `Opt` class to register their callbacks. - Change IntrinsicEmitter to use the `OptClass` to define its callbacks. It already uses a const reference in the implementation.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions