summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-08-01 05:56:57 +0000
committerDiana Picus <diana.picus@linaro.org>2016-08-01 05:56:57 +0000
commit850043b25a4b2b82f2b13d19cc39dc484cddf4e3 (patch)
tree5e1a97f6267dd8064f4bed51af9852bea97817ba /llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp
parent749a111f1e40a3b5e18da83a4c07e36faaba814f (diff)
downloadbcm5719-llvm-850043b25a4b2b82f2b13d19cc39dc484cddf4e3.tar.gz
bcm5719-llvm-850043b25a4b2b82f2b13d19cc39dc484cddf4e3.zip
[AArch64] Register passes so they can be run by llc
Initialize all AArch64-specific passes in the TargetMachine so they can be run by llc. This can lead to conflicts in opt with some command line options that share the same name as the pass, so I took this opportunity to do some cleanups: * rename all relevant command line options from "aarch64-blah" to "aarch64-enable-blah" and update the tests accordingly * run clang-format on their declarations * move all these declarations to a common place (the TargetMachine) as opposed to having them scattered around (AArch64BranchRelaxation and AArch64AddressTypePromotion were the only offenders) llvm-svn: 277322
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp b/llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp
index e1b0dc724b3..6e9ca8428bb 100644
--- a/llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp
@@ -732,7 +732,9 @@ class AArch64ConditionalCompares : public MachineFunctionPass {
public:
static char ID;
- AArch64ConditionalCompares() : MachineFunctionPass(ID) {}
+ AArch64ConditionalCompares() : MachineFunctionPass(ID) {
+ initializeAArch64ConditionalComparesPass(*PassRegistry::getPassRegistry());
+ }
void getAnalysisUsage(AnalysisUsage &AU) const override;
bool runOnMachineFunction(MachineFunction &MF) override;
const char *getPassName() const override {
@@ -750,10 +752,6 @@ private:
char AArch64ConditionalCompares::ID = 0;
-namespace llvm {
-void initializeAArch64ConditionalComparesPass(PassRegistry &);
-}
-
INITIALIZE_PASS_BEGIN(AArch64ConditionalCompares, "aarch64-ccmp",
"AArch64 CCMP Pass", false, false)
INITIALIZE_PASS_DEPENDENCY(MachineDominatorTree)
OpenPOWER on IntegriCloud