2007-10-07 14:04:32 +08:00
|
|
|
//===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===//
|
2007-06-23 08:39:57 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-30 03:59:25 +08:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-06-23 08:39:57 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2007-10-07 14:04:32 +08:00
|
|
|
// AST Consumers.
|
2007-06-23 08:39:57 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2007-10-07 14:04:32 +08:00
|
|
|
#ifndef DRIVER_ASTCONSUMERS_H
|
|
|
|
#define DRIVER_ASTCONSUMERS_H
|
2007-06-23 08:39:57 +08:00
|
|
|
|
2007-11-29 05:32:21 +08:00
|
|
|
#include <iosfwd>
|
2007-11-28 05:46:50 +08:00
|
|
|
|
2007-12-13 08:37:31 +08:00
|
|
|
namespace llvm { namespace sys { class Path; }}
|
|
|
|
|
2007-06-23 08:39:57 +08:00
|
|
|
namespace clang {
|
|
|
|
|
2007-09-16 06:56:56 +08:00
|
|
|
class ASTConsumer;
|
2007-09-16 07:21:08 +08:00
|
|
|
class Diagnostic;
|
2007-12-05 08:26:13 +08:00
|
|
|
class FileManager;
|
2007-11-28 13:34:05 +08:00
|
|
|
struct LangOptions;
|
2007-06-23 08:39:57 +08:00
|
|
|
|
2007-11-29 05:32:21 +08:00
|
|
|
ASTConsumer *CreateASTPrinter(std::ostream* OS = NULL);
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-09-16 07:02:28 +08:00
|
|
|
ASTConsumer *CreateASTDumper();
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-09-20 05:29:43 +08:00
|
|
|
ASTConsumer *CreateASTViewer();
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-09-16 07:21:08 +08:00
|
|
|
ASTConsumer *CreateCFGDumper(bool ViewGraphs = false);
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-09-16 07:21:08 +08:00
|
|
|
ASTConsumer *CreateLiveVarAnalyzer();
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-09-16 07:21:08 +08:00
|
|
|
ASTConsumer *CreateDeadStoreChecker(Diagnostic &Diags);
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-09-18 04:49:30 +08:00
|
|
|
ASTConsumer *CreateUnitValsChecker(Diagnostic &Diags);
|
2008-01-09 02:04:06 +08:00
|
|
|
|
|
|
|
ASTConsumer *CreateGRConstProp();
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-11-28 13:34:05 +08:00
|
|
|
ASTConsumer *CreateLLVMEmitter(Diagnostic &Diags, const LangOptions &Features);
|
2007-12-20 06:24:34 +08:00
|
|
|
|
2007-12-24 09:52:34 +08:00
|
|
|
ASTConsumer *CreateBCWriter(const std::string& InFile,
|
|
|
|
const std::string& OutFile,
|
|
|
|
Diagnostic &Diags,
|
|
|
|
const LangOptions &LOpts);
|
|
|
|
|
2007-12-01 06:25:36 +08:00
|
|
|
ASTConsumer *CreateCodeRewriterTest(Diagnostic &Diags);
|
2007-12-20 06:24:34 +08:00
|
|
|
|
|
|
|
ASTConsumer *CreateSerializationTest(Diagnostic &Diags,
|
|
|
|
FileManager& FMgr,
|
2007-12-06 05:34:36 +08:00
|
|
|
const LangOptions &LOpts);
|
2007-12-13 08:37:31 +08:00
|
|
|
|
2007-12-20 07:49:37 +08:00
|
|
|
ASTConsumer *CreateASTSerializer(const std::string& InFile,
|
|
|
|
const std::string& EmitDir,
|
2007-12-20 06:24:34 +08:00
|
|
|
Diagnostic &Diags,
|
|
|
|
const LangOptions &LOpts);
|
2007-09-07 07:00:42 +08:00
|
|
|
|
2007-06-23 08:39:57 +08:00
|
|
|
} // end clang namespace
|
|
|
|
|
|
|
|
#endif
|