diff options
Diffstat (limited to 'source/opt/optimizer.cpp')
-rw-r--r-- | source/opt/optimizer.cpp | 6 |
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>()); |