class RegOrConstant

Declaration

class RegOrConstant { /* full declaration omitted */ };

Description

Represents a value which can be a Register or a constant. This is useful in situations where an instruction may have an interesting register operand or interesting constant operand. For a concrete example,

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:351

Member Variables

private int64_t Cst
private llvm::Register Reg
private bool IsReg

Method Overview

Methods

RegOrConstant(llvm::Register Reg)

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:357

Parameters

llvm::Register Reg

RegOrConstant(int64_t Cst)

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:358

Parameters

int64_t Cst

int64_t getCst() const

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:365

llvm::Register getReg() const

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:361

bool isCst() const

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:360

bool isReg() const

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:359