LLVM 20.0.0git
Namespaces | Macros | Functions
RISCVCustomBehaviour.cpp File Reference

This file implements methods from the RISCVCustomBehaviour class. More...

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

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::mca
 

Macros

#define DEBUG_TYPE   "llvm-mca-riscv-custombehaviour"
 

Functions

static std::pair< uint8_t, uint8_t > llvm::mca::getEEWAndEMUL (unsigned Opcode, RISCVII::VLMUL LMUL, uint8_t SEW)
 
bool llvm::mca::opcodeHasEEWAndEMULInfo (unsigned short Opcode)
 
static InstrumentManagercreateRISCVInstrumentManager (const MCSubtargetInfo &STI, const MCInstrInfo &MCII)
 
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVTargetMCA ()
 Extern function to initialize the targets for the RISC-V backend.
 

Detailed Description

This file implements methods from the RISCVCustomBehaviour class.

Definition in file RISCVCustomBehaviour.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "llvm-mca-riscv-custombehaviour"

Definition at line 21 of file RISCVCustomBehaviour.cpp.

Function Documentation

◆ createRISCVInstrumentManager()

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

Definition at line 291 of file RISCVCustomBehaviour.cpp.

Referenced by LLVMInitializeRISCVTargetMCA().

◆ LLVMInitializeRISCVTargetMCA()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVTargetMCA ( )

Extern function to initialize the targets for the RISC-V backend.

Definition at line 297 of file RISCVCustomBehaviour.cpp.

References createRISCVInstrumentManager(), llvm::getTheRISCV32Target(), llvm::getTheRISCV64Target(), and llvm::TargetRegistry::RegisterInstrumentManager().