blob: 164f12d14603bf2f879b5d1cd441ffb2bf1886be [file] [log] [blame]
Anton Korobeynikovac67b7e2008-03-23 08:57:20 +00001//===- LLVMCConfigurationEmitter.cpp - Generate LLVMCC config -------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open
6// Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This tablegen backend is responsible for emitting LLVMCC configuration code.
11//
12//===----------------------------------------------------------------------===//
13
Mikhail Glushenkov895820d2008-05-06 18:12:03 +000014#ifndef LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
15#define LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
Anton Korobeynikovac67b7e2008-03-23 08:57:20 +000016
17#include "TableGenBackend.h"
18
19namespace llvm {
Mikhail Glushenkov4561ab52008-05-07 21:50:19 +000020
21 /// LLVMCConfigurationEmitter - TableGen backend that generates
22 /// configuration code for LLVMC.
Mikhail Glushenkov895820d2008-05-06 18:12:03 +000023 class LLVMCConfigurationEmitter : public TableGenBackend {
Anton Korobeynikovac67b7e2008-03-23 08:57:20 +000024 RecordKeeper &Records;
25 public:
Mikhail Glushenkov895820d2008-05-06 18:12:03 +000026 explicit LLVMCConfigurationEmitter(RecordKeeper &R) : Records(R) {}
Anton Korobeynikovac67b7e2008-03-23 08:57:20 +000027
28 // run - Output the asmwriter, returning true on failure.
29 void run(std::ostream &o);
30 };
31}
32
Mikhail Glushenkov895820d2008-05-06 18:12:03 +000033#endif //LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H