llvm/llvm/lib/Target/AMDGPU/SIPostRABundler.cpp

//===-- SIPostRABundler.cpp -----------------------------------------------===//
//
// 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 pass creates bundles of memory instructions to protect adjacent loads
/// and stores from being rescheduled apart from each other post-RA.
///
//===----------------------------------------------------------------------===//

#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/CodeGen/MachineFunctionPass.h"

usingnamespacellvm;

#define DEBUG_TYPE

namespace {

class SIPostRABundler : public MachineFunctionPass {};

constexpr uint64_t MemFlags =;

} // End anonymous namespace.

INITIALIZE_PASS()

char SIPostRABundler::ID =;

char &llvm::SIPostRABundlerID =;

FunctionPass *llvm::createSIPostRABundlerPass() {}

bool SIPostRABundler::isDependentLoad(const MachineInstr &MI) const {}

void SIPostRABundler::collectUsedRegUnits(const MachineInstr &MI,
                                          BitVector &UsedRegUnits) const {}

bool SIPostRABundler::isBundleCandidate(const MachineInstr &MI) const {}

bool SIPostRABundler::canBundle(const MachineInstr &MI,
                                const MachineInstr &NextMI) const {}

bool SIPostRABundler::runOnMachineFunction(MachineFunction &MF) {}