[Mlir-commits] [clang] [llvm] [mlir] [TableGen] Add const variants of accessors for backend (PR #106658)

Matthias Springer llvmlistbot at llvm.org
Mon Sep 2 11:49:07 PDT 2024


================
@@ -189,7 +189,7 @@ static StringRef NormalizeGNUAttrSpelling(StringRef AttrSpelling) {
 
 typedef std::vector<std::pair<std::string, const Record *>> ParsedAttrMap;
 
-static ParsedAttrMap getParsedAttrList(const RecordKeeper &Records,
----------------
matthias-springer wrote:

I expected to see more `const` instead of less. Why is this here (and below) passes as non-const?


https://github.com/llvm/llvm-project/pull/106658


More information about the Mlir-commits mailing list