diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ir/flat.h | 2 | ||||
-rw-r--r-- | src/ir/hashed.h | 2 | ||||
-rw-r--r-- | src/ir/struct-utils.h | 2 | ||||
-rw-r--r-- | src/passes/NameList.cpp | 2 | ||||
-rw-r--r-- | src/passes/OnceReduction.cpp | 2 | ||||
-rw-r--r-- | src/passes/PrintFeatures.cpp | 2 | ||||
-rw-r--r-- | src/passes/ReorderFunctions.cpp | 2 |
7 files changed, 14 insertions, 0 deletions
diff --git a/src/ir/flat.h b/src/ir/flat.h index 37b5dfb15..70a6beac7 100644 --- a/src/ir/flat.h +++ b/src/ir/flat.h @@ -116,6 +116,8 @@ inline void verifyFlatness(Module* module) { PostWalker<VerifyFlatness, UnifiedExpressionVisitor<VerifyFlatness>>> { bool isFunctionParallel() override { return true; } + bool modifiesBinaryenIR() override { return false; } + VerifyFlatness* create() override { return new VerifyFlatness(); } void doVisitFunction(Function* func) { verifyFlatness(func); } diff --git a/src/ir/hashed.h b/src/ir/hashed.h index b1fd659bc..060fea453 100644 --- a/src/ir/hashed.h +++ b/src/ir/hashed.h @@ -29,6 +29,8 @@ namespace wasm { struct FunctionHasher : public WalkerPass<PostWalker<FunctionHasher>> { bool isFunctionParallel() override { return true; } + bool modifiesBinaryenIR() override { return false; } + struct Map : public std::map<Function*, size_t> {}; FunctionHasher(Map* output, ExpressionAnalyzer::ExprHasher customHasher) diff --git a/src/ir/struct-utils.h b/src/ir/struct-utils.h index e7b587958..ba5617de6 100644 --- a/src/ir/struct-utils.h +++ b/src/ir/struct-utils.h @@ -130,6 +130,8 @@ struct StructScanner : public WalkerPass<PostWalker<StructScanner<T, SubType>>> { bool isFunctionParallel() override { return true; } + bool modifiesBinaryenIR() override { return false; } + StructScanner(FunctionStructValuesMap<T>& functionNewInfos, FunctionStructValuesMap<T>& functionSetGetInfos) : functionNewInfos(functionNewInfos), diff --git a/src/passes/NameList.cpp b/src/passes/NameList.cpp index 1051a31d1..a0078e263 100644 --- a/src/passes/NameList.cpp +++ b/src/passes/NameList.cpp @@ -26,6 +26,8 @@ namespace wasm { struct NameList : public Pass { + bool modifiesBinaryenIR() override { return false; } + void run(PassRunner* runner, Module* module) override { ModuleUtils::iterDefinedFunctions(*module, [&](Function* func) { std::cout << " " << func->name << " : " diff --git a/src/passes/OnceReduction.cpp b/src/passes/OnceReduction.cpp index fd38aeafe..1eb76c29e 100644 --- a/src/passes/OnceReduction.cpp +++ b/src/passes/OnceReduction.cpp @@ -84,6 +84,8 @@ struct OptInfo { struct Scanner : public WalkerPass<PostWalker<Scanner>> { bool isFunctionParallel() override { return true; } + bool modifiesBinaryenIR() override { return false; } + Scanner(OptInfo& optInfo) : optInfo(optInfo) {} Scanner* create() override { return new Scanner(optInfo); } diff --git a/src/passes/PrintFeatures.cpp b/src/passes/PrintFeatures.cpp index 53ef6676f..6b89e18d6 100644 --- a/src/passes/PrintFeatures.cpp +++ b/src/passes/PrintFeatures.cpp @@ -25,6 +25,8 @@ namespace wasm { struct PrintFeatures : public Pass { + bool modifiesBinaryenIR() override { return false; } + void run(PassRunner* runner, Module* module) override { module->features.iterFeatures([](FeatureSet::Feature f) { std::cout << "--enable-" << FeatureSet::toString(f) << std::endl; diff --git a/src/passes/ReorderFunctions.cpp b/src/passes/ReorderFunctions.cpp index 326893951..7d2e7fb53 100644 --- a/src/passes/ReorderFunctions.cpp +++ b/src/passes/ReorderFunctions.cpp @@ -40,6 +40,8 @@ typedef std::unordered_map<Name, std::atomic<Index>> NameCountMap; struct CallCountScanner : public WalkerPass<PostWalker<CallCountScanner>> { bool isFunctionParallel() override { return true; } + bool modifiesBinaryenIR() override { return false; } + CallCountScanner(NameCountMap* counts) : counts(counts) {} CallCountScanner* create() override { return new CallCountScanner(counts); } |