2005-01-06 07:29:42 +01:00
|
|
|
//===- llvm/Transforms/LinkAllPasses.h - Reference All Passes ---*- C++ -*-===//
|
2005-04-21 22:59:05 +02:00
|
|
|
//
|
2005-01-07 08:46:40 +01:00
|
|
|
// The LLVM Compiler Infrastructure
|
2005-01-06 07:02:53 +01:00
|
|
|
//
|
|
|
|
// This file was developed by Jeff Cohen and is distributed under the
|
|
|
|
// University of Illinois Open Source License. See LICENSE.TXT for details.
|
2005-04-21 22:59:05 +02:00
|
|
|
//
|
2005-01-06 07:02:53 +01:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2005-10-24 02:08:51 +02:00
|
|
|
// This header file pulls in all transformation passes for tools like opts and
|
|
|
|
// bugpoint that need this functionality.
|
2005-01-06 07:02:53 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_TRANSFORMS_LINKALLPASSES_H
|
|
|
|
#define LLVM_TRANSFORMS_LINKALLPASSES_H
|
|
|
|
|
2005-01-08 19:15:23 +01:00
|
|
|
#include "llvm/Analysis/Passes.h"
|
|
|
|
#include "llvm/Analysis/LoadValueNumbering.h"
|
|
|
|
#include "llvm/CodeGen/Passes.h"
|
2005-01-06 07:02:53 +01:00
|
|
|
#include "llvm/Transforms/Instrumentation.h"
|
|
|
|
#include "llvm/Transforms/IPO.h"
|
|
|
|
#include "llvm/Transforms/Scalar.h"
|
|
|
|
#include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
|
2005-10-24 02:08:51 +02:00
|
|
|
#include <cstdlib>
|
2005-01-06 07:02:53 +01:00
|
|
|
|
|
|
|
namespace {
|
2005-01-08 23:01:16 +01:00
|
|
|
struct ForcePassLinking {
|
|
|
|
ForcePassLinking() {
|
2005-10-24 02:08:51 +02:00
|
|
|
// We must reference the passes in such a way that compilers will not
|
2005-01-07 08:44:02 +01:00
|
|
|
// delete it all as dead code, even with whole program optimization,
|
|
|
|
// yet is effectively a NO-OP. As the compiler isn't smart enough
|
2005-10-24 02:08:51 +02:00
|
|
|
// to know that getenv() never returns -1, this will do the job.
|
|
|
|
if (std::getenv("bar") != (char*) -1)
|
2005-01-07 08:44:02 +01:00
|
|
|
return;
|
2005-01-06 07:02:53 +01:00
|
|
|
|
2005-01-08 23:01:16 +01:00
|
|
|
(void) llvm::createAAEvalPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createAggressiveDCEPass();
|
2005-01-08 23:01:16 +01:00
|
|
|
(void) llvm::createAliasAnalysisCounterPass();
|
|
|
|
(void) llvm::createAndersensPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createArgumentPromotionPass();
|
2005-01-08 23:01:16 +01:00
|
|
|
(void) llvm::createBasicAliasAnalysisPass();
|
|
|
|
(void) llvm::createBasicVNPass();
|
2005-01-08 18:21:40 +01:00
|
|
|
(void) llvm::createBlockPlacementPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createBlockProfilerPass();
|
|
|
|
(void) llvm::createBreakCriticalEdgesPass();
|
|
|
|
(void) llvm::createCFGSimplificationPass();
|
|
|
|
(void) llvm::createConstantMergePass();
|
|
|
|
(void) llvm::createConstantPropagationPass();
|
|
|
|
(void) llvm::createCorrelatedExpressionEliminationPass();
|
2005-01-09 21:42:52 +01:00
|
|
|
(void) llvm::createDSAAPass();
|
|
|
|
(void) llvm::createDSOptPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createDeadArgEliminationPass();
|
|
|
|
(void) llvm::createDeadCodeEliminationPass();
|
|
|
|
(void) llvm::createDeadInstEliminationPass();
|
|
|
|
(void) llvm::createDeadStoreEliminationPass();
|
|
|
|
(void) llvm::createDeadTypeEliminationPass();
|
|
|
|
(void) llvm::createEdgeProfilerPass();
|
|
|
|
(void) llvm::createEmitFunctionTablePass();
|
|
|
|
(void) llvm::createFunctionInliningPass();
|
|
|
|
(void) llvm::createFunctionProfilerPass();
|
|
|
|
(void) llvm::createFunctionResolvingPass();
|
|
|
|
(void) llvm::createGCSEPass();
|
|
|
|
(void) llvm::createGlobalDCEPass();
|
|
|
|
(void) llvm::createGlobalOptimizerPass();
|
2005-01-08 19:15:23 +01:00
|
|
|
(void) llvm::createGlobalsModRefPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createIPConstantPropagationPass();
|
|
|
|
(void) llvm::createIPSCCPPass();
|
|
|
|
(void) llvm::createIndVarSimplifyPass();
|
|
|
|
(void) llvm::createInstructionCombiningPass();
|
2005-10-19 03:41:47 +02:00
|
|
|
(void) llvm::createInternalizePass(false);
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createLICMPass();
|
2005-01-08 19:15:23 +01:00
|
|
|
(void) llvm::createLoadValueNumberingPass();
|
2005-01-08 18:21:40 +01:00
|
|
|
(void) llvm::createLoopExtractorPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createLoopSimplifyPass();
|
|
|
|
(void) llvm::createLoopStrengthReducePass();
|
|
|
|
(void) llvm::createLoopUnrollPass();
|
|
|
|
(void) llvm::createLoopUnswitchPass();
|
|
|
|
(void) llvm::createLowerAllocationsPass();
|
|
|
|
(void) llvm::createLowerGCPass();
|
|
|
|
(void) llvm::createLowerInvokePass();
|
|
|
|
(void) llvm::createLowerPackedPass();
|
2005-01-08 18:21:40 +01:00
|
|
|
(void) llvm::createLowerSelectPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createLowerSetJmpPass();
|
|
|
|
(void) llvm::createLowerSwitchPass();
|
2005-01-08 23:01:16 +01:00
|
|
|
(void) llvm::createNoAAPass();
|
|
|
|
(void) llvm::createNoProfileInfoPass();
|
2005-01-08 18:21:40 +01:00
|
|
|
(void) llvm::createPREPass();
|
2005-01-10 04:56:27 +01:00
|
|
|
(void) llvm::createProfileLoaderPass();
|
2005-03-28 04:52:28 +02:00
|
|
|
(void) llvm::createPromoteMemoryToRegisterPass();
|
2005-11-10 03:07:45 +01:00
|
|
|
(void) llvm::createDemoteRegisterToMemoryPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createPruneEHPass();
|
|
|
|
(void) llvm::createRaiseAllocationsPass();
|
|
|
|
(void) llvm::createRaisePointerReferencesPass();
|
|
|
|
(void) llvm::createReassociatePass();
|
|
|
|
(void) llvm::createSCCPPass();
|
|
|
|
(void) llvm::createScalarReplAggregatesPass();
|
2005-04-26 04:57:49 +02:00
|
|
|
(void) llvm::createSimplifyLibCallsPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createSingleLoopExtractorPass();
|
2005-01-09 21:42:52 +01:00
|
|
|
(void) llvm::createSteensgaardPass();
|
2005-01-08 18:21:40 +01:00
|
|
|
(void) llvm::createStripSymbolsPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
(void) llvm::createTailCallEliminationPass();
|
|
|
|
(void) llvm::createTailDuplicationPass();
|
|
|
|
(void) llvm::createTraceBasicBlockPass();
|
|
|
|
(void) llvm::createTraceValuesPassForBasicBlocks();
|
|
|
|
(void) llvm::createTraceValuesPassForFunction();
|
2005-01-08 18:21:40 +01:00
|
|
|
(void) llvm::createUnifyFunctionExitNodesPass();
|
2005-04-15 23:13:16 +02:00
|
|
|
(void) llvm::createCondPropagationPass();
|
2005-01-07 08:44:02 +01:00
|
|
|
}
|
2005-10-24 02:16:03 +02:00
|
|
|
} ForcePassLinking;
|
2005-01-06 07:02:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|