[SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (#90217)
[llvm-project.git] / llvm / lib / Target / AArch64 / AArch64MacroFusion.h
blob2999e7a8aa909c24c1b52cd4c96d520713fc855a
1 //===- AArch64MacroFusion.h - AArch64 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 AArch64 definition of the DAG scheduling
10 /// mutation to pair instructions back to back.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64MACROFUSION_H
15 #define LLVM_LIB_TARGET_AARCH64_AARCH64MACROFUSION_H
17 #include "llvm/CodeGen/MachineScheduler.h"
19 namespace llvm {
21 /// Note that you have to add:
22 /// DAG.addMutation(createAArch64MacroFusionDAGMutation());
23 /// to AArch64PassConfig::createMachineScheduler() to have an effect.
24 std::unique_ptr<ScheduleDAGMutation> createAArch64MacroFusionDAGMutation();
26 } // llvm
28 #endif // LLVM_LIB_TARGET_AARCH64_AARCH64MACROFUSION_H