LLVM  14.0.0git
PPCMacroFusion.h
Go to the documentation of this file.
1 //===- PPCMacroFusion.h - PowerPC Macro Fusion ----------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 /// \file This file contains the PowerPC definition of the DAG scheduling
10 /// mutation to pair instructions back to back.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_POWERPC_PPCMACROFUSION_H
15 #define LLVM_LIB_TARGET_POWERPC_PPCMACROFUSION_H
16 
18 
19 namespace llvm {
20 
21 /// Note that you have to add:
22 /// DAG.addMutation(createPowerPCMacroFusionDAGMutation());
23 /// to PPCPassConfig::createMachineScheduler() to have an effect.
24 std::unique_ptr<ScheduleDAGMutation> createPowerPCMacroFusionDAGMutation();
25 } // llvm
26 
27 #endif // LLVM_LIB_TARGET_POWERPC_PPCMACROFUSION_H
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::createPowerPCMacroFusionDAGMutation
std::unique_ptr< ScheduleDAGMutation > createPowerPCMacroFusionDAGMutation()
Note that you have to add: DAG.addMutation(createPowerPCMacroFusionDAGMutation()); to PPCPassConfig::...
Definition: PPCMacroFusion.cpp:199
MachineScheduler.h