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

Inherits from: TypedInit

Member Variables

Inherited from Init:

protected Opc

Method Overview

Inherited from TypedInit:

Inherited from Init:

Methods

IntInit(const llvm::IntInit&)

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

Parameters

const llvm::IntInit&

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

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

Parameters

const llvm::Init* I

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

Description

This method is used to implement the bitrange selection operator. Given an initializer, it selects the specified bits out, returning them as a new init of bits type. If it is not legal to use the bit subscript operator on this initializer, return null.

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

Parameters

ArrayRef<unsigned int> Bits

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

Parameters

llvm::RecTy* Ty

static llvm::IntInit* get(int64_t V)

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

Parameters

int64_t V

std::string getAsString() const

Description

Convert this value to a string form.

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

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

Parameters

unsigned int Bit

int64_t getValue() const

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

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