summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-05-27 21:15:34 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-05-27 21:15:34 +0000
commit764fed98e6b038a8b633ce58308bd7987740dbc0 (patch)
tree983ad9f0dd1282759076cf484825798a70794cfd /llvm/lib
parentb62e7e31f7e90589e32977a7dc36a251cff320f3 (diff)
downloadbcm5719-llvm-764fed98e6b038a8b633ce58308bd7987740dbc0.tar.gz
bcm5719-llvm-764fed98e6b038a8b633ce58308bd7987740dbc0.zip
[Hexagon] Use standard macros to initialize HexagonExpandCondsets pass
llvm-svn: 271045
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonExpandCondsets.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonExpandCondsets.cpp b/llvm/lib/Target/Hexagon/HexagonExpandCondsets.cpp
index 2656ae4998d..b00e9966d7e 100644
--- a/llvm/lib/Target/Hexagon/HexagonExpandCondsets.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonExpandCondsets.cpp
@@ -188,6 +188,13 @@ namespace {
char HexagonExpandCondsets::ID = 0;
+INITIALIZE_PASS_BEGIN(HexagonExpandCondsets, "expand-condsets",
+ "Hexagon Expand Condsets", false, false)
+INITIALIZE_PASS_DEPENDENCY(MachineDominatorTree)
+INITIALIZE_PASS_DEPENDENCY(SlotIndexes)
+INITIALIZE_PASS_DEPENDENCY(LiveIntervals)
+INITIALIZE_PASS_END(HexagonExpandCondsets, "expand-condsets",
+ "Hexagon Expand Condsets", false, false)
unsigned HexagonExpandCondsets::getMaskForSub(unsigned Sub) {
switch (Sub) {
@@ -1349,18 +1356,6 @@ bool HexagonExpandCondsets::runOnMachineFunction(MachineFunction &MF) {
// Public Constructor Functions
//===----------------------------------------------------------------------===//
-static void initializePassOnce(PassRegistry &Registry) {
- const char *Name = "Hexagon Expand Condsets";
- PassInfo *PI = new PassInfo(Name, "expand-condsets",
- &HexagonExpandCondsets::ID, 0, false, false);
- Registry.registerPass(*PI, true);
-}
-
-void llvm::initializeHexagonExpandCondsetsPass(PassRegistry &Registry) {
- CALL_ONCE_INITIALIZATION(initializePassOnce)
-}
-
-
FunctionPass *llvm::createHexagonExpandCondsets() {
return new HexagonExpandCondsets();
}
OpenPOWER on IntegriCloud