Path: blob/main/contrib/llvm-project/llvm/utils/TableGen/Common/Utils.h
213799 views
//===- Utils.h - Common Utilities -------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_UTILS_TABLEGEN_COMMON_UTILS_H9#define LLVM_UTILS_TABLEGEN_COMMON_UTILS_H1011#include "llvm/ADT/ArrayRef.h"12#include "llvm/ADT/StringRef.h"1314namespace llvm {15class Record;1617/// Sort an array of Records on the "Name" field, and check for records with18/// duplicate "Name" field. If duplicates are found, report a fatal error.19void sortAndReportDuplicates(MutableArrayRef<const Record *> Records,20StringRef ObjectName);2122} // namespace llvm2324#endif // LLVM_UTILS_TABLEGEN_COMMON_UTILS_H252627