Mikhail Glushenkov | fb37f39 | 2008-05-30 06:20:54 +0000 | [diff] [blame] | 1 | //===- LLVMCConfigurationEmitter.cpp - Generate LLVMCC config ---*- C++ -*-===// |
Anton Korobeynikov | ac67b7e | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 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 Glushenkov | 895820d | 2008-05-06 18:12:03 +0000 | [diff] [blame] | 14 | #ifndef LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H |
| 15 | #define LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H |
Anton Korobeynikov | ac67b7e | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 16 | |
| 17 | #include "TableGenBackend.h" |
| 18 | |
| 19 | namespace llvm { |
Mikhail Glushenkov | 4561ab5 | 2008-05-07 21:50:19 +0000 | [diff] [blame] | 20 | |
| 21 | /// LLVMCConfigurationEmitter - TableGen backend that generates |
| 22 | /// configuration code for LLVMC. |
Mikhail Glushenkov | 895820d | 2008-05-06 18:12:03 +0000 | [diff] [blame] | 23 | class LLVMCConfigurationEmitter : public TableGenBackend { |
Anton Korobeynikov | ac67b7e | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 24 | RecordKeeper &Records; |
| 25 | public: |
Mikhail Glushenkov | 895820d | 2008-05-06 18:12:03 +0000 | [diff] [blame] | 26 | explicit LLVMCConfigurationEmitter(RecordKeeper &R) : Records(R) {} |
Anton Korobeynikov | ac67b7e | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 27 | |
| 28 | // run - Output the asmwriter, returning true on failure. |
| 29 | void run(std::ostream &o); |
| 30 | }; |
| 31 | } |
| 32 | |
Mikhail Glushenkov | 895820d | 2008-05-06 18:12:03 +0000 | [diff] [blame] | 33 | #endif //LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H |