Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / utils / TableGen / LLDBTableGenUtils.h
blob76f0df9a23f62a4ae35ea43dffb1fd2fe84da3e4
1 //===- LLDBTableGenUtils.h --------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_UTILS_TABLEGEN_LLDBTABLEGENUTILS_H
10 #define LLDB_UTILS_TABLEGEN_LLDBTABLEGENUTILS_H
12 #include "llvm/ADT/StringRef.h"
13 #include <map>
14 #include <string>
15 #include <vector>
17 namespace llvm {
18 class RecordKeeper;
19 class Record;
20 } // namespace llvm
22 namespace lldb_private {
24 /// Map of names to their associated records. This map also ensures that our
25 /// records are sorted in a deterministic way.
26 typedef std::map<std::string, std::vector<llvm::Record *>> RecordsByName;
28 /// Return records grouped by name.
29 RecordsByName getRecordsByName(std::vector<llvm::Record *> Records,
30 llvm::StringRef);
32 } // namespace lldb_private
34 #endif