Yul codegen for immutables.

This commit is contained in:
chriseth
2020-05-04 15:00:50 +02:00
parent debcc8c056
commit 51ccb1519f
11 changed files with 166 additions and 31 deletions
+6 -2
View File
@@ -35,6 +35,10 @@ struct IRLValue
{
IRVariable variable;
};
struct Immutable
{
VariableDeclaration const* variable = nullptr;
};
struct Storage
{
std::string const slot;
@@ -59,7 +63,7 @@ struct IRLValue
{
std::vector<std::optional<IRLValue>> components;
};
std::variant<Stack, Storage, Memory, Tuple> kind;
std::variant<Stack, Immutable, Storage, Memory, Tuple> kind;
};
}
}