LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::HexagonResource Class Reference

#include "Target/Hexagon/MCTargetDesc/HexagonShuffler.h"

Inheritance diagram for llvm::HexagonResource:
Inheritance graph
[legend]

Public Member Functions

 HexagonResource (unsigned s)
 
void setUnits (unsigned s)
 
void setAllUnits ()
 
unsigned setWeight (unsigned s)
 
unsigned getUnits () const
 
unsigned getWeight () const
 

Static Public Member Functions

static bool lessUnits (const HexagonResource &A, const HexagonResource &B)
 
static bool lessWeight (const HexagonResource &A, const HexagonResource &B)
 

Detailed Description

Definition at line 37 of file HexagonShuffler.h.

Constructor & Destructor Documentation

◆ HexagonResource()

llvm::HexagonResource::HexagonResource ( unsigned  s)
inline

Definition at line 43 of file HexagonShuffler.h.

References setUnits().

Member Function Documentation

◆ getUnits()

unsigned llvm::HexagonResource::getUnits ( ) const
inline

Definition at line 55 of file HexagonShuffler.h.

Referenced by llvm::HexagonShuffler::restrictPreferSlot3(), and setWeight().

◆ getWeight()

unsigned llvm::HexagonResource::getWeight ( ) const
inline

Definition at line 56 of file HexagonShuffler.h.

◆ lessUnits()

static bool llvm::HexagonResource::lessUnits ( const HexagonResource A,
const HexagonResource B 
)
inlinestatic

Definition at line 59 of file HexagonShuffler.h.

References A, B, and llvm::popcount().

Referenced by llvm::HexagonInstr::lessCore(), and llvm::HexagonInstr::lessCVI().

◆ lessWeight()

static bool llvm::HexagonResource::lessWeight ( const HexagonResource A,
const HexagonResource B 
)
inlinestatic

Definition at line 64 of file HexagonShuffler.h.

References A, and B.

Referenced by llvm::HexagonInstr::operator<().

◆ setAllUnits()

void llvm::HexagonResource::setAllUnits ( )
inline

Definition at line 50 of file HexagonShuffler.h.

References HEXAGON_PACKET_SIZE, and setUnits().

◆ setUnits()

void llvm::HexagonResource::setUnits ( unsigned  s)
inline

◆ setWeight()

unsigned HexagonResource::setWeight ( unsigned  s)

Definition at line 91 of file HexagonShuffler.cpp.

References llvm::countr_zero(), getUnits(), and llvm::popcount().

Referenced by setUnits().


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