[ARM, AArch64] Properly initialize InterleavedAccessPass

InterleavedAccessPass is an IR-level pass, so this change will enable testing
it with opt. This is part of D20250.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270101 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matthew Simpson 2016-05-19 20:08:32 +00:00
parent 73cd9cf448
commit d06ea8a8f4
4 changed files with 3 additions and 4 deletions

View File

@ -158,6 +158,7 @@ void initializeInlineCostAnalysisPass(PassRegistry&);
void initializeInstructionCombiningPassPass(PassRegistry&);
void initializeInstCountPass(PassRegistry&);
void initializeInstNamerPass(PassRegistry&);
void initializeInterleavedAccessPass(PassRegistry &);
void initializeInternalizeLegacyPassPass(PassRegistry&);
void initializeIntervalPartitionPass(PassRegistry&);
void initializeIRTranslatorPass(PassRegistry &);

View File

@ -34,6 +34,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
initializeGCMachineCodeAnalysisPass(Registry);
initializeGCModuleInfoPass(Registry);
initializeIfConverterPass(Registry);
initializeInterleavedAccessPass(Registry);
initializeLiveDebugVariablesPass(Registry);
initializeLiveIntervalsPass(Registry);
initializeLiveStacksPass(Registry);

View File

@ -58,10 +58,6 @@ static cl::opt<bool> LowerInterleavedAccesses(
static unsigned MaxFactor; // The maximum supported interleave factor.
namespace llvm {
static void initializeInterleavedAccessPass(PassRegistry &);
}
namespace {
class InterleavedAccess : public FunctionPass {

View File

@ -363,6 +363,7 @@ int main(int argc, char **argv) {
initializeSjLjEHPreparePass(Registry);
initializePreISelIntrinsicLoweringPass(Registry);
initializeGlobalMergePass(Registry);
initializeInterleavedAccessPass(Registry);
#ifdef LINK_POLLY_INTO_TOOLS
polly::initializePollyPasses(Registry);