Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:35

0001 //===- llvm/TableGen/Parser.h - tblgen parser 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 an entry point into the tablegen parser for use by tools.
0010 //
0011 //===----------------------------------------------------------------------===//
0012 
0013 #ifndef LLVM_TABLEGEN_PARSER_H
0014 #define LLVM_TABLEGEN_PARSER_H
0015 
0016 namespace llvm {
0017 class RecordKeeper;
0018 class SourceMgr;
0019 
0020 /// Parse the TableGen file defined within the main buffer of the given
0021 /// SourceMgr. On success, populates the provided RecordKeeper with the parsed
0022 /// records and returns false. On failure, returns true.
0023 ///
0024 /// NOTE: TableGen currently relies on global state within a given parser
0025 ///       invocation, so this function is not thread-safe.
0026 bool TableGenParseFile(SourceMgr &InputSrcMgr, RecordKeeper &Records);
0027 
0028 } // end namespace llvm
0029 
0030 #endif // LLVM_TABLEGEN_PARSER_H