class InstRef

Declaration

class InstRef { /* full declaration omitted */ };

Description

An InstRef contains both a SourceMgr index and Instruction pair. The index is used as a unique identifier for the instruction. MCA will make use of this index as a key throughout MCA.

Declared at: llvm/include/llvm/MCA/Instruction.h:720

Member Variables

private std::pair<unsigned int, Instruction*> Data

Method Overview

Methods

InstRef()

Declared at: llvm/include/llvm/MCA/Instruction.h:724

InstRef(unsigned int Index,
        llvm::mca::Instruction* I)

Declared at: llvm/include/llvm/MCA/Instruction.h:725

Parameters

unsigned int Index
llvm::mca::Instruction* I

llvm::mca::Instruction* getInstruction()

Declared at: llvm/include/llvm/MCA/Instruction.h:734

const llvm::mca::Instruction* getInstruction()
    const

Declared at: llvm/include/llvm/MCA/Instruction.h:735

unsigned int getSourceIndex() const

Declared at: llvm/include/llvm/MCA/Instruction.h:733

void invalidate()

Description

Invalidate this reference.

Declared at: llvm/include/llvm/MCA/Instruction.h:741

bool operator bool() const

Description

Returns true if this references a valid instruction.

Declared at: llvm/include/llvm/MCA/Instruction.h:738

void print(llvm::raw_ostream& OS) const

Declared at: llvm/include/llvm/MCA/Instruction.h:744

Parameters

llvm::raw_ostream& OS