LLVM  10.0.0
Static Public Member Functions | List of all members
llvm::MachineInstrExpressionTrait Struct Reference

Special DenseMapInfo traits to compare MachineInstr* by value of the instruction rather than by pointer value. More...

#include "llvm/CodeGen/MachineInstr.h"

Inheritance diagram for llvm::MachineInstrExpressionTrait:
[legend]
Collaboration diagram for llvm::MachineInstrExpressionTrait:
[legend]

Static Public Member Functions

static MachineInstr * getEmptyKey ()
 
static MachineInstr * getTombstoneKey ()
 
static unsigned getHashValue (const MachineInstr *const &MI)
 
static bool isEqual (const MachineInstr *const &LHS, const MachineInstr *const &RHS)
 

Detailed Description

Special DenseMapInfo traits to compare MachineInstr* by value of the instruction rather than by pointer value.

The hashing and equality testing functions ignore definitions so this is useful for CSE, etc.

Definition at line 1705 of file MachineInstr.h.

Member Function Documentation

◆ getEmptyKey()

static MachineInstr* llvm::MachineInstrExpressionTrait::getEmptyKey ( )
inlinestatic

Definition at line 1706 of file MachineInstr.h.

◆ getHashValue()

unsigned MachineInstrExpressionTrait::getHashValue ( const MachineInstr *const &  MI)
static

◆ getTombstoneKey()

static MachineInstr* llvm::MachineInstrExpressionTrait::getTombstoneKey ( )
inlinestatic

Definition at line 1710 of file MachineInstr.h.

References MI.

◆ isEqual()

static bool llvm::MachineInstrExpressionTrait::isEqual ( const MachineInstr *const &  LHS,
const MachineInstr *const &  RHS 
)
inlinestatic

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