Renamed AssemblyStack to YulStack

All files, references, variables, comments, etc. were renamed to YulStack.
This commit is contained in:
Joshua Quinones
2022-04-08 20:28:55 +02:00
committed by Kamil Śliwak
parent 15c2a33eb3
commit e1a59397c6
30 changed files with 148 additions and 148 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
#include <libsolidity/interface/CompilerStack.h>
#include <libyul/AssemblyStack.h>
#include <libyul/YulStack.h>
#include <libsolutil/Keccak256.h>
+1 -1
View File
@@ -35,7 +35,7 @@ bytes YulAssembler::assemble()
if (m_optimiseYul)
m_stack.optimize();
return m_stack.assemble(AssemblyStack::Machine::EVM).bytecode->bytecode;
return m_stack.assemble(YulStack::Machine::EVM).bytecode->bytecode;
}
evmc::result YulEvmoneUtility::deployCode(bytes const& _input, EVMHost& _host)
+3 -3
View File
@@ -19,7 +19,7 @@
#include <test/EVMHost.h>
#include <libyul/AssemblyStack.h>
#include <libyul/YulStack.h>
#include <libsolidity/interface/OptimiserSettings.h>
@@ -37,7 +37,7 @@ public:
):
m_stack(
_version,
solidity::yul::AssemblyStack::Language::StrictAssembly,
solidity::yul::YulStack::Language::StrictAssembly,
_optSettings,
langutil::DebugInfoSelection::All()
),
@@ -46,7 +46,7 @@ public:
{}
solidity::bytes assemble();
private:
solidity::yul::AssemblyStack m_stack;
solidity::yul::YulStack m_stack;
std::string m_yulProgram;
bool m_optimiseYul;
};
@@ -16,7 +16,7 @@
*/
// SPDX-License-Identifier: GPL-3.0
#include <libyul/AssemblyStack.h>
#include <libyul/YulStack.h>
#include <libyul/backends/evm/EVMCodeTransform.h>
#include <liblangutil/DebugInfoSelection.h>
@@ -37,9 +37,9 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* _data, size_t _size)
YulStringRepository::reset();
string input(reinterpret_cast<char const*>(_data), _size);
AssemblyStack stack(
YulStack stack(
langutil::EVMVersion(),
AssemblyStack::Language::StrictAssembly,
YulStack::Language::StrictAssembly,
solidity::frontend::OptimiserSettings::full(),
langutil::DebugInfoSelection::All()
);
@@ -49,7 +49,7 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* _data, size_t _size)
try
{
MachineAssemblyObject obj = stack.assemble(AssemblyStack::Machine::EVM);
MachineAssemblyObject obj = stack.assemble(YulStack::Machine::EVM);
solAssert(obj.bytecode, "");
}
catch (StackTooDeepError const&)
@@ -20,7 +20,7 @@
#include <libyul/AsmAnalysis.h>
#include <libyul/Dialect.h>
#include <libyul/backends/evm/EVMDialect.h>
#include <libyul/AssemblyStack.h>
#include <libyul/YulStack.h>
#include <liblangutil/DebugInfoSelection.h>
#include <liblangutil/Exceptions.h>
@@ -60,9 +60,9 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* _data, size_t _size)
YulStringRepository::reset();
AssemblyStack stack(
YulStack stack(
langutil::EVMVersion(),
AssemblyStack::Language::StrictAssembly,
YulStack::Language::StrictAssembly,
solidity::frontend::OptimiserSettings::full(),
DebugInfoSelection::All()
);
+3 -3
View File
@@ -16,7 +16,7 @@
*/
// SPDX-License-Identifier: GPL-3.0
#include <libyul/AssemblyStack.h>
#include <libyul/YulStack.h>
#include <liblangutil/DebugInfoSelection.h>
#include <liblangutil/EVMVersion.h>
@@ -38,9 +38,9 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* _data, size_t _size)
YulStringRepository::reset();
string input(reinterpret_cast<char const*>(_data), _size);
AssemblyStack stack(
YulStack stack(
langutil::EVMVersion(),
AssemblyStack::Language::StrictAssembly,
YulStack::Language::StrictAssembly,
solidity::frontend::OptimiserSettings::full(),
DebugInfoSelection::All()
);
+4 -4
View File
@@ -25,7 +25,7 @@
#include <test/libyul/YulOptimizerTestCommon.h>
#include <libyul/AssemblyStack.h>
#include <libyul/YulStack.h>
#include <libyul/Exceptions.h>
#include <libyul/backends/evm/EVMDialect.h>
@@ -61,10 +61,10 @@ DEFINE_PROTO_FUZZER(Program const& _input)
YulStringRepository::reset();
// AssemblyStack entry point
AssemblyStack stack(
// YulStack entry point
YulStack stack(
version,
AssemblyStack::Language::StrictAssembly,
YulStack::Language::StrictAssembly,
solidity::frontend::OptimiserSettings::full(),
DebugInfoSelection::All()
);
+4 -4
View File
@@ -26,7 +26,7 @@
#include <src/libfuzzer/libfuzzer_macro.h>
#include <libyul/AssemblyStack.h>
#include <libyul/YulStack.h>
#include <libyul/backends/evm/EVMDialect.h>
#include <libyul/Exceptions.h>
@@ -60,10 +60,10 @@ DEFINE_PROTO_FUZZER(Program const& _input)
YulStringRepository::reset();
// AssemblyStack entry point
AssemblyStack stack(
// YulStack entry point
YulStack stack(
version,
AssemblyStack::Language::StrictAssembly,
YulStack::Language::StrictAssembly,
solidity::frontend::OptimiserSettings::full(),
DebugInfoSelection::All()
);