Yul: Implement memory struct allocation

This commit is contained in:
Mathias Baumann
2020-07-02 16:37:20 +02:00
parent 3d602b3190
commit 50373ac1b0
11 changed files with 150 additions and 11 deletions
+6 -1
View File
@@ -286,8 +286,13 @@ public:
/// signature: (length) -> memPtr
std::string allocateAndInitializeMemoryArrayFunction(ArrayType const& _type);
/// @returns the name of a function that allocates a memory struct (no
/// initialization takes place).
/// signature: () -> memPtr
std::string allocateMemoryStructFunction(StructType const& _type);
/// @returns the name of a function that allocates and zeroes a memory struct.
/// signature: (members) -> memPtr
/// signature: () -> memPtr
std::string allocateAndInitializeMemoryStructFunction(StructType const& _type);
/// @returns the name of the function that converts a value of type @a _from