1 //===- OpGenHelpers.h - MLIR operation generator helpers --------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file defines helpers used in the op generators.
11 //===----------------------------------------------------------------------===//
13 #ifndef MLIR_TOOLS_MLIRTBLGEN_OPGENHELPERS_H_
14 #define MLIR_TOOLS_MLIRTBLGEN_OPGENHELPERS_H_
16 #include "llvm/TableGen/Record.h"
22 /// Returns all the op definitions filtered by the user. The filtering is via
23 /// command-line option "op-include-regex" and "op-exclude-regex".
24 std::vector
<llvm::Record
*>
25 getRequestedOpDefinitions(const llvm::RecordKeeper
&recordKeeper
);
30 #endif // MLIR_TOOLS_MLIRTBLGEN_OPGENHELPERS_H_