Represents a value which can be a Register or a constant.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/Utils.h>

class RegOrConstant;

Description

This is useful in situations where an instruction may have an interesting register operand or interesting constant operand. For a concrete example,

Member Functions

Name

Description

RegOrConstant [constructor]

Constructors

getCst

Return the held constant; asserts if this holds a register.

getReg

Return the held register; asserts if this holds a constant.

isCst

Return true if this holds a constant.

isReg

Return true if this holds a register.

Non-Member Functions

Name

Description

getVectorSplat

Examples:

See Also

getVectorSplat.

Created with MrDocs