Lines Matching refs:BuildModule
48 inline std::unique_ptr<IRContext> BuildModule(std::string text) { in BuildModule() function
49 return spvtools::BuildModule(SPV_ENV_UNIVERSAL_1_1, nullptr, text, in BuildModule()
55 EXPECT_EQ(1u, BuildModule("")->module()->ComputeIdBound()); in TEST()
57 EXPECT_EQ(2u, BuildModule("%void = OpTypeVoid")->module()->ComputeIdBound()); in TEST()
60 BuildModule("%a = OpTypeArray !999 3")->module()->ComputeIdBound()); in TEST()
63 BuildModule("OpDecorate !1999 0")->module()->ComputeIdBound()); in TEST()
66 BuildModule("%f = OpFunction %void None %fntype %a = OpLabel " in TEST()
72 BuildModule("%f = OpFunction %void None %fntype %a = OpLabel " in TEST()
104 str << *BuildModule(text)->module(); in TEST()
138 str << *BuildModule(text)->module(); in TEST()
154 std::unique_ptr<IRContext> context = BuildModule(text); in TEST()
176 std::unique_ptr<IRContext> context = BuildModule(text); in TEST()
198 std::unique_ptr<IRContext> context = BuildModule(text); in TEST()
220 std::unique_ptr<IRContext> context = BuildModule(text); in TEST()