LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
llvm::MachineInstrExpressionTrait Struct Reference

#include <MachineInstr.h>

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

Static Public Member Functions

static MachineInstrgetEmptyKey ()
 
static MachineInstrgetTombstoneKey ()
 
static unsigned getHashValue (const MachineInstr *const &MI)
 
static bool isEqual (const MachineInstr *const &LHS, const MachineInstr *const &RHS)
 

Detailed Description

MachineInstrExpressionTrait - 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 1047 of file MachineInstr.h.

Member Function Documentation

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

Definition at line 1048 of file MachineInstr.h.

Referenced by isEqual().

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

Definition at line 1052 of file MachineInstr.h.

Referenced by 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: