|
|
|||
File indexing completed on 2026-05-10 08:44:35
0001 //===- llvm/TableGen/Main.h - tblgen entry point ----------------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 // 0009 // This file declares the common entry point for tblgen tools. 0010 // 0011 //===----------------------------------------------------------------------===// 0012 0013 #ifndef LLVM_TABLEGEN_MAIN_H 0014 #define LLVM_TABLEGEN_MAIN_H 0015 0016 #include <functional> 0017 0018 namespace llvm { 0019 0020 class raw_ostream; 0021 class RecordKeeper; 0022 0023 /// Perform the action using Records, and write output to OS. 0024 /// Returns true on error, false otherwise. 0025 using TableGenMainFn = bool(raw_ostream &OS, const RecordKeeper &Records); 0026 0027 int TableGenMain(const char *argv0, 0028 std::function<TableGenMainFn> MainFn = nullptr); 0029 0030 } // end namespace llvm 0031 0032 #endif // LLVM_TABLEGEN_MAIN_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|