brintos

brintos / llvm-project-archived public Read only

0
0
Text · 995 B · ee07977 Raw
32 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9/// \file This file contains the X86 definition of the DAG scheduling mutation10///  to pair instructions back to back.11//12//===----------------------------------------------------------------------===//13 14#ifndef LLVM_LIB_TARGET_X86_X86MACROFUSION_H15#define LLVM_LIB_TARGET_X86_X86MACROFUSION_H16 17#include <memory>18 19namespace llvm {20 21class ScheduleDAGMutation;22 23/// Note that you have to add:24///   DAG.addMutation(createX86MacroFusionDAGMutation());25/// to X86TargetMachine::createMachineScheduler() to have an effect.26std::unique_ptr<ScheduleDAGMutation>27createX86MacroFusionDAGMutation();28 29} // end namespace llvm30 31#endif32