LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::DeadArgumentEliminationPass::RetOrArg Struct Reference

Struct that represents (part of) either a return value or a function argument. More...

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

Collaboration diagram for llvm::DeadArgumentEliminationPass::RetOrArg:
Collaboration graph
[legend]

Public Member Functions

 RetOrArg (const Function *F, unsigned Idx, bool IsArg)
 
bool operator< (const RetOrArg &O) const
 Make RetOrArg comparable, so we can put it into a map. More...
 
bool operator== (const RetOrArg &O) const
 Make RetOrArg comparable, so we can easily iterate the multimap. More...
 
std::string getDescription () const
 

Public Attributes

const FunctionF
 
unsigned Idx
 
bool IsArg
 

Detailed Description

Struct that represents (part of) either a return value or a function argument.

Used so that arguments and return values can be used interchangeably.

Definition at line 45 of file DeadArgumentElimination.h.

Constructor & Destructor Documentation

◆ RetOrArg()

llvm::DeadArgumentEliminationPass::RetOrArg::RetOrArg ( const Function F,
unsigned  Idx,
bool  IsArg 
)
inline

Member Function Documentation

◆ getDescription()

std::string llvm::DeadArgumentEliminationPass::RetOrArg::getDescription ( ) const
inline

Definition at line 63 of file DeadArgumentElimination.h.

References llvm::Value::getName().

◆ operator<()

bool llvm::DeadArgumentEliminationPass::RetOrArg::operator< ( const RetOrArg O) const
inline

Make RetOrArg comparable, so we can put it into a map.

Definition at line 54 of file DeadArgumentElimination.h.

References F, Idx, and IsArg.

◆ operator==()

bool llvm::DeadArgumentEliminationPass::RetOrArg::operator== ( const RetOrArg O) const
inline

Make RetOrArg comparable, so we can easily iterate the multimap.

Definition at line 59 of file DeadArgumentElimination.h.

References F, Idx, and IsArg.

Member Data Documentation

◆ F

const Function* llvm::DeadArgumentEliminationPass::RetOrArg::F

Definition at line 46 of file DeadArgumentElimination.h.

Referenced by operator<(), and operator==().

◆ Idx

unsigned llvm::DeadArgumentEliminationPass::RetOrArg::Idx

Definition at line 47 of file DeadArgumentElimination.h.

Referenced by operator<(), and operator==().

◆ IsArg

bool llvm::DeadArgumentEliminationPass::RetOrArg::IsArg

Definition at line 48 of file DeadArgumentElimination.h.

Referenced by operator<(), and operator==().


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