From 144f59e4513064c404709035e369498d0e80016f Mon Sep 17 00:00:00 2001 From: qining Date: Wed, 19 Apr 2017 18:10:59 -0400 Subject: Add bit pattern interface for setting default value for spec constants --- source/opt/optimizer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/opt/optimizer.cpp') 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(id_value_map)); } +Optimizer::PassToken CreateSetSpecConstantDefaultValuePass( + const std::unordered_map>& id_value_map) { + return MakeUnique( + MakeUnique(id_value_map)); +} + Optimizer::PassToken CreateFlattenDecorationPass() { return MakeUnique( MakeUnique()); -- cgit v1.2.3