using namespace spvtools;
using namespace spvtools::opt::analysis;
+#ifdef SPIRV_EFFCEE
+
bool Validate(const std::vector<uint32_t>& bin) {
spv_target_env target_env = SPV_ENV_UNIVERSAL_1_2;
spv_context spvContext = spvContextCreate(target_env);
return error == 0;
}
-#ifdef SPIRV_EFFCEE
void Match(const std::string& original, ir::IRContext* context,
bool do_validation = true) {
std::vector<uint32_t> bin;
<< match_result.message() << "\nChecking result:\n"
<< assembly;
}
-#endif
std::vector<std::unique_ptr<Type>> GenerateAllTypes() {
// Types in this test case are only equal to themselves, nothing else.
return types;
}
+#endif
+
TEST(TypeManager, TypeStrings) {
const std::string text = R"(
OpTypeForwardPointer !20 !2 ; id for %p is 20, Uniform is 2