|
hoshi-lang dev
Yet another programming language
|
#include <IR.h>

Classes | |
| union | operandValue |
Public Types | |
| enum class | operandType { unknown = 0 , integer , decimal , boolean , character , stringLiteral , codeBlock , index , shortInt , unsignedInt , localVar , globalVar , externVar , FINAL } |
Public Member Functions | |
| IROperand () | |
| IROperand (operandType type, operandValue value) | |
| IROperand (operandType type, std::shared_ptr< IRValueType > lvalueType) | |
| std::shared_ptr< IRValueType > | getLvalueType () |
| yoi::wstr | to_string () const |
Public Attributes | |
| enum yoi::IROperand::operandType | type |
| union yoi::IROperand::operandValue | value |
| std::shared_ptr< IRValueType > | lvalueType |
Static Public Attributes | |
| static enum_range< operandType > | IROperandTypeEnumRange |
|
strong |
| IROperand | ( | IROperand::operandType | type, |
| IROperand::operandValue | value | ||
| ) |
| IROperand | ( | IROperand::operandType | type, |
| std::shared_ptr< IRValueType > | lvalueType | ||
| ) |
| std::shared_ptr< IRValueType > getLvalueType | ( | ) |
Definition at line 37 of file IR.cpp.
References IROperand::lvalueType.
| yoi::wstr to_string | ( | ) | const |
Definition at line 41 of file IR.cpp.
References IROperand::boolean, IROperand::operandValue::boolean, IROperand::character, IROperand::operandValue::character, IROperand::codeBlock, IROperand::operandValue::codeBlockIndex, IROperand::decimal, IROperand::operandValue::decimal, IROperand::externVar, IROperand::globalVar, IROperand::index, IROperand::integer, IROperand::operandValue::integer, IROperand::localVar, IROperand::shortInt, IROperand::operandValue::shortV, IROperand::stringLiteral, IROperand::operandValue::stringLiteralIndex, IROperand::operandValue::symbolIndex, IROperand::type, IROperand::unsignedInt, IROperand::operandValue::unsignedV, and IROperand::value.
|
static |
| std::shared_ptr<IRValueType> lvalueType |
Definition at line 251 of file IR.h.
Referenced by IROperand::getLvalueType().
| enum yoi::IROperand::operandType type |
Referenced by IRBuilder::commitState(), IRBuilder::pushOp(), and IROperand::to_string().
| union yoi::IROperand::operandValue value |
Referenced by IRBuildConfig::Builder::setMarco(), and IROperand::to_string().