LLVM 19.0.0git
Classes | 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"
#include "RISCVGenSearchableTables.inc"

Go to the source code of this file.

Classes

struct  RISCVVInversePseudosTable::PseudoInfo
 

Namespaces

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

Macros

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

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.

◆ GET_RISCVVInversePseudosTable_DECL

#define GET_RISCVVInversePseudosTable_DECL

Definition at line 38 of file RISCVCustomBehaviour.cpp.

◆ GET_RISCVVInversePseudosTable_IMPL

#define GET_RISCVVInversePseudosTable_IMPL

Definition at line 37 of file RISCVCustomBehaviour.cpp.

Function Documentation

◆ createRISCVInstrumentManager()

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

Definition at line 311 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 317 of file RISCVCustomBehaviour.cpp.

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