class IntInit

Declaration

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

Description

'7' - Represent an initialization by a literal integer value.

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

Inherits from: TypedInit

Member Variables

private int64_t Value

Inherited from Init:

protected Opc

Method Overview

Inherited from TypedInit:

Inherited from Init:

Methods

IntInit(llvm::RecordKeeper& RK, int64_t V)

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

Parameters

llvm::RecordKeeper& RK
int64_t V

IntInit(const llvm::IntInit&)

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

Parameters

const llvm::IntInit&

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

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

Parameters

const llvm::Init* I

llvm::Init* convertInitializerBitRange(
    ArrayRef<unsigned int> Bits) const

Description

This function is used to implement the bit range selection operator. Given a value, it selects the specified bits, returning them as a new \p Init of type \p bits. If it is not legal to use the bit selection operator on this value, null is returned.

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

Parameters

ArrayRef<unsigned int> Bits

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

Parameters

llvm::RecTy* Ty

static llvm::IntInit* get(llvm::RecordKeeper& RK,
                          int64_t V)

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

Parameters

llvm::RecordKeeper& RK
int64_t V

std::string getAsString() const

Description

Convert this value to a literal form.

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

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

Parameters

unsigned int Bit

int64_t getValue() const

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

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