blob: 4896a4a2544dbf5d0379a6d1a6a4af64b7a5fc47 [file] [log] [blame]
Florian Hahnb489e562017-06-22 09:39:36 +00001//===- ARMMacroFusion.h - ARM Macro Fusion ------------------------===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Florian Hahnb489e562017-06-22 09:39:36 +00006//
7//===----------------------------------------------------------------------===//
8//
9/// \file This file contains the ARM definition of the DAG scheduling mutation
10/// to pair instructions back to back.
11//
12//===----------------------------------------------------------------------===//
13
Argyrios Kyrtzidisc30340b2018-09-03 16:22:05 +000014#ifndef LLVM_LIB_TARGET_ARM_ARMMACROFUSION_H
15#define LLVM_LIB_TARGET_ARM_ARMMACROFUSION_H
16
Florian Hahnb489e562017-06-22 09:39:36 +000017#include "llvm/CodeGen/MachineScheduler.h"
18
19namespace llvm {
20
21/// Note that you have to add:
22/// DAG.addMutation(createARMMacroFusionDAGMutation());
23/// to ARMPassConfig::createMachineScheduler() to have an effect.
24std::unique_ptr<ScheduleDAGMutation> createARMMacroFusionDAGMutation();
25
26} // llvm
Argyrios Kyrtzidisc30340b2018-09-03 16:22:05 +000027
28#endif