llvm/llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp

//===- AMDGPUInsertDelayAlu.cpp - Insert s_delay_alu instructions ---------===//
//
// 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
/// Insert s_delay_alu instructions to avoid stalls on GFX11+.
//
//===----------------------------------------------------------------------===//

#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "SIInstrInfo.h"
#include "llvm/ADT/SetVector.h"

usingnamespacellvm;

#define DEBUG_TYPE

namespace {

class AMDGPUInsertDelayAlu : public MachineFunctionPass {};

} // namespace

char AMDGPUInsertDelayAlu::ID =;

char &llvm::AMDGPUInsertDelayAluID =;

INITIALIZE_PASS()