[llvm] [TableGen] Extend direct lookup to instruction values in generic tables. (PR #80486)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 19:51:37 PST 2024


================
@@ -663,6 +682,8 @@ void SearchableTableEmitter::run(raw_ostream &OS) {
   // Emit tables in a deterministic order to avoid needless rebuilds.
   SmallVector<std::unique_ptr<GenericTable>, 4> Tables;
   DenseMap<Record *, GenericTable *> TableMap;
+  if (Records.getClass("Instruction"))
----------------
wangpc-pp wrote:

Oh sorry, I forgot it, we can use `getAllDerivedDefinitionsIfDefined` here.
> If I could also trouble you (or anyone else) to merge on my behalf, I'd appreciate that.

Yeah, no problem!

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


More information about the llvm-commits mailing list