LLVM  4.0.0
Public Member Functions | Public Attributes | List of all members
llvm::consthoist::ConstantCandidate Struct Reference

Keeps track of a constant candidate and its uses. More...

#include <ConstantHoisting.h>

Collaboration diagram for llvm::consthoist::ConstantCandidate:
[legend]

Public Member Functions

 ConstantCandidate (ConstantInt *ConstInt)
 
void addUser (Instruction *Inst, unsigned Idx, unsigned Cost)
 Add the user to the use list and update the cost. More...
 

Public Attributes

ConstantUseListType Uses
 
ConstantIntConstInt
 
unsigned CumulativeCost
 

Detailed Description

Keeps track of a constant candidate and its uses.

Definition at line 61 of file ConstantHoisting.h.

Constructor & Destructor Documentation

llvm::consthoist::ConstantCandidate::ConstantCandidate ( ConstantInt ConstInt)
inline

Definition at line 66 of file ConstantHoisting.h.

Member Function Documentation

void llvm::consthoist::ConstantCandidate::addUser ( Instruction Inst,
unsigned  Idx,
unsigned  Cost 
)
inline

Add the user to the use list and update the cost.

Definition at line 70 of file ConstantHoisting.h.

References CumulativeCost, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), and Uses.

Member Data Documentation

ConstantInt* llvm::consthoist::ConstantCandidate::ConstInt

Definition at line 63 of file ConstantHoisting.h.

unsigned llvm::consthoist::ConstantCandidate::CumulativeCost

Definition at line 64 of file ConstantHoisting.h.

Referenced by addUser().

ConstantUseListType llvm::consthoist::ConstantCandidate::Uses

Definition at line 62 of file ConstantHoisting.h.

Referenced by addUser().


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