blob: 89f8b659d702ff712c2c36e9ac66b15bf258f3d9 [file] [log] [blame]
Chris Lattner7b117122008-01-06 00:49:05 +00001//===- InstrEnumEmitter.h - Generate Instruction Set Enums ------*- 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 enums for each machine
11// instruction.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef INSTRENUM_EMITTER_H
16#define INSTRENUM_EMITTER_H
17
18#include "TableGenBackend.h"
19
20namespace llvm {
21
22class InstrEnumEmitter : public TableGenBackend {
23 RecordKeeper &Records;
24public:
25 InstrEnumEmitter(RecordKeeper &R) : Records(R) {}
26
27 // run - Output the instruction set description, returning true on failure.
Daniel Dunbar1a551802009-07-03 00:10:29 +000028 void run(raw_ostream &OS);
Chris Lattner7b117122008-01-06 00:49:05 +000029};
30
31} // End llvm namespace
32
33#endif