LLVM API Documentation
00001 //===- llvm/TableGen/Main.h - tblgen entry point ----------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file declares the common entry point for tblgen tools. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef LLVM_TABLEGEN_MAIN_H 00015 #define LLVM_TABLEGEN_MAIN_H 00016 00017 namespace llvm { 00018 00019 class RecordKeeper; 00020 class raw_ostream; 00021 /// \brief Perform the action using Records, and write output to OS. 00022 /// \returns true on error, false otherwise 00023 typedef bool TableGenMainFn(raw_ostream &OS, RecordKeeper &Records); 00024 00025 int TableGenMain(char *argv0, TableGenMainFn *MainFn); 00026 } 00027 00028 #endif