diff options
Diffstat (limited to 'libyul/optimiser')
48 files changed, 49 insertions, 49 deletions
diff --git a/libyul/optimiser/ASTCopier.cpp b/libyul/optimiser/ASTCopier.cpp index c3fe7778..4b7f21f8 100644 --- a/libyul/optimiser/ASTCopier.cpp +++ b/libyul/optimiser/ASTCopier.cpp @@ -28,7 +28,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; Statement ASTCopier::operator()(Instruction const&) { diff --git a/libyul/optimiser/ASTCopier.h b/libyul/optimiser/ASTCopier.h index ce9226a6..13369cef 100644 --- a/libyul/optimiser/ASTCopier.h +++ b/libyul/optimiser/ASTCopier.h @@ -31,7 +31,7 @@ namespace dev { -namespace julia +namespace yul { class ExpressionCopier: public boost::static_visitor<Expression> diff --git a/libyul/optimiser/ASTWalker.cpp b/libyul/optimiser/ASTWalker.cpp index 042d1f11..e29dda6b 100644 --- a/libyul/optimiser/ASTWalker.cpp +++ b/libyul/optimiser/ASTWalker.cpp @@ -26,7 +26,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; diff --git a/libyul/optimiser/ASTWalker.h b/libyul/optimiser/ASTWalker.h index b34559a3..41617d55 100644 --- a/libyul/optimiser/ASTWalker.h +++ b/libyul/optimiser/ASTWalker.h @@ -33,7 +33,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/CommonSubexpressionEliminator.cpp b/libyul/optimiser/CommonSubexpressionEliminator.cpp index 8bb4ca2e..23d15cad 100644 --- a/libyul/optimiser/CommonSubexpressionEliminator.cpp +++ b/libyul/optimiser/CommonSubexpressionEliminator.cpp @@ -29,7 +29,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; void CommonSubexpressionEliminator::visit(Expression& _e) { diff --git a/libyul/optimiser/CommonSubexpressionEliminator.h b/libyul/optimiser/CommonSubexpressionEliminator.h index 37cd80ff..f8aa0ee1 100644 --- a/libyul/optimiser/CommonSubexpressionEliminator.h +++ b/libyul/optimiser/CommonSubexpressionEliminator.h @@ -25,7 +25,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/DataFlowAnalyzer.cpp b/libyul/optimiser/DataFlowAnalyzer.cpp index 3300a2bd..ca1e5153 100644 --- a/libyul/optimiser/DataFlowAnalyzer.cpp +++ b/libyul/optimiser/DataFlowAnalyzer.cpp @@ -34,7 +34,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; void DataFlowAnalyzer::operator()(Assignment& _assignment) { diff --git a/libyul/optimiser/DataFlowAnalyzer.h b/libyul/optimiser/DataFlowAnalyzer.h index 054f6bd4..f998eadf 100644 --- a/libyul/optimiser/DataFlowAnalyzer.h +++ b/libyul/optimiser/DataFlowAnalyzer.h @@ -30,7 +30,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/Disambiguator.cpp b/libyul/optimiser/Disambiguator.cpp index 87da0391..af3507e1 100644 --- a/libyul/optimiser/Disambiguator.cpp +++ b/libyul/optimiser/Disambiguator.cpp @@ -27,7 +27,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; using Scope = dev::solidity::assembly::Scope; diff --git a/libyul/optimiser/Disambiguator.h b/libyul/optimiser/Disambiguator.h index f6b8fd46..0829fd58 100644 --- a/libyul/optimiser/Disambiguator.h +++ b/libyul/optimiser/Disambiguator.h @@ -34,7 +34,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/ExpressionInliner.cpp b/libyul/optimiser/ExpressionInliner.cpp index d4f7c4a4..9bf0a3fb 100644 --- a/libyul/optimiser/ExpressionInliner.cpp +++ b/libyul/optimiser/ExpressionInliner.cpp @@ -30,7 +30,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; void ExpressionInliner::run() diff --git a/libyul/optimiser/ExpressionInliner.h b/libyul/optimiser/ExpressionInliner.h index 99fa68c9..971a2ee0 100644 --- a/libyul/optimiser/ExpressionInliner.h +++ b/libyul/optimiser/ExpressionInliner.h @@ -30,7 +30,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/ExpressionJoiner.cpp b/libyul/optimiser/ExpressionJoiner.cpp index ebf01346..3dfab371 100644 --- a/libyul/optimiser/ExpressionJoiner.cpp +++ b/libyul/optimiser/ExpressionJoiner.cpp @@ -33,7 +33,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; void ExpressionJoiner::operator()(FunctionalInstruction& _instruction) diff --git a/libyul/optimiser/ExpressionJoiner.h b/libyul/optimiser/ExpressionJoiner.h index a7ae50bc..df18e58f 100644 --- a/libyul/optimiser/ExpressionJoiner.h +++ b/libyul/optimiser/ExpressionJoiner.h @@ -28,7 +28,7 @@ namespace dev { -namespace julia +namespace yul { class NameCollector; diff --git a/libyul/optimiser/ExpressionSimplifier.cpp b/libyul/optimiser/ExpressionSimplifier.cpp index 5d89cef0..c95fb3d5 100644 --- a/libyul/optimiser/ExpressionSimplifier.cpp +++ b/libyul/optimiser/ExpressionSimplifier.cpp @@ -29,7 +29,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; diff --git a/libyul/optimiser/ExpressionSimplifier.h b/libyul/optimiser/ExpressionSimplifier.h index d11cd5d6..1b9d6960 100644 --- a/libyul/optimiser/ExpressionSimplifier.h +++ b/libyul/optimiser/ExpressionSimplifier.h @@ -26,7 +26,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/ExpressionSplitter.cpp b/libyul/optimiser/ExpressionSplitter.cpp index e4e2739e..dab0545f 100644 --- a/libyul/optimiser/ExpressionSplitter.cpp +++ b/libyul/optimiser/ExpressionSplitter.cpp @@ -31,7 +31,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; void ExpressionSplitter::operator()(FunctionalInstruction& _instruction) diff --git a/libyul/optimiser/ExpressionSplitter.h b/libyul/optimiser/ExpressionSplitter.h index 89757df3..339acbf0 100644 --- a/libyul/optimiser/ExpressionSplitter.h +++ b/libyul/optimiser/ExpressionSplitter.h @@ -29,7 +29,7 @@ namespace dev { -namespace julia +namespace yul { class NameCollector; diff --git a/libyul/optimiser/FullInliner.cpp b/libyul/optimiser/FullInliner.cpp index 7af642be..4e419987 100644 --- a/libyul/optimiser/FullInliner.cpp +++ b/libyul/optimiser/FullInliner.cpp @@ -34,7 +34,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; FullInliner::FullInliner(Block& _ast): diff --git a/libyul/optimiser/FullInliner.h b/libyul/optimiser/FullInliner.h index ecf987f7..8112fb4b 100644 --- a/libyul/optimiser/FullInliner.h +++ b/libyul/optimiser/FullInliner.h @@ -35,7 +35,7 @@ namespace dev { -namespace julia +namespace yul { class NameCollector; diff --git a/libyul/optimiser/FunctionGrouper.cpp b/libyul/optimiser/FunctionGrouper.cpp index cbdd215f..3d2e5322 100644 --- a/libyul/optimiser/FunctionGrouper.cpp +++ b/libyul/optimiser/FunctionGrouper.cpp @@ -27,7 +27,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; diff --git a/libyul/optimiser/FunctionGrouper.h b/libyul/optimiser/FunctionGrouper.h index 57279c16..63cfbfb1 100644 --- a/libyul/optimiser/FunctionGrouper.h +++ b/libyul/optimiser/FunctionGrouper.h @@ -25,7 +25,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/FunctionHoister.cpp b/libyul/optimiser/FunctionHoister.cpp index 99525494..c196dead 100644 --- a/libyul/optimiser/FunctionHoister.cpp +++ b/libyul/optimiser/FunctionHoister.cpp @@ -29,7 +29,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; void FunctionHoister::operator()(Block& _block) diff --git a/libyul/optimiser/FunctionHoister.h b/libyul/optimiser/FunctionHoister.h index 80d55703..823b9e2b 100644 --- a/libyul/optimiser/FunctionHoister.h +++ b/libyul/optimiser/FunctionHoister.h @@ -27,7 +27,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/InlinableExpressionFunctionFinder.cpp b/libyul/optimiser/InlinableExpressionFunctionFinder.cpp index e6332f3a..69dd2095 100644 --- a/libyul/optimiser/InlinableExpressionFunctionFinder.cpp +++ b/libyul/optimiser/InlinableExpressionFunctionFinder.cpp @@ -26,7 +26,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; void InlinableExpressionFunctionFinder::operator()(Identifier const& _identifier) { diff --git a/libyul/optimiser/InlinableExpressionFunctionFinder.h b/libyul/optimiser/InlinableExpressionFunctionFinder.h index 69c003e6..3887e6e5 100644 --- a/libyul/optimiser/InlinableExpressionFunctionFinder.h +++ b/libyul/optimiser/InlinableExpressionFunctionFinder.h @@ -27,7 +27,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/MainFunction.cpp b/libyul/optimiser/MainFunction.cpp index dfc19574..c8f35207 100644 --- a/libyul/optimiser/MainFunction.cpp +++ b/libyul/optimiser/MainFunction.cpp @@ -30,7 +30,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; using namespace dev::solidity; void MainFunction::operator()(Block& _block) diff --git a/libyul/optimiser/MainFunction.h b/libyul/optimiser/MainFunction.h index 4d790729..4a73283a 100644 --- a/libyul/optimiser/MainFunction.h +++ b/libyul/optimiser/MainFunction.h @@ -25,7 +25,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/Metrics.cpp b/libyul/optimiser/Metrics.cpp index ce7c1bed..eb2d39e8 100644 --- a/libyul/optimiser/Metrics.cpp +++ b/libyul/optimiser/Metrics.cpp @@ -23,7 +23,7 @@ #include <libsolidity/inlineasm/AsmData.h> using namespace dev; -using namespace dev::julia; +using namespace dev::yul; size_t CodeSize::codeSize(Statement const& _statement) { diff --git a/libyul/optimiser/Metrics.h b/libyul/optimiser/Metrics.h index f0d6a203..8ed73cca 100644 --- a/libyul/optimiser/Metrics.h +++ b/libyul/optimiser/Metrics.h @@ -24,7 +24,7 @@ namespace dev { -namespace julia +namespace yul { class CodeSize: public ASTWalker diff --git a/libyul/optimiser/NameCollector.cpp b/libyul/optimiser/NameCollector.cpp index cbc7aad2..b71fa982 100644 --- a/libyul/optimiser/NameCollector.cpp +++ b/libyul/optimiser/NameCollector.cpp @@ -24,7 +24,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; void NameCollector::operator()(VariableDeclaration const& _varDecl) { diff --git a/libyul/optimiser/NameCollector.h b/libyul/optimiser/NameCollector.h index 9ea32674..b8f6c1d7 100644 --- a/libyul/optimiser/NameCollector.h +++ b/libyul/optimiser/NameCollector.h @@ -28,7 +28,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/NameDispenser.cpp b/libyul/optimiser/NameDispenser.cpp index 4b177389..f7385471 100644 --- a/libyul/optimiser/NameDispenser.cpp +++ b/libyul/optimiser/NameDispenser.cpp @@ -22,7 +22,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; string NameDispenser::newName(string const& _prefix) { diff --git a/libyul/optimiser/NameDispenser.h b/libyul/optimiser/NameDispenser.h index 91c43d54..64ec318f 100644 --- a/libyul/optimiser/NameDispenser.h +++ b/libyul/optimiser/NameDispenser.h @@ -24,7 +24,7 @@ namespace dev { -namespace julia +namespace yul { struct NameDispenser diff --git a/libyul/optimiser/Rematerialiser.cpp b/libyul/optimiser/Rematerialiser.cpp index 5f2b9e8b..dd6653ea 100644 --- a/libyul/optimiser/Rematerialiser.cpp +++ b/libyul/optimiser/Rematerialiser.cpp @@ -28,7 +28,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; void Rematerialiser::visit(Expression& _e) { diff --git a/libyul/optimiser/Rematerialiser.h b/libyul/optimiser/Rematerialiser.h index d06c2754..afcfab3e 100644 --- a/libyul/optimiser/Rematerialiser.h +++ b/libyul/optimiser/Rematerialiser.h @@ -28,7 +28,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/Semantics.cpp b/libyul/optimiser/Semantics.cpp index d610341d..33f3af77 100644 --- a/libyul/optimiser/Semantics.cpp +++ b/libyul/optimiser/Semantics.cpp @@ -30,7 +30,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; MovableChecker::MovableChecker(Expression const& _expression) { diff --git a/libyul/optimiser/Semantics.h b/libyul/optimiser/Semantics.h index 1963e7a3..1caa12fb 100644 --- a/libyul/optimiser/Semantics.h +++ b/libyul/optimiser/Semantics.h @@ -28,7 +28,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/SimplificationRules.cpp b/libyul/optimiser/SimplificationRules.cpp index ca3f2984..762473e5 100644 --- a/libyul/optimiser/SimplificationRules.cpp +++ b/libyul/optimiser/SimplificationRules.cpp @@ -31,7 +31,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; SimplificationRule<Pattern> const* SimplificationRules::findFirstMatch(Expression const& _expr) diff --git a/libyul/optimiser/SimplificationRules.h b/libyul/optimiser/SimplificationRules.h index 2b5bccd5..25d91573 100644 --- a/libyul/optimiser/SimplificationRules.h +++ b/libyul/optimiser/SimplificationRules.h @@ -34,7 +34,7 @@ namespace dev { -namespace julia +namespace yul { class Pattern; diff --git a/libyul/optimiser/Substitution.cpp b/libyul/optimiser/Substitution.cpp index eafe1da9..4a000a85 100644 --- a/libyul/optimiser/Substitution.cpp +++ b/libyul/optimiser/Substitution.cpp @@ -24,7 +24,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; Expression Substitution::translate(Expression const& _expression) { diff --git a/libyul/optimiser/Substitution.h b/libyul/optimiser/Substitution.h index c7e604ca..b734cdca 100644 --- a/libyul/optimiser/Substitution.h +++ b/libyul/optimiser/Substitution.h @@ -28,7 +28,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/SyntacticalEquality.cpp b/libyul/optimiser/SyntacticalEquality.cpp index a235e509..f22b5c31 100644 --- a/libyul/optimiser/SyntacticalEquality.cpp +++ b/libyul/optimiser/SyntacticalEquality.cpp @@ -28,7 +28,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; bool SyntacticalEqualityChecker::equal(Expression const& _e1, Expression const& _e2) { diff --git a/libyul/optimiser/SyntacticalEquality.h b/libyul/optimiser/SyntacticalEquality.h index 58d4f365..e9fbebe0 100644 --- a/libyul/optimiser/SyntacticalEquality.h +++ b/libyul/optimiser/SyntacticalEquality.h @@ -26,7 +26,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/UnusedPruner.cpp b/libyul/optimiser/UnusedPruner.cpp index 10b1c171..74b6bee4 100644 --- a/libyul/optimiser/UnusedPruner.cpp +++ b/libyul/optimiser/UnusedPruner.cpp @@ -31,7 +31,7 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; UnusedPruner::UnusedPruner(Block& _ast) { diff --git a/libyul/optimiser/UnusedPruner.h b/libyul/optimiser/UnusedPruner.h index 305c62a7..327921ea 100644 --- a/libyul/optimiser/UnusedPruner.h +++ b/libyul/optimiser/UnusedPruner.h @@ -28,7 +28,7 @@ namespace dev { -namespace julia +namespace yul { /** diff --git a/libyul/optimiser/Utilities.cpp b/libyul/optimiser/Utilities.cpp index 7591ed5b..df01ed39 100644 --- a/libyul/optimiser/Utilities.cpp +++ b/libyul/optimiser/Utilities.cpp @@ -28,9 +28,9 @@ using namespace std; using namespace dev; -using namespace dev::julia; +using namespace dev::yul; -void dev::julia::removeEmptyBlocks(Block& _block) +void dev::yul::removeEmptyBlocks(Block& _block) { auto isEmptyBlock = [](Statement const& _st) -> bool { return _st.type() == typeid(Block) && boost::get<Block>(_st).statements.empty(); diff --git a/libyul/optimiser/Utilities.h b/libyul/optimiser/Utilities.h index ae77d2e0..5b18a27c 100644 --- a/libyul/optimiser/Utilities.h +++ b/libyul/optimiser/Utilities.h @@ -24,7 +24,7 @@ namespace dev { -namespace julia +namespace yul { /// Removes statements that are just empty blocks (non-recursive). |