class BitInit

Declaration

class BitInit : public TypedInit { /* full declaration omitted */ };

Description

'true'/'false' - Represent a concrete initializer for a bit.

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

Inherits from: TypedInit

Member Variables

private bool Value

Inherited from Init:

protected Opc

Method Overview

  • private BitInit(bool V, llvm::RecTy * T)
  • public BitInit(const llvm::BitInit &)
  • public static bool classof(const llvm::Init * I)
  • public llvm::Init * convertInitializerTo(llvm::RecTy * Ty) const
  • public static llvm::BitInit * get(llvm::RecordKeeper & RK, bool V)
  • public std::string getAsString() const
  • public llvm::Init * getBit(unsigned int Bit) const
  • public bool getValue() const
  • public bool isConcrete() const

Inherited from TypedInit:

Inherited from Init:

Methods

BitInit(bool V, llvm::RecTy* T)

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

Parameters

bool V
llvm::RecTy* T

BitInit(const llvm::BitInit&)

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

Parameters

const llvm::BitInit&

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

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

Parameters

const llvm::Init* I

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

Description

Convert to a value whose type is \p Ty, or return null if this is not possible. This can happen if the value's type is convertible to \p Ty, but there are unresolved references.

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

Parameters

llvm::RecTy* Ty

static llvm::BitInit* get(llvm::RecordKeeper& RK,
                          bool V)

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

Parameters

llvm::RecordKeeper& RK
bool V

std::string getAsString() const

Description

Convert this value to a literal form.

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

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

Description

Get the \p Init value of the specified bit.

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

Parameters

unsigned int Bit

bool getValue() const

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

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:521