summaryrefslogtreecommitdiff
path: root/source/opt/optimizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/opt/optimizer.cpp')
-rw-r--r--source/opt/optimizer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/opt/optimizer.cpp b/source/opt/optimizer.cpp
index 4501fc6d..80643e96 100644
--- a/source/opt/optimizer.cpp
+++ b/source/opt/optimizer.cpp
@@ -101,6 +101,12 @@ Optimizer::PassToken CreateSetSpecConstantDefaultValuePass(
MakeUnique<opt::SetSpecConstantDefaultValuePass>(id_value_map));
}
+Optimizer::PassToken CreateSetSpecConstantDefaultValuePass(
+ const std::unordered_map<uint32_t, std::vector<uint32_t>>& id_value_map) {
+ return MakeUnique<Optimizer::PassToken::Impl>(
+ MakeUnique<opt::SetSpecConstantDefaultValuePass>(id_value_map));
+}
+
Optimizer::PassToken CreateFlattenDecorationPass() {
return MakeUnique<Optimizer::PassToken::Impl>(
MakeUnique<opt::FlattenDecorationPass>());