diff options
author | Steven Perron <stevenperron@google.com> | 2017-12-19 14:18:13 -0500 |
---|---|---|
committer | David Neto <dneto@google.com> | 2017-12-21 11:14:53 -0500 |
commit | 756b277fb826675f0356995f975bd7da1cacc23d (patch) | |
tree | e3d1d7f40936760dbb8bcc7e7c2cb00e79442597 /test/opt/def_use_test.cpp | |
parent | 8e0051c78188371293377b0cac482c6f366a9813 (diff) | |
download | spirv-tools-756b277fb826675f0356995f975bd7da1cacc23d.tar.gz |
Store all enabled capabilities in the feature manger.
In order to keep track of all of the implicit capabilities as well as
the explicit ones, we will add them all to the feature manager. That is
the object that needs to be queried when checking if a capability is
enabled.
The name of the "HasCapability" function in the module was changed to
make it more obvious that it does not check for implied capabilities.
Keep an spv_context and AssemblyGrammar in IRContext
Diffstat (limited to 'test/opt/def_use_test.cpp')
-rw-r--r-- | test/opt/def_use_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/opt/def_use_test.cpp b/test/opt/def_use_test.cpp index fd1a9ec3..a72f79f8 100644 --- a/test/opt/def_use_test.cpp +++ b/test/opt/def_use_test.cpp @@ -1368,7 +1368,7 @@ INSTANTIATE_TEST_CASE_P( using AnalyzeInstDefUse = ::testing::Test; TEST(AnalyzeInstDefUse, UseWithNoResultId) { - ir::IRContext context(nullptr); + ir::IRContext context(SPV_ENV_UNIVERSAL_1_2, nullptr); // Analyze the instructions. opt::analysis::DefUseManager manager(context.module()); |