LLVM 22.0.0git
llvm::wholeprogramdevirt::VirtualCallTarget Struct Reference

#include "llvm/Transforms/IPO/WholeProgramDevirt.h"

Public Member Functions

LLVM_ABI VirtualCallTarget (GlobalValue *Fn, const TypeMemberInfo *TM)
 VirtualCallTarget (const TypeMemberInfo *TM, bool IsBigEndian)
uint64_t minBeforeBytes () const
uint64_t minAfterBytes () const
uint64_t allocatedBeforeBytes () const
uint64_t allocatedAfterBytes () const
void setBeforeBit (uint64_t Pos)
void setAfterBit (uint64_t Pos)
void setBeforeBytes (uint64_t Pos, uint8_t Size)
void setAfterBytes (uint64_t Pos, uint8_t Size)

Public Attributes

GlobalValueFn
const TypeMemberInfoTM
uint64_t RetVal
bool IsBigEndian
bool WasDevirt

Detailed Description

Definition at line 121 of file WholeProgramDevirt.h.

Constructor & Destructor Documentation

◆ VirtualCallTarget() [1/2]

VirtualCallTarget::VirtualCallTarget ( GlobalValue * Fn,
const TypeMemberInfo * TM )

Definition at line 351 of file WholeProgramDevirt.cpp.

References Fn, IsBigEndian, isBigEndian(), TM, and WasDevirt.

◆ VirtualCallTarget() [2/2]

llvm::wholeprogramdevirt::VirtualCallTarget::VirtualCallTarget ( const TypeMemberInfo * TM,
bool IsBigEndian )
inline

Definition at line 125 of file WholeProgramDevirt.h.

References Fn, IsBigEndian, TM, and WasDevirt.

Member Function Documentation

◆ allocatedAfterBytes()

uint64_t llvm::wholeprogramdevirt::VirtualCallTarget::allocatedAfterBytes ( ) const
inline

Definition at line 166 of file WholeProgramDevirt.h.

References minAfterBytes(), and TM.

◆ allocatedBeforeBytes()

uint64_t llvm::wholeprogramdevirt::VirtualCallTarget::allocatedBeforeBytes ( ) const
inline

Definition at line 160 of file WholeProgramDevirt.h.

References minBeforeBytes(), and TM.

◆ minAfterBytes()

uint64_t llvm::wholeprogramdevirt::VirtualCallTarget::minAfterBytes ( ) const
inline

Definition at line 156 of file WholeProgramDevirt.h.

References TM.

Referenced by allocatedAfterBytes(), setAfterBit(), and setAfterBytes().

◆ minBeforeBytes()

uint64_t llvm::wholeprogramdevirt::VirtualCallTarget::minBeforeBytes ( ) const
inline

Definition at line 149 of file WholeProgramDevirt.h.

References TM.

Referenced by allocatedBeforeBytes(), setBeforeBit(), and setBeforeBytes().

◆ setAfterBit()

void llvm::wholeprogramdevirt::VirtualCallTarget::setAfterBit ( uint64_t Pos)
inline

Definition at line 177 of file WholeProgramDevirt.h.

References assert(), minAfterBytes(), RetVal, and TM.

◆ setAfterBytes()

void llvm::wholeprogramdevirt::VirtualCallTarget::setAfterBytes ( uint64_t Pos,
uint8_t Size )
inline

Definition at line 194 of file WholeProgramDevirt.h.

References assert(), IsBigEndian, minAfterBytes(), RetVal, Size, and TM.

◆ setBeforeBit()

void llvm::wholeprogramdevirt::VirtualCallTarget::setBeforeBit ( uint64_t Pos)
inline

Definition at line 171 of file WholeProgramDevirt.h.

References assert(), minBeforeBytes(), RetVal, and TM.

◆ setBeforeBytes()

void llvm::wholeprogramdevirt::VirtualCallTarget::setBeforeBytes ( uint64_t Pos,
uint8_t Size )
inline

Definition at line 185 of file WholeProgramDevirt.h.

References assert(), IsBigEndian, minBeforeBytes(), RetVal, Size, and TM.

Member Data Documentation

◆ Fn

GlobalValue* llvm::wholeprogramdevirt::VirtualCallTarget::Fn

Definition at line 129 of file WholeProgramDevirt.h.

Referenced by VirtualCallTarget(), and VirtualCallTarget().

◆ IsBigEndian

bool llvm::wholeprogramdevirt::VirtualCallTarget::IsBigEndian

◆ RetVal

uint64_t llvm::wholeprogramdevirt::VirtualCallTarget::RetVal

Definition at line 137 of file WholeProgramDevirt.h.

Referenced by setAfterBit(), setAfterBytes(), setBeforeBit(), and setBeforeBytes().

◆ TM

◆ WasDevirt

bool llvm::wholeprogramdevirt::VirtualCallTarget::WasDevirt

Definition at line 143 of file WholeProgramDevirt.h.

Referenced by VirtualCallTarget(), and VirtualCallTarget().


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