summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARM.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-07-16 02:24:10 +0000
committerMatthias Braun <matze@braunis.de>2016-07-16 02:24:10 +0000
commit8f456fb18f6272bbb5c0cf23c2c2940f0662650f (patch)
tree3eac28c77b8d79dc4ff5caf417c703a005e1c260 /llvm/lib/Target/ARM/ARM.h
parent0ff953e8117e8435608630e82ed2d179c2d79519 (diff)
downloadbcm5719-llvm-8f456fb18f6272bbb5c0cf23c2c2940f0662650f.tar.gz
bcm5719-llvm-8f456fb18f6272bbb5c0cf23c2c2940f0662650f.zip
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
Diffstat (limited to 'llvm/lib/Target/ARM/ARM.h')
-rw-r--r--llvm/lib/Target/ARM/ARM.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARM.h b/llvm/lib/Target/ARM/ARM.h
index cd7540e5241..690ff86a0c8 100644
--- a/llvm/lib/Target/ARM/ARM.h
+++ b/llvm/lib/Target/ARM/ARM.h
@@ -27,6 +27,7 @@ class FunctionPass;
class ImmutablePass;
class MachineInstr;
class MCInst;
+class PassRegistry;
class TargetLowering;
class TargetMachine;
@@ -45,6 +46,9 @@ FunctionPass *createThumb2SizeReductionPass(
void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
ARMAsmPrinter &AP);
+void initializeARMLoadStoreOptPass(PassRegistry &);
+void initializeARMPreAllocLoadStoreOptPass(PassRegistry &);
+
} // end namespace llvm;
#endif
OpenPOWER on IntegriCloud