ARM: Initialize LoadStore passes in TargetMachine
authorMatthias Braun <matze@braunis.de>
Sat, 16 Jul 2016 02:24:10 +0000 (02:24 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 16 Jul 2016 02:24:10 +0000 (02:24 +0000)
commit8f456fb18f6272bbb5c0cf23c2c2940f0662650f
tree3eac28c77b8d79dc4ff5caf417c703a005e1c260
parent0ff953e8117e8435608630e82ed2d179c2d79519
ARM: Initialize LoadStore passes in TargetMachine

Initializing them in LLVMInitializeARMTarget() makes them visible early
enough for "llc -run-pass usage".

This required the pass to be renamed from "arm-load-store-opt" to
"arm-ldst-opt", because there already exists an arm-load-store-opt
cl::opt switch which would now clash with the passname getting added as
a switch in opt. On the bright side the pass name now matches the
DEBUG_TYPE name. Renamed "arm-prera-load-store-opt" to
"arm-repra-ldst-opt" as well for consistency.

llvm-svn: 275661
llvm/lib/Target/ARM/ARM.h
llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
llvm/lib/Target/ARM/ARMTargetMachine.cpp