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:562

Method Overview

Methods

InstRef()

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

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

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

Parameters

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

llvm::mca::Instruction* getInstruction()

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

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

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

unsigned int getSourceIndex() const

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

void invalidate()

Description

Invalidate this reference.

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

bool operator bool() const

Description

Returns true if this references a valid instruction.

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

void print(llvm::raw_ostream& OS) const

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

Parameters

llvm::raw_ostream& OS