diff options
author | Jim Laskey <jlaskey@mac.com> | 2005-10-21 19:00:04 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2005-10-21 19:00:04 +0000 |
commit | cfda85ad91998674444a054a988a14966876a423 (patch) | |
tree | 06120592407cc33bbf065c368b6fb18b4738b1f3 /llvm/utils/TableGen/SubtargetEmitter.h | |
parent | 229878b7bc0683cf2dfe1286b86c1e58af51acbb (diff) | |
download | bcm5719-llvm-cfda85ad91998674444a054a988a14966876a423.tar.gz bcm5719-llvm-cfda85ad91998674444a054a988a14966876a423.zip |
New TableGen backends for subtarget information. Only command line stuff
active now. Scheduling itinerary next.
llvm-svn: 23869
Diffstat (limited to 'llvm/utils/TableGen/SubtargetEmitter.h')
-rw-r--r-- | llvm/utils/TableGen/SubtargetEmitter.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/SubtargetEmitter.h b/llvm/utils/TableGen/SubtargetEmitter.h new file mode 100644 index 00000000000..f1cc4982923 --- /dev/null +++ b/llvm/utils/TableGen/SubtargetEmitter.h @@ -0,0 +1,37 @@ +//===- 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 + + + |