llvm/llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp

//===------------------- RISCVCustomBehaviour.cpp ---------------*-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 implements methods from the RISCVCustomBehaviour class.
///
//===----------------------------------------------------------------------===//

#include "RISCVCustomBehaviour.h"
#include "MCTargetDesc/RISCVMCTargetDesc.h"
#include "RISCV.h"
#include "TargetInfo/RISCVTargetInfo.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/Debug.h"

#define DEBUG_TYPE

namespace llvm {
namespace mca {

const llvm::StringRef RISCVLMULInstrument::DESC_NAME =;

bool RISCVLMULInstrument::isDataValid(llvm::StringRef Data) {}

uint8_t RISCVLMULInstrument::getLMUL() const {}

const llvm::StringRef RISCVSEWInstrument::DESC_NAME =;

bool RISCVSEWInstrument::isDataValid(llvm::StringRef Data) {}

uint8_t RISCVSEWInstrument::getSEW() const {}

bool RISCVInstrumentManager::supportsInstrumentType(
    llvm::StringRef Type) const {}

UniqueInstrument
RISCVInstrumentManager::createInstrument(llvm::StringRef Desc,
                                         llvm::StringRef Data) {}

SmallVector<UniqueInstrument>
RISCVInstrumentManager::createInstruments(const MCInst &Inst) {}

static std::pair<uint8_t, uint8_t>
getEEWAndEMUL(unsigned Opcode, RISCVII::VLMUL LMUL, uint8_t SEW) {}

bool opcodeHasEEWAndEMULInfo(unsigned short Opcode) {}

unsigned RISCVInstrumentManager::getSchedClassID(
    const MCInstrInfo &MCII, const MCInst &MCI,
    const llvm::SmallVector<Instrument *> &IVec) const {}

} // namespace mca
} // namespace llvm

usingnamespacellvm;
usingnamespacemca;

static InstrumentManager *
createRISCVInstrumentManager(const MCSubtargetInfo &STI,
                             const MCInstrInfo &MCII) {}

/// Extern function to initialize the targets for the RISC-V backend
extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVTargetMCA() {}