|
LLVM 24.0.0git
|
This class can be used to assign names to VPValues. More...
#include "Transforms/Vectorize/VPlanHelpers.h"
Public Member Functions | |
| VPSlotTracker (const VPlan *Plan=nullptr) | |
| std::string | getOrCreateName (const VPValue *V) const |
Returns the name assigned to V, if there is one, otherwise try to construct one from the underlying value, if there's one; else return <badref>. | |
| ArrayRef< StringRef > | getMDNames () |
| Returns the cached metadata kind names. | |
| void | printMetadataAsOperand (raw_ostream &O, const MDNode *N) |
Print a reference to metadata node N to O. | |
| const Module * | getModule () const |
| Returns the module the plan operates on, if any. | |
This class can be used to assign names to VPValues.
For VPValues without underlying value, assign consecutive numbers and use those as names (wrapped in vp<>). Otherwise, use the name from the underlying value (wrapped in ir<>), appending a .V version number if there are multiple uses of the same name. Allows querying names for VPValues for printing, similar to the ModuleSlotTracker for IR values.
Definition at line 398 of file VPlanHelpers.h.
Definition at line 427 of file VPlanHelpers.h.
References llvm::BasicBlock::getParent(), and llvm::VPlan::getScalarHeader().
Returns the cached metadata kind names.
Definition at line 443 of file VPlanHelpers.h.
References getModule().
Returns the module the plan operates on, if any.
Definition at line 454 of file VPlanHelpers.h.
Referenced by getMDNames(), and printMetadataAsOperand().
Returns the name assigned to V, if there is one, otherwise try to construct one from the underlying value, if there's one; else return <badref>.
Definition at line 1614 of file VPlan.cpp.
Referenced by llvm::VPValue::printAsOperand().
| void VPSlotTracker::printMetadataAsOperand | ( | raw_ostream & | O, |
| const MDNode * | N ) |
Print a reference to metadata node N to O.
Definition at line 1610 of file VPlan.cpp.
References getModule(), and N.