LLVM 22.0.0git
llvm::mca::Context Class Reference

#include "llvm/MCA/Context.h"

Public Member Functions

 Context (const MCRegisterInfo &R, const MCSubtargetInfo &S)
 Context (const Context &C)=delete
Contextoperator= (const Context &C)=delete
const MCRegisterInfogetMCRegisterInfo () const
const MCSubtargetInfogetMCSubtargetInfo () const
void addHardwareUnit (std::unique_ptr< HardwareUnit > H)
LLVM_ABI std::unique_ptr< PipelinecreateDefaultPipeline (const PipelineOptions &Opts, SourceMgr &SrcMgr, CustomBehaviour &CB)
 Construct a basic pipeline for simulating an out-of-order pipeline.
LLVM_ABI std::unique_ptr< PipelinecreateInOrderPipeline (const PipelineOptions &Opts, SourceMgr &SrcMgr, CustomBehaviour &CB)
 Construct a basic pipeline for simulating an in-order pipeline.

Detailed Description

Definition at line 52 of file Context.h.

Constructor & Destructor Documentation

◆ Context() [1/2]

llvm::mca::Context::Context ( const MCRegisterInfo & R,
const MCSubtargetInfo & S )
inline

Definition at line 58 of file Context.h.

Referenced by Context(), and operator=().

◆ Context() [2/2]

llvm::mca::Context::Context ( const Context & C)
delete

References llvm::CallingConv::C, and Context().

Member Function Documentation

◆ addHardwareUnit()

void llvm::mca::Context::addHardwareUnit ( std::unique_ptr< HardwareUnit > H)
inline

Definition at line 65 of file Context.h.

References H.

Referenced by createDefaultPipeline(), and createInOrderPipeline().

◆ createDefaultPipeline()

◆ createInOrderPipeline()

std::unique_ptr< Pipeline > llvm::mca::Context::createInOrderPipeline ( const PipelineOptions & Opts,
SourceMgr & SrcMgr,
CustomBehaviour & CB )

Construct a basic pipeline for simulating an in-order pipeline.

This pipeline consists of Fetch, InOrderIssue, and Retire stages.

Definition at line 73 of file Context.cpp.

References addHardwareUnit(), llvm::mca::PipelineOptions::AssumeNoAlias, llvm::mca::PipelineOptions::LoadQueueSize, llvm::mca::PipelineOptions::RegisterFileSize, llvm::SrcMgr, and llvm::mca::PipelineOptions::StoreQueueSize.

Referenced by createDefaultPipeline().

◆ getMCRegisterInfo()

const MCRegisterInfo & llvm::mca::Context::getMCRegisterInfo ( ) const
inline

Definition at line 62 of file Context.h.

◆ getMCSubtargetInfo()

const MCSubtargetInfo & llvm::mca::Context::getMCSubtargetInfo ( ) const
inline

Definition at line 63 of file Context.h.

◆ operator=()

Context & llvm::mca::Context::operator= ( const Context & C)
delete

References llvm::CallingConv::C, and Context().


The documentation for this class was generated from the following files: