LLVM
23.0.0git
include
llvm
TableGen
Parser.h
Go to the documentation of this file.
1
//===- llvm/TableGen/Parser.h - tblgen parser entry point -------*- 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
//===----------------------------------------------------------------------===//
8
//
9
// This file declares an entry point into the tablegen parser for use by tools.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_TABLEGEN_PARSER_H
14
#define LLVM_TABLEGEN_PARSER_H
15
16
#include "
llvm/Support/Compiler.h
"
17
18
namespace
llvm
{
19
class
RecordKeeper
;
20
class
SourceMgr
;
21
22
/// Parse the TableGen file defined within the main buffer of the given
23
/// SourceMgr. On success, populates the provided RecordKeeper with the parsed
24
/// records and returns false. On failure, returns true.
25
///
26
/// NOTE: TableGen currently relies on global state within a given parser
27
/// invocation, so this function is not thread-safe.
28
LLVM_ABI
bool
TableGenParseFile
(
SourceMgr
&InputSrcMgr,
RecordKeeper
&Records);
29
30
}
// end namespace llvm
31
32
#endif
// LLVM_TABLEGEN_PARSER_H
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:213
llvm::RecordKeeper
Definition
Record.h:1980
llvm::SourceMgr
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling.
Definition
SourceMgr.h:37
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
FunctionInfo.h:25
llvm::TableGenParseFile
LLVM_ABI bool TableGenParseFile(SourceMgr &InputSrcMgr, RecordKeeper &Records)
Parse the TableGen file defined within the main buffer of the given SourceMgr.
Definition
Parser.cpp:17
Generated on
for LLVM by
1.14.0