LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::InstCombineWorklist Class Reference

InstCombineWorklist - This is the worklist management logic for InstCombine. More...

#include "llvm/Transforms/InstCombine/InstCombineWorklist.h"

Public Member Functions

 InstCombineWorklist ()=default
 
 InstCombineWorklist (InstCombineWorklist &&)=default
 
InstCombineWorklistoperator= (InstCombineWorklist &&)=default
 
bool isEmpty () const
 
void Add (Instruction *I)
 Add - Add the specified instruction to the worklist if it isn't already in it. More...
 
void AddValue (Value *V)
 
void AddInitialGroup (ArrayRef< Instruction *> List)
 AddInitialGroup - Add the specified batch of stuff in reverse order. More...
 
void Remove (Instruction *I)
 
InstructionRemoveOne ()
 
void AddUsersToWorkList (Instruction &I)
 AddUsersToWorkList - When an instruction is simplified, add all users of the instruction to the work lists because they might get more simplified now. More...
 
void Zap ()
 Zap - check that the worklist is empty and nuke the backing store for the map if it is large. More...
 

Detailed Description

InstCombineWorklist - This is the worklist management logic for InstCombine.

Definition at line 27 of file InstCombineWorklist.h.

Constructor & Destructor Documentation

◆ InstCombineWorklist() [1/2]

llvm::InstCombineWorklist::InstCombineWorklist ( )
default

◆ InstCombineWorklist() [2/2]

llvm::InstCombineWorklist::InstCombineWorklist ( InstCombineWorklist &&  )
default

Member Function Documentation

◆ Add()

void llvm::InstCombineWorklist::Add ( Instruction I)
inline

◆ AddInitialGroup()

void llvm::InstCombineWorklist::AddInitialGroup ( ArrayRef< Instruction *>  List)
inline

◆ AddUsersToWorkList()

void llvm::InstCombineWorklist::AddUsersToWorkList ( Instruction I)
inline

AddUsersToWorkList - When an instruction is simplified, add all users of the instruction to the work lists because they might get more simplified now.

Definition at line 89 of file InstCombineWorklist.h.

References Add(), and llvm::Value::users().

Referenced by llvm::InstCombiner::replaceInstUsesWith().

◆ AddValue()

void llvm::InstCombineWorklist::AddValue ( Value V)
inline

Definition at line 48 of file InstCombineWorklist.h.

References Add(), and I.

◆ isEmpty()

bool llvm::InstCombineWorklist::isEmpty ( ) const
inline

Definition at line 37 of file InstCombineWorklist.h.

References llvm::SmallVectorBase::empty().

◆ operator=()

InstCombineWorklist& llvm::InstCombineWorklist::operator= ( InstCombineWorklist &&  )
default

◆ Remove()

void llvm::InstCombineWorklist::Remove ( Instruction I)
inline

◆ RemoveOne()

Instruction* llvm::InstCombineWorklist::RemoveOne ( )
inline

◆ Zap()

void llvm::InstCombineWorklist::Zap ( )
inline

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