[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)

Rahul Joshi via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 1 09:52:58 PDT 2024


================
@@ -1161,11 +1161,9 @@ void SVEEmitter::createIntrinsic(
   uint64_t Merge = R->getValueAsInt("Merge");
   StringRef MergeSuffix = R->getValueAsString("MergeSuffix");
   uint64_t MemEltType = R->getValueAsInt("MemEltType");
-  std::vector<Record*> FlagsList = R->getValueAsListOfDefs("Flags");
-  std::vector<Record*> ImmCheckList = R->getValueAsListOfDefs("ImmChecks");
 
   int64_t Flags = 0;
-  for (auto FlagRec : FlagsList)
+  for (const record *FlagRec : R->getValueAsListOfConstDefs("Flags"))
----------------
jurahul wrote:

Yes, it's already fixed now. And I made sure clang-tblgen builds locally :)

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


More information about the cfe-commits mailing list