MLIR 22.0.0git
Parser.cpp File Reference
#include "mlir/Parser/Parser.h"
#include "mlir/AsmParser/AsmParser.h"
#include "mlir/Bytecode/BytecodeReader.h"
#include "llvm/Support/SourceMgr.h"
#include "mlir/Tools/PDLL/Parser/Parser.h"
#include "Lexer.h"
#include "mlir/Support/IndentedOstream.h"
#include "mlir/TableGen/Argument.h"
#include "mlir/TableGen/Attribute.h"
#include "mlir/TableGen/Constraint.h"
#include "mlir/TableGen/Format.h"
#include "mlir/TableGen/Operator.h"
#include "mlir/Tools/PDLL/AST/Context.h"
#include "mlir/Tools/PDLL/AST/Diagnostic.h"
#include "mlir/Tools/PDLL/AST/Nodes.h"
#include "mlir/Tools/PDLL/AST/Types.h"
#include "mlir/Tools/PDLL/ODS/Constraint.h"
#include "mlir/Tools/PDLL/ODS/Context.h"
#include "mlir/Tools/PDLL/ODS/Operation.h"
#include "mlir/Tools/PDLL/Parser/CodeComplete.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/SaveAndRestore.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/TableGen/Error.h"
#include "llvm/TableGen/Parser.h"
#include <optional>
#include <string>

Go to the source code of this file.

Functions

static std::pair< int64_t, int64_tgetLineAndColStart (const llvm::SourceMgr &sourceMgr)
static LogicalResult loadSourceFileBuffer (llvm::StringRef filename, llvm::SourceMgr &sourceMgr, MLIRContext *ctx)

Function Documentation

◆ getLineAndColStart()

std::pair< int64_t, int64_t > getLineAndColStart ( const llvm::SourceMgr & sourceMgr)
static

Definition at line 21 of file Parser.cpp.

◆ loadSourceFileBuffer()

LogicalResult loadSourceFileBuffer ( llvm::StringRef filename,
llvm::SourceMgr & sourceMgr,
MLIRContext * ctx )
static

Definition at line 74 of file Parser.cpp.