[clang] [llvm] [mlir] [TableGen] Add const variants of accessors for backend (PR #106658)
Rahul Joshi via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 5 09:47:17 PDT 2024
jurahul wrote:
I also did a minor update to the diff: I changed the const versions that used to return references to vectors to instead return `ArrayRef<const Record *>`. IMO this will prevent accidental vector copies in code like `auto X = RC.getAllDerivedDefinitions("yyy")`.
https://github.com/llvm/llvm-project/pull/106658
More information about the cfe-commits
mailing list