summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MIParser.h
blob: b55d70a199baeed1cdee8c230aeb721fb16edfa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//===- MIParser.h - Machine Instructions Parser ---------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file declares the function that parses the machine instructions.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIB_CODEGEN_MIRPARSER_MIPARSER_H
#define LLVM_LIB_CODEGEN_MIRPARSER_MIPARSER_H

#include "llvm/ADT/StringRef.h"

namespace llvm {

class MachineInstr;
class MachineFunction;
class SMDiagnostic;
class SourceMgr;

MachineInstr *parseMachineInstr(SourceMgr &SM, MachineFunction &MF,
                                StringRef Src, SMDiagnostic &Error);

} // end namespace llvm

#endif
OpenPOWER on IntegriCloud