Lines Matching defs:binary
58 // Runs the given |pass| on the binary assembled from the |original|.
59 // Returns a tuple of the optimized binary and the boolean value returned
76 std::vector<uint32_t> binary;
78 context()->module()->ToBinary(&binary, skip_nop);
80 return std::make_tuple(binary, status);
83 // Runs a single pass of class |PassT| on the binary assembled from the
84 // |assembly|. Returns a tuple of the optimized binary and the boolean value
94 // Runs a single pass of class |PassT| on the binary assembled from the
95 // |assembly|, disassembles the optimized binary. Returns a tuple of
108 spv_const_binary_t binary = {optimized_bin.data(), optimized_bin.size()};
110 spvContext, ValidatorOptions(), &binary, &diagnostic);
125 // Runs a single pass of class |PassT| on the binary assembled from the
126 // |original| assembly, and checks whether the optimized binary can be
128 // the optimized binary. This does *not* involve pass manager. Callers
145 spv_const_binary_t binary = {optimized_bin.data(), optimized_bin.size()};
147 spvContext, ValidatorOptions(), &binary, &diagnostic);
162 // Runs a single pass of class |PassT| on the binary assembled from the
163 // |original| assembly, and checks whether the optimized binary can be
174 // Runs a single pass of class |PassT| on the binary assembled from the
195 // Runs a single pass of class |PassT| on the binary assembled from the
232 // Runs the passes added thus far using a pass manager on the binary assembled
233 // from the |original| assembly, and checks whether the optimized binary can
250 std::vector<uint32_t> binary;
251 context()->module()->ToBinary(&binary, /* skip_nop = */ false);
255 EXPECT_TRUE(tools.Disassemble(binary, &optimized, disassemble_options_));