class PredicateBitsetImpl

Declaration

template <std::size_t MaxPredicates>
class PredicateBitsetImpl { /* full declaration omitted */ };

Description

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.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h:62

Templates

std::size_t MaxPredicates

Method Overview

Methods

PredicateBitsetImpl<MaxPredicates>()

Declared at: llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h:65

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

Declared at: llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h:67

Parameters

const std::bitset<MaxPredicates>& B

PredicateBitsetImpl<MaxPredicates>(
    std::initializer_list<unsigned int> Init)

Declared at: llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h:70

Parameters

std::initializer_list<unsigned int> Init