LLVM  15.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

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)

Definition at line 43 of file HexagonShuffler.h.

References s, and setUnits().

Member Function Documentation

◆ getUnits()

unsigned llvm::HexagonResource::getUnits ( ) const

Definition at line 55 of file HexagonShuffler.h.

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

◆ getWeight()

unsigned llvm::HexagonResource::getWeight ( ) const

Definition at line 56 of file HexagonShuffler.h.

◆ lessUnits()

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

Definition at line 59 of file HexagonShuffler.h.

References B, and llvm::countPopulation().

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

◆ lessWeight()

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

Definition at line 64 of file HexagonShuffler.h.

References B.

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

◆ setAllUnits()

void llvm::HexagonResource::setAllUnits ( )

Definition at line 50 of file HexagonShuffler.h.

References HEXAGON_PACKET_SIZE, and setUnits().

◆ setUnits()

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

◆ setWeight()

unsigned HexagonResource::setWeight ( unsigned  s)

Definition at line 90 of file HexagonShuffler.cpp.

References llvm::countPopulation(), llvm::countTrailingZeros(), getUnits(), and s.

Referenced by setUnits().

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