Analyses.def revision 263508
1194262Sjhb//===-- Analyses.def - Metadata about Static Analyses -----------*- C++ -*-===// 2282067Sngie// 3194262Sjhb// The LLVM Compiler Infrastructure 4194262Sjhb// 5194262Sjhb// This file is distributed under the University of Illinois Open Source 6194262Sjhb// License. See LICENSE.TXT for details. 7194262Sjhb// 8194262Sjhb//===----------------------------------------------------------------------===// 9194262Sjhb// 10194262Sjhb// This file defines the set of static analyses used by AnalysisConsumer. 11194262Sjhb// 12194262Sjhb//===----------------------------------------------------------------------===// 13194262Sjhb 14194262Sjhb#ifndef ANALYSIS_STORE 15194262Sjhb#define ANALYSIS_STORE(NAME, CMDFLAG, DESC, CREATFN) 16194262Sjhb#endif 17194262Sjhb 18194262SjhbANALYSIS_STORE(RegionStore, "region", "Use region-based analyzer store", CreateRegionStoreManager) 19194262Sjhb 20194262Sjhb#ifndef ANALYSIS_CONSTRAINTS 21194262Sjhb#define ANALYSIS_CONSTRAINTS(NAME, CMDFLAG, DESC, CREATFN) 22194262Sjhb#endif 23194262Sjhb 24194262SjhbANALYSIS_CONSTRAINTS(RangeConstraints, "range", "Use constraint tracking of concrete value ranges", CreateRangeConstraintManager) 25194262Sjhb 26194262Sjhb#ifndef ANALYSIS_DIAGNOSTICS 27194262Sjhb#define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN) 28194262Sjhb#endif 29194262Sjhb 30194262SjhbANALYSIS_DIAGNOSTICS(HTML, "html", "Output analysis results using HTML", createHTMLDiagnosticConsumer) 31194262SjhbANALYSIS_DIAGNOSTICS(PLIST, "plist", "Output analysis results using Plists", createPlistDiagnosticConsumer) 32194262SjhbANALYSIS_DIAGNOSTICS(PLIST_MULTI_FILE, "plist-multi-file", "Output analysis results using Plists (allowing for mult-file bugs)", createPlistMultiFileDiagnosticConsumer) 33194262SjhbANALYSIS_DIAGNOSTICS(PLIST_HTML, "plist-html", "Output analysis results using HTML wrapped with Plists", createPlistHTMLDiagnosticConsumer) 34194262SjhbANALYSIS_DIAGNOSTICS(TEXT, "text", "Text output of analysis results", createTextPathDiagnosticConsumer) 35194262Sjhb 36194262Sjhb#ifndef ANALYSIS_PURGE 37194262Sjhb#define ANALYSIS_PURGE(NAME, CMDFLAG, DESC) 38194262Sjhb#endif 39194262Sjhb 40194262SjhbANALYSIS_PURGE(PurgeStmt, "statement", "Purge symbols, bindings, and constraints before every statement") 41194262SjhbANALYSIS_PURGE(PurgeBlock, "block", "Purge symbols, bindings, and constraints before every basic block") 42281432SngieANALYSIS_PURGE(PurgeNone, "none", "Do not purge symbols, bindings, or constraints") 43194262Sjhb 44194262Sjhb#ifndef ANALYSIS_INLINING_MODE 45194262Sjhb#define ANALYSIS_INLINING_MODE(NAME, CMDFLAG, DESC) 46194262Sjhb#endif 47194262Sjhb 48194262SjhbANALYSIS_INLINING_MODE(All, "all", "Analyze all functions as top level") 49194262SjhbANALYSIS_INLINING_MODE(NoRedundancy, "noredundancy", "Do not analyze a function which has been previously inlined") 50194262Sjhb 51194262Sjhb#undef ANALYSIS_STORE 52194262Sjhb#undef ANALYSIS_CONSTRAINTS 53194262Sjhb#undef ANALYSIS_DIAGNOSTICS 54194262Sjhb#undef ANALYSIS_PURGE 55194262Sjhb#undef ANALYSIS_INLINING_MODE 56194262Sjhb#undef ANALYSIS_IPA 57194262Sjhb 58194262Sjhb