Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | //===--- clang.h - C-Language Front-end -----------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by Chris Lattner and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This is the header file that pulls together the top-level driver. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef LLVM_CLANG_CLANG_H |
| 15 | #define LLVM_CLANG_CLANG_H |
| 16 | |
Ted Kremenek | 4457978 | 2007-09-25 18:37:20 +0000 | [diff] [blame] | 17 | #include <memory> |
| 18 | |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 19 | namespace clang { |
| 20 | class Preprocessor; |
Chris Lattner | 717e7e3 | 2007-09-04 02:46:00 +0000 | [diff] [blame] | 21 | struct LangOptions; |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 22 | class MinimalAction; |
| 23 | class TargetInfo; |
| 24 | class Diagnostic; |
Ted Kremenek | 4457978 | 2007-09-25 18:37:20 +0000 | [diff] [blame] | 25 | class ASTConsumer; |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 26 | |
| 27 | /// DoPrintPreprocessedInput - Implement -E mode. |
| 28 | void DoPrintPreprocessedInput(unsigned MainFileID, Preprocessor &PP, |
| 29 | const LangOptions &Options); |
| 30 | |
| 31 | /// CreatePrintParserActionsAction - Return the actions implementation that |
| 32 | /// implements the -parse-print-callbacks option. |
| 33 | MinimalAction *CreatePrintParserActionsAction(); |
| 34 | |
| 35 | /// CreateTargetInfo - Return the set of target info objects as specified by |
| 36 | /// the -arch command line option. |
| 37 | TargetInfo *CreateTargetInfo(Diagnostic &Diags); |
| 38 | |
| 39 | /// EmitLLVMFromASTs - Implement -emit-llvm, which generates llvm IR from C. |
| 40 | void EmitLLVMFromASTs(Preprocessor &PP, unsigned MainFileID, |
| 41 | bool PrintStats); |
| 42 | |
Ted Kremenek | 4457978 | 2007-09-25 18:37:20 +0000 | [diff] [blame] | 43 | /// CheckASTConsumer - Implement diagnostic checking for AST consumers. |
Ted Kremenek | d39bcd8 | 2007-09-26 18:39:29 +0000 | [diff] [blame^] | 44 | bool CheckASTConsumer(Preprocessor &PP, unsigned MainFileID, ASTConsumer* C); |
| 45 | |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 46 | |
| 47 | } // end namespace clang |
| 48 | |
| 49 | #endif |