2008-05-30 06:20:54 +00:00
|
|
|
//===- LLVMCConfigurationEmitter.cpp - Generate LLVMCC config ---*- C++ -*-===//
|
2008-03-23 08:57:20 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open
|
|
|
|
// Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This tablegen backend is responsible for emitting LLVMCC configuration code.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2008-05-06 18:12:03 +00:00
|
|
|
#ifndef LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
|
|
|
|
#define LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
|
2008-03-23 08:57:20 +00:00
|
|
|
|
|
|
|
#include "TableGenBackend.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2008-05-07 21:50:19 +00:00
|
|
|
|
|
|
|
/// LLVMCConfigurationEmitter - TableGen backend that generates
|
|
|
|
/// configuration code for LLVMC.
|
2008-05-06 18:12:03 +00:00
|
|
|
class LLVMCConfigurationEmitter : public TableGenBackend {
|
2008-03-23 08:57:20 +00:00
|
|
|
RecordKeeper &Records;
|
|
|
|
public:
|
2008-05-06 18:12:03 +00:00
|
|
|
explicit LLVMCConfigurationEmitter(RecordKeeper &R) : Records(R) {}
|
2008-03-23 08:57:20 +00:00
|
|
|
|
|
|
|
// run - Output the asmwriter, returning true on failure.
|
2009-07-03 00:10:29 +00:00
|
|
|
void run(raw_ostream &o);
|
2008-03-23 08:57:20 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2008-05-06 18:12:03 +00:00
|
|
|
#endif //LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
|