blob: f268375547226d9f56ab1ca4a4232e7b6354b8ed [file] [log] [blame]
Sean Callanan95fcebd2010-01-29 00:21:04 +00001//===- EDEmitter.h - Generate instruction descriptions for ED ---*- C++ -*-===//
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 tablegen backend is responsible for emitting a description of each
11// instruction in a format that the semantic disassembler can use to tokenize
12// and parse instructions.
13//
14//===----------------------------------------------------------------------===//
15
16#ifndef SEMANTIC_INFO_EMITTER_H
17#define SEMANTIC_INFO_EMITTER_H
18
Peter Collingbourne7c788882011-10-01 16:41:13 +000019#include "llvm/TableGen/TableGenBackend.h"
Sean Callanan95fcebd2010-01-29 00:21:04 +000020
21namespace llvm {
22
23 class EDEmitter : public TableGenBackend {
24 RecordKeeper &Records;
25 public:
26 EDEmitter(RecordKeeper &R);
27
28 // run - Output the instruction table.
29 void run(raw_ostream &o);
Sean Callanan95fcebd2010-01-29 00:21:04 +000030 };
31
32} // End llvm namespace
33
34#endif