aboutsummaryrefslogtreecommitdiff
path: root/test/opt/dominator_tree
diff options
context:
space:
mode:
authorJeff Bolz <jbolz@nvidia.com>2018-11-06 08:26:23 -0600
committerSteven Perron <stevenperron@google.com>2018-11-06 09:26:23 -0500
commit60fac96c6bf9c369935b33d11c70f87acb48c00f (patch)
treef33898861f66d2eb9258be788fd869bc4af5f2c9 /test/opt/dominator_tree
parentf2cc71e5cbeaac27a5c7e6d339a4fbe2e3acf362 (diff)
downloadspirv-tools-60fac96c6bf9c369935b33d11c70f87acb48c00f.tar.gz
Enable precompiled headers for spirv-tools(-shared) and some unit tests (#2026)
Diffstat (limited to 'test/opt/dominator_tree')
-rw-r--r--test/opt/dominator_tree/CMakeLists.txt1
-rw-r--r--test/opt/dominator_tree/pch_test_opt_dom.cpp15
-rw-r--r--test/opt/dominator_tree/pch_test_opt_dom.h25
3 files changed, 41 insertions, 0 deletions
diff --git a/test/opt/dominator_tree/CMakeLists.txt b/test/opt/dominator_tree/CMakeLists.txt
index f95a56da..813d628a 100644
--- a/test/opt/dominator_tree/CMakeLists.txt
+++ b/test/opt/dominator_tree/CMakeLists.txt
@@ -27,4 +27,5 @@ add_spvtools_unittest(TARGET dominator_analysis
unreachable_for.cpp
unreachable_for_post.cpp
LIBS SPIRV-Tools-opt
+ PCH_FILE pch_test_opt_dom
)
diff --git a/test/opt/dominator_tree/pch_test_opt_dom.cpp b/test/opt/dominator_tree/pch_test_opt_dom.cpp
new file mode 100644
index 00000000..a28310e5
--- /dev/null
+++ b/test/opt/dominator_tree/pch_test_opt_dom.cpp
@@ -0,0 +1,15 @@
+// Copyright (c) 2018 The Khronos Group 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.
+
+#include "pch_test_opt_dom.h"
diff --git a/test/opt/dominator_tree/pch_test_opt_dom.h b/test/opt/dominator_tree/pch_test_opt_dom.h
new file mode 100644
index 00000000..4e8106fb
--- /dev/null
+++ b/test/opt/dominator_tree/pch_test_opt_dom.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2018 The Khronos Group 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.
+
+#include "gmock/gmock.h"
+#include "source/opt/iterator.h"
+#include "source/opt/loop_dependence.h"
+#include "source/opt/loop_descriptor.h"
+#include "source/opt/pass.h"
+#include "source/opt/scalar_analysis.h"
+#include "source/opt/tree_iterator.h"
+#include "test/opt/assembly_builder.h"
+#include "test/opt/function_utils.h"
+#include "test/opt/pass_fixture.h"
+#include "test/opt/pass_utils.h"