LLVM 17.0.0git
Public Member Functions | List of all members
llvm::PredicateBitsetImpl< MaxPredicates > Class Template Reference

Container class for CodeGen predicate results. More...

#include "llvm/CodeGen/GlobalISel/InstructionSelector.h"

Inheritance diagram for llvm::PredicateBitsetImpl< MaxPredicates >:
Inheritance graph

Public Member Functions

 PredicateBitsetImpl ()=default
 PredicateBitsetImpl (const std::bitset< MaxPredicates > &B)
 PredicateBitsetImpl (std::initializer_list< unsigned > Init)

Detailed Description

template<std::size_t MaxPredicates>
class llvm::PredicateBitsetImpl< MaxPredicates >

Container class for CodeGen predicate results.

This is convenient because std::bitset does not have a constructor with an initializer list of set bits.

Each InstructionSelector subclass should define a PredicateBitset class with: const unsigned MAX_SUBTARGET_PREDICATES = 192; using PredicateBitset = PredicateBitsetImpl<MAX_SUBTARGET_PREDICATES>; and updating the constant to suit the target. Tablegen provides a suitable definition for the predicates in use in <Target>GenGlobalISel.inc when GET_GLOBALISEL_PREDICATE_BITSET is defined.

Definition at line 62 of file InstructionSelector.h.

Constructor & Destructor Documentation

◆ PredicateBitsetImpl() [1/3]

template<std::size_t MaxPredicates>
llvm::PredicateBitsetImpl< MaxPredicates >::PredicateBitsetImpl ( )

◆ PredicateBitsetImpl() [2/3]

template<std::size_t MaxPredicates>
llvm::PredicateBitsetImpl< MaxPredicates >::PredicateBitsetImpl ( const std::bitset< MaxPredicates > &  B)

Definition at line 67 of file InstructionSelector.h.

◆ PredicateBitsetImpl() [3/3]

template<std::size_t MaxPredicates>
llvm::PredicateBitsetImpl< MaxPredicates >::PredicateBitsetImpl ( std::initializer_list< unsigned Init)

Definition at line 70 of file InstructionSelector.h.

References I.

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