OSDN Git Service

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)
commit05b523a8b1868742620f5d25dde9ee4513247f88
treeb7a1e8789905ba0b6a7f9c3ad0ab16886d002393
parent01f8f57b81f35d32ab4948076ca45de2882b7a36
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275661 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARM.h
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
lib/Target/ARM/ARMTargetMachine.cpp