ASTConsumers.h (198954) | ASTConsumers.h (199482) |
---|---|
1//===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 11 unchanged lines hidden (view full) --- 20 class raw_ostream; 21 class Module; 22 class LLVMContext; 23 namespace sys { class Path; } 24} 25namespace clang { 26 27class ASTConsumer; | 1//===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 11 unchanged lines hidden (view full) --- 20 class raw_ostream; 21 class Module; 22 class LLVMContext; 23 namespace sys { class Path; } 24} 25namespace clang { 26 27class ASTConsumer; |
28class CodeGenOptions; |
|
28class Diagnostic; 29class FileManager; | 29class Diagnostic; 30class FileManager; |
30class Preprocessor; 31class CompileOptions; | |
32class LangOptions; | 31class LangOptions; |
32class Preprocessor; 33class TargetOptions; |
|
33 34// AST pretty-printer: prints out the AST in a format that is close to the 35// original C code. The output is intended to be in a format such that 36// clang could re-parse the output back into the same AST, but the 37// implementation is still incomplete. 38ASTConsumer *CreateASTPrinter(llvm::raw_ostream *OS); 39 40// AST XML-printer: prints out the AST in a XML format --- 23 unchanged lines hidden (view full) --- 64// This is considered experimental, and only works with Apple's ObjC runtime. 65ASTConsumer *CreateObjCRewriter(const std::string &InFile, 66 llvm::raw_ostream *OS, 67 Diagnostic &Diags, 68 const LangOptions &LOpts, 69 bool SilenceRewriteMacroWarning); 70 71// LLVM code generator: uses the code generation backend to generate LLVM | 34 35// AST pretty-printer: prints out the AST in a format that is close to the 36// original C code. The output is intended to be in a format such that 37// clang could re-parse the output back into the same AST, but the 38// implementation is still incomplete. 39ASTConsumer *CreateASTPrinter(llvm::raw_ostream *OS); 40 41// AST XML-printer: prints out the AST in a XML format --- 23 unchanged lines hidden (view full) --- 65// This is considered experimental, and only works with Apple's ObjC runtime. 66ASTConsumer *CreateObjCRewriter(const std::string &InFile, 67 llvm::raw_ostream *OS, 68 Diagnostic &Diags, 69 const LangOptions &LOpts, 70 bool SilenceRewriteMacroWarning); 71 72// LLVM code generator: uses the code generation backend to generate LLVM |
72// assembly. This runs optimizations depending on the CompileOptions | 73// assembly. This runs optimizations depending on the CodeGenOptions |
73// parameter. The output depends on the Action parameter. 74enum BackendAction { 75 Backend_EmitAssembly, // Emit native assembly 76 Backend_EmitBC, // Emit LLVM bitcode file 77 Backend_EmitLL, // Emit human-readable LLVM assembly 78 Backend_EmitNothing // Don't emit anything (benchmarking mode) 79}; 80ASTConsumer *CreateBackendConsumer(BackendAction Action, 81 Diagnostic &Diags, 82 const LangOptions &Features, | 74// parameter. The output depends on the Action parameter. 75enum BackendAction { 76 Backend_EmitAssembly, // Emit native assembly 77 Backend_EmitBC, // Emit LLVM bitcode file 78 Backend_EmitLL, // Emit human-readable LLVM assembly 79 Backend_EmitNothing // Don't emit anything (benchmarking mode) 80}; 81ASTConsumer *CreateBackendConsumer(BackendAction Action, 82 Diagnostic &Diags, 83 const LangOptions &Features, |
83 const CompileOptions &CompileOpts, | 84 const CodeGenOptions &CodeGenOpts, 85 const TargetOptions &TargetOpts, |
84 const std::string &ModuleID, 85 llvm::raw_ostream *OS, 86 llvm::LLVMContext& C); 87 88/// CreateHTMLPrinter - Create an AST consumer which rewrites source code to 89/// HTML with syntax highlighting suitable for viewing in a web-browser. 90ASTConsumer *CreateHTMLPrinter(llvm::raw_ostream *OS, Preprocessor &PP, 91 bool SyntaxHighlight = true, --- 22 unchanged lines hidden --- | 86 const std::string &ModuleID, 87 llvm::raw_ostream *OS, 88 llvm::LLVMContext& C); 89 90/// CreateHTMLPrinter - Create an AST consumer which rewrites source code to 91/// HTML with syntax highlighting suitable for viewing in a web-browser. 92ASTConsumer *CreateHTMLPrinter(llvm::raw_ostream *OS, Preprocessor &PP, 93 bool SyntaxHighlight = true, --- 22 unchanged lines hidden --- |