1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/utils/TableGen/SubtargetEmitter.h
Jim Laskey c2e76396fc New TableGen backends for subtarget information. Only command line stuff
active now.  Scheduling itinerary next.

llvm-svn: 23869
2005-10-21 19:00:04 +00:00

38 lines
905 B
C++

//===- SubtargetEmitter.h - Generate subtarget enumerations -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by James M. Laskey and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This tablegen backend emits subtarget enumerations.
//
//===----------------------------------------------------------------------===//
#ifndef SUBTARGET_EMITTER_H
#define SUBTARGET_EMITTER_H
#include "TableGenBackend.h"
namespace llvm {
class SubtargetEmitter : public TableGenBackend {
RecordKeeper &Records;
public:
SubtargetEmitter(RecordKeeper &R) : Records(R) {}
// run - Output the subtarget enumerations, returning true on failure.
void run(std::ostream &o);
};
} // End llvm namespace
#endif