LLVM 20.0.0git
|
#include "llvm/CodeGen/GlobalISel/GISelWorkList.h"
Public Member Functions | |
GISelWorkList () | |
bool | empty () const |
unsigned | size () const |
void | deferred_insert (MachineInstr *I) |
void | finalize () |
void | insert (MachineInstr *I) |
Add the specified instruction to the worklist if it isn't already in it. | |
void | remove (const MachineInstr *I) |
Remove I from the worklist if it exists. | |
void | clear () |
MachineInstr * | pop_back_val () |
Definition at line 27 of file GISelWorkList.h.
|
inline |
Definition at line 36 of file GISelWorkList.h.
|
inline |
Definition at line 97 of file GISelWorkList.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::clear(), and llvm::SmallVectorImpl< T >::clear().
Referenced by llvm::Combiner::combineMachineInstrs(), and llvm::GISelCSEInfo::releaseMemory().
|
inline |
Definition at line 50 of file GISelWorkList.h.
References I, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
Referenced by llvm::Combiner::combineMachineInstrs(), and llvm::Legalizer::legalizeMachineFunction().
|
inline |
Definition at line 38 of file GISelWorkList.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::empty().
Referenced by llvm::MipsRegisterBankInfo::applyMappingImpl(), llvm::Combiner::combineMachineInstrs(), llvm::eraseInstrs(), llvm::GISelCSEInfo::handleRecordedInsts(), and llvm::Legalizer::legalizeMachineFunction().
|
inline |
Definition at line 61 of file GISelWorkList.h.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::empty(), llvm_unreachable, N, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::reserve(), llvm::SmallVectorBase< Size_T >::size(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::try_emplace().
Referenced by llvm::Combiner::combineMachineInstrs(), and llvm::Legalizer::legalizeMachineFunction().
|
inline |
Add the specified instruction to the worklist if it isn't already in it.
Definition at line 74 of file GISelWorkList.h.
References assert(), I, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SmallVectorBase< Size_T >::size(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::try_emplace().
Referenced by llvm::Combiner::WorkListMaintainerImpl< Lvl >::addUsersToWorkList(), llvm::Combiner::WorkListMaintainerImpl< Lvl >::appliedCombine(), llvm::Combiner::WorkListMaintainerImpl< Lvl >::changedInstr(), llvm::Combiner::WorkListMaintainerImpl< Lvl >::createdInstr(), llvm::Legalizer::legalizeMachineFunction(), llvm::GISelCSEInfo::recordNewInstruction(), and llvm::saveUsesAndErase().
|
inline |
Definition at line 102 of file GISelWorkList.h.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase(), I, and llvm::SmallVectorImpl< T >::pop_back_val().
Referenced by llvm::MipsRegisterBankInfo::applyMappingImpl(), llvm::Combiner::combineMachineInstrs(), llvm::eraseInstrs(), llvm::GISelCSEInfo::handleRecordedInsts(), and llvm::Legalizer::legalizeMachineFunction().
|
inline |
Remove I from the worklist if it exists.
Definition at line 83 of file GISelWorkList.h.
References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Referenced by llvm::Combiner::WorkListMaintainerImpl< Lvl >::erasingInstr(), llvm::GISelCSEInfo::handleRemoveInst(), and llvm::saveUsesAndErase().
|
inline |
Definition at line 40 of file GISelWorkList.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size().
Referenced by llvm::Legalizer::legalizeMachineFunction().