struct MachineInstrExpressionTrait

Declaration

struct MachineInstrExpressionTrait : public DenseMapInfo { /* full declaration omitted */ };

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.

Declared at: llvm/include/llvm/CodeGen/MachineInstr.h:1874

Inherits from: DenseMapInfo

Method Overview

  • public static inline llvm::MachineInstr * getEmptyKey()
  • public static unsigned int getHashValue(const llvm::MachineInstr *const & MI)
  • public static inline llvm::MachineInstr * getTombstoneKey()
  • public static bool isEqual(const llvm::MachineInstr *const & LHS, const llvm::MachineInstr *const & RHS)

Methods

static inline llvm::MachineInstr* getEmptyKey()

Declared at: llvm/include/llvm/CodeGen/MachineInstr.h:1875

static unsigned int getHashValue(
    const llvm::MachineInstr* const& MI)

Declared at: llvm/include/llvm/CodeGen/MachineInstr.h:1883

Parameters

const llvm::MachineInstr* const& MI

static inline llvm::MachineInstr*
getTombstoneKey()

Declared at: llvm/include/llvm/CodeGen/MachineInstr.h:1879

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

Declared at: llvm/include/llvm/CodeGen/MachineInstr.h:1885

Parameters

const llvm::MachineInstr* const& LHS
const llvm::MachineInstr* const& RHS