LLVM 20.0.0git
Public Member Functions | Friends | List of all members
llvm::ReachingDef Class Reference

Thin wrapper around "int" used to store reaching definitions, using an encoding that makes it compatible with TinyPtrVector. More...

#include "llvm/CodeGen/ReachingDefAnalysis.h"

Public Member Functions

 ReachingDef (std::nullptr_t)
 
 ReachingDef (int Instr)
 
 operator int () const
 

Friends

struct PointerLikeTypeTraits< ReachingDef >
 

Detailed Description

Thin wrapper around "int" used to store reaching definitions, using an encoding that makes it compatible with TinyPtrVector.

The 0th LSB is forced zero (and will be used for pointer union tagging), The 1st LSB is forced one (to make sure the value is non-zero).

Definition at line 40 of file ReachingDefAnalysis.h.

Constructor & Destructor Documentation

◆ ReachingDef() [1/2]

llvm::ReachingDef::ReachingDef ( std::nullptr_t  )
inline

Definition at line 46 of file ReachingDefAnalysis.h.

◆ ReachingDef() [2/2]

llvm::ReachingDef::ReachingDef ( int  Instr)
inline

Definition at line 47 of file ReachingDefAnalysis.h.

Member Function Documentation

◆ operator int()

llvm::ReachingDef::operator int ( ) const
inline

Definition at line 48 of file ReachingDefAnalysis.h.

Friends And Related Function Documentation

◆ PointerLikeTypeTraits< ReachingDef >

friend struct PointerLikeTypeTraits< ReachingDef >
friend

Definition at line 41 of file ReachingDefAnalysis.h.


The documentation for this class was generated from the following file: