blob: b37b83fb925579cc2824cbaa32265a11240522b0 [file] [log] [blame]
Mikhail Glushenkov2d3327f2008-05-30 06:20:54 +00001//===- LLVMCConfigurationEmitter.cpp - Generate LLVMCC config ---*- C++ -*-===//
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +00002//
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 Glushenkovc1f738d2008-05-06 18:12:03 +000014#ifndef LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
15#define LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000016
17#include "TableGenBackend.h"
18
19namespace llvm {
Mikhail Glushenkovbe46ae12008-05-07 21:50:19 +000020
21 /// LLVMCConfigurationEmitter - TableGen backend that generates
22 /// configuration code for LLVMC.
Mikhail Glushenkovc1f738d2008-05-06 18:12:03 +000023 class LLVMCConfigurationEmitter : public TableGenBackend {
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000024 public:
Mikhail Glushenkovc53d2252009-10-17 20:08:47 +000025 explicit LLVMCConfigurationEmitter(RecordKeeper&) {}
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000026
27 // run - Output the asmwriter, returning true on failure.
Daniel Dunbard4287062009-07-03 00:10:29 +000028 void run(raw_ostream &o);
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000029 };
30}
31
Mikhail Glushenkovc1f738d2008-05-06 18:12:03 +000032#endif //LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H