llvm-project/llvm/lib/Target/RISCV/RISCVMacroFusion.h
Craig Topper 29463612d2 [RISCV] Replace RISCV -> RISC-V in comments. NFC
To be consistent with RISC-V branding guidelines
https://riscv.org/about/risc-v-branding-guidelines/
Think we should be using RISC-V where possible.

More patches will follow.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D146449
2023-03-27 09:50:17 -07:00

29 lines
1001 B
C++

//===- RISCVMacroFusion.h - RISC-V Macro Fusion -----------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
/// \file This file contains the RISC-V definition of the DAG scheduling
/// mutation to pair instructions back to back.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIB_TARGET_RISCV_RISCVMACROFUSION_H
#define LLVM_LIB_TARGET_RISCV_RISCVMACROFUSION_H
#include "llvm/CodeGen/MachineScheduler.h"
namespace llvm {
/// Note that you have to add:
/// DAG.addMutation(createRISCVMacroFusionDAGMutation());
/// to RISCVPassConfig::createMachineScheduler() to have an effect.
std::unique_ptr<ScheduleDAGMutation> createRISCVMacroFusionDAGMutation();
} // namespace llvm
#endif