1 # Copyright (c) 2017 Google Inc.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 add_spvtools_unittest(TARGET loop_descriptor_simple
17 SRCS ../function_utils.h
22 add_spvtools_unittest(TARGET loop_descriptor_nested
23 SRCS ../function_utils.h
28 add_spvtools_unittest(TARGET lcssa_test
29 SRCS ../function_utils.h
34 add_spvtools_unittest(TARGET licm_all_loop_types
35 SRCS ../function_utils.h
36 hoist_all_loop_types.cpp
40 add_spvtools_unittest(TARGET licm_hoist_independent_loops
41 SRCS ../function_utils.h
42 hoist_from_independent_loops.cpp
46 add_spvtools_unittest(TARGET licm_hoist_double_nested_loops
47 SRCS ../function_utils.h
48 hoist_double_nested_loops.cpp
52 add_spvtools_unittest(TARGET licm_hoist_single_nested_loops
53 SRCS ../function_utils.h
54 hoist_single_nested_loops.cpp
58 add_spvtools_unittest(TARGET licm_hoist_simple_case
59 SRCS ../function_utils.h
64 add_spvtools_unittest(TARGET licm_hoist_no_preheader
65 SRCS ../function_utils.h
66 hoist_without_preheader.cpp