SPIRV-Tools/source/opt/CMakeLists.txt
qining abf57933ea Set default values for spec const decorated by SpecId
The pass instance is constructed with a map from spec id (uint32_t) to
default values in string format. The default value strings will be
parsed to numbers according to the target spec constant type.

If the Spec Id decoration is found to be applied on multiple different
target ids, that decoration instruction (OpDecorate or OpGroupDecorate)
will be skipped. But other decoration instrucitons may still be
processed.
2016-09-12 23:21:42 -04:00

58 lines
1.5 KiB
CMake

# Copyright (c) 2016 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
add_library(SPIRV-Tools-opt
basic_block.h
constants.h
def_use_manager.h
eliminate_dead_constant_pass.h
function.h
fold_spec_constant_op_and_composite_pass.h
freeze_spec_constant_value_pass.h
instruction.h
ir_loader.h
libspirv.hpp
module.h
null_pass.h
reflect.h
pass.h
passes.h
pass_manager.h
set_spec_constant_default_value_pass.h
strip_debug_info_pass.h
types.h
type_manager.h
unify_const_pass.h
def_use_manager.cpp
eliminate_dead_constant_pass.cpp
function.cpp
fold_spec_constant_op_and_composite_pass.cpp
freeze_spec_constant_value_pass.cpp
instruction.cpp
ir_loader.cpp
libspirv.cpp
module.cpp
set_spec_constant_default_value_pass.cpp
strip_debug_info_pass.cpp
types.cpp
type_manager.cpp
unify_const_pass.cpp
)
spvtools_default_compile_options(SPIRV-Tools-opt)
target_include_directories(SPIRV-Tools-opt
PRIVATE ${spirv-tools_SOURCE_DIR}/include
PUBLIC ${SPIRV_HEADER_INCLUDE_DIR}
)