[llvm] r244057 - [AArch64] Make the naming of the Address Type Promotion pass consistent.
Chad Rosier
mcrosier at codeaurora.org
Wed Aug 5 08:32:23 PDT 2015
Author: mcrosier
Date: Wed Aug 5 10:32:23 2015
New Revision: 244057
URL: http://llvm.org/viewvc/llvm-project?rev=244057&view=rev
Log:
[AArch64] Make the naming of the Address Type Promotion pass consistent.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64AddressTypePromotion.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64AddressTypePromotion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64AddressTypePromotion.cpp?rev=244057&r1=244056&r2=244057&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64AddressTypePromotion.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64AddressTypePromotion.cpp Wed Aug 5 10:32:23 2015
@@ -57,6 +57,8 @@ EnableMerge("aarch64-type-promotion-merg
" the other."),
cl::init(true));
+#define AARCH64_TYPE_PROMO_NAME "AArch64 Address Type Promotion"
+
//===----------------------------------------------------------------------===//
// AArch64AddressTypePromotion
//===----------------------------------------------------------------------===//
@@ -76,7 +78,7 @@ public:
}
const char *getPassName() const override {
- return "AArch64 Address Type Promotion";
+ return AARCH64_TYPE_PROMO_NAME;
}
/// Iterate over the functions and promote the computation of interesting
@@ -143,10 +145,10 @@ private:
char AArch64AddressTypePromotion::ID = 0;
INITIALIZE_PASS_BEGIN(AArch64AddressTypePromotion, "aarch64-type-promotion",
- "AArch64 Type Promotion Pass", false, false)
+ AARCH64_TYPE_PROMO_NAME, false, false)
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
INITIALIZE_PASS_END(AArch64AddressTypePromotion, "aarch64-type-promotion",
- "AArch64 Type Promotion Pass", false, false)
+ AARCH64_TYPE_PROMO_NAME, false, false)
FunctionPass *llvm::createAArch64AddressTypePromotionPass() {
return new AArch64AddressTypePromotion();
More information about the llvm-commits
mailing list