blob: 8211e28cd4e441c93151ca46f36d50bc72c136d5 [file] [log] [blame]
Alex Lorenz8e0a1b42015-06-22 17:02:30 +00001//===- MIParser.h - Machine Instructions Parser ---------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file declares the function that parses the machine instructions.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_CODEGEN_MIRPARSER_MIPARSER_H
15#define LLVM_LIB_CODEGEN_MIRPARSER_MIPARSER_H
16
Alex Lorenz33f0aef2015-06-26 16:46:11 +000017#include "llvm/ADT/DenseMap.h"
Alex Lorenz8e0a1b42015-06-22 17:02:30 +000018#include "llvm/ADT/StringRef.h"
19
20namespace llvm {
21
Alex Lorenz33f0aef2015-06-26 16:46:11 +000022class MachineBasicBlock;
Alex Lorenz8e0a1b42015-06-22 17:02:30 +000023class MachineInstr;
24class MachineFunction;
Alex Lorenz5d6108e2015-06-26 22:56:48 +000025struct SlotMapping;
Alex Lorenz8e0a1b42015-06-22 17:02:30 +000026class SMDiagnostic;
27class SourceMgr;
28
Alex Lorenz33f0aef2015-06-26 16:46:11 +000029MachineInstr *
30parseMachineInstr(SourceMgr &SM, MachineFunction &MF, StringRef Src,
31 const DenseMap<unsigned, MachineBasicBlock *> &MBBSlots,
Alex Lorenz5d6108e2015-06-26 22:56:48 +000032 const SlotMapping &IRSlots, SMDiagnostic &Error);
Alex Lorenz8e0a1b42015-06-22 17:02:30 +000033
34} // end namespace llvm
35
36#endif