class ListInit

Declaration

class ListInit : public TypedInit, public Node, public TrailingObjects { /* full declaration omitted */ };

Description

[AL, AH, CL] - Represent a list of defs

Declared at: llvm/include/llvm/TableGen/Record.h:661

Inherits from: TypedInit, FoldingSetBase::Node, TrailingObjects

Member Variables

Inherited from Init:

protected Opc

Method Overview

  • public ListInit(const llvm::ListInit &)
  • public void Profile(llvm::FoldingSetNodeID & ID) const
  • public llvm::ListInit::const_iterator begin() const
  • public static bool classof(const llvm::Init * I)
  • public llvm::Init * convertInitListSlice(ArrayRef<unsigned int> Elements) const
  • public llvm::Init * convertInitializerTo(llvm::RecTy * Ty) const
  • public bool empty() const
  • public llvm::ListInit::const_iterator end() const
  • public static llvm::ListInit * get(ArrayRef<llvm::Init *> Range, llvm::RecTy * EltTy)
  • public std::string getAsString() const
  • public llvm::Init * getBit(unsigned int Bit) const
  • public llvm::Init * getElement(unsigned int i) const
  • public llvm::Record * getElementAsRecord(unsigned int i) const
  • public llvm::RecTy * getElementType() const
  • public ArrayRef<llvm::Init *> getValues() const
  • public bool isConcrete() const
  • public llvm::Init * resolveReferences(llvm::Resolver & R) const
  • public size_t size() const

Inherited from FoldingSetBase::Node:

Inherited from TypedInit:

Inherited from Init:

Methods

ListInit(const llvm::ListInit&)

Declared at: llvm/include/llvm/TableGen/Record.h:673

Parameters

const llvm::ListInit&

void Profile(llvm::FoldingSetNodeID& ID) const

Declared at: llvm/include/llvm/TableGen/Record.h:684

Parameters

llvm::FoldingSetNodeID& ID

llvm::ListInit::const_iterator begin() const

Declared at: llvm/include/llvm/TableGen/Record.h:714

static bool classof(const llvm::Init* I)

Declared at: llvm/include/llvm/TableGen/Record.h:679

Parameters

const llvm::Init* I

llvm::Init* convertInitListSlice(
    ArrayRef<unsigned int> Elements) const

Description

This method is used to implement the list slice selection operator. Given an initializer, it selects the specified list elements, returning them as a new init of list type. If it is not legal to take a slice of this, return null.

Declared at: llvm/include/llvm/TableGen/Record.h:696

Parameters

ArrayRef<unsigned int> Elements

llvm::Init* convertInitializerTo(
    llvm::RecTy* Ty) const

Description

Convert to an initializer whose type is-a Ty, or return nullptr if this is not possible (this can happen if the initializer's type is convertible to Ty, but there are unresolved references).

Declared at: llvm/include/llvm/TableGen/Record.h:698

Parameters

llvm::RecTy* Ty

bool empty() const

Declared at: llvm/include/llvm/TableGen/Record.h:718

llvm::ListInit::const_iterator end() const

Declared at: llvm/include/llvm/TableGen/Record.h:715

static llvm::ListInit* get(
    ArrayRef<llvm::Init*> Range,
    llvm::RecTy* EltTy)

Declared at: llvm/include/llvm/TableGen/Record.h:682

Parameters

ArrayRef<llvm::Init*> Range
llvm::RecTy* EltTy

std::string getAsString() const

Description

Convert this value to a string form.

Declared at: llvm/include/llvm/TableGen/Record.h:708

llvm::Init* getBit(unsigned int Bit) const

Description

This method is used to return the initializer for the specified bit.

Declared at: llvm/include/llvm/TableGen/Record.h:720

Parameters

unsigned int Bit

llvm::Init* getElement(unsigned int i) const

Declared at: llvm/include/llvm/TableGen/Record.h:686

Parameters

unsigned int i

llvm::Record* getElementAsRecord(
    unsigned int i) const

Declared at: llvm/include/llvm/TableGen/Record.h:694

Parameters

unsigned int i

llvm::RecTy* getElementType() const

Declared at: llvm/include/llvm/TableGen/Record.h:690

ArrayRef<llvm::Init*> getValues() const

Declared at: llvm/include/llvm/TableGen/Record.h:710

bool isConcrete() const

Description

Is this a concrete and fully resolved value without any references or stuck operations? Unset values are concrete.

Declared at: llvm/include/llvm/TableGen/Record.h:707

llvm::Init* resolveReferences(
    llvm::Resolver& R) const

Description

This method is used by classes that refer to other variables which may not be defined at the time they expression is formed. If a value is set for the variable later, this method will be called on users of the value to allow the value to propagate out.

Declared at: llvm/include/llvm/TableGen/Record.h:705

Parameters

llvm::Resolver& R

size_t size() const

Declared at: llvm/include/llvm/TableGen/Record.h:717