1 //===- AMDGPUMacroFusion.h - AMDGPU Macro Fusion ----------------*- C++ -*-===// 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 #include "llvm/CodeGen/ScheduleDAGMutation.h" 10 #include <memory> 11 12 namespace llvm { 13 14 /// Note that you have to add: 15 /// DAG.addMutation(createAMDGPUMacroFusionDAGMutation()); 16 /// to AMDGPUPassConfig::createMachineScheduler() to have an effect. 17 std::unique_ptr<ScheduleDAGMutation> createAMDGPUMacroFusionDAGMutation(); 18 19 } // llvm 20