[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / llvm / lib / Target / X86 / X86MacroFusion.h
blob05388b275ca3ff88d3f072c248930ae5ce711ac4
1 //===- X86MacroFusion.h - X86 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 X86 definition of the DAG scheduling mutation
10 /// to pair instructions back to back.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_X86_X86MACROFUSION_H
15 #define LLVM_LIB_TARGET_X86_X86MACROFUSION_H
17 #include <memory>
19 namespace llvm {
21 class ScheduleDAGMutation;
23 /// Note that you have to add:
24 /// DAG.addMutation(createX86MacroFusionDAGMutation());
25 /// to X86PassConfig::createMachineScheduler() to have an effect.
26 std::unique_ptr<ScheduleDAGMutation>
27 createX86MacroFusionDAGMutation();
29 } // end namespace llvm
31 #endif