diff options
author | qining <qining@google.com> | 2017-04-19 18:10:59 -0400 |
---|---|---|
committer | David Neto <dneto@google.com> | 2017-04-21 11:22:47 -0400 |
commit | 144f59e4513064c404709035e369498d0e80016f (patch) | |
tree | 2358bed9bd0afc587f008c3c06cae8e521c073c4 /source/opt/optimizer.cpp | |
parent | 1d8efb02edc12a27ca0430f632811bb4244898aa (diff) |
Add bit pattern interface for setting default value for spec constants
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>()); |