| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/link/ |
| H A D | global_values_amount_test.cpp | 80 spvtest::Binary binary = { variable 98 binary.push_back(4u << SpvWordCountShift | SpvOpVariable); 99 binary.push_back(2u); // NOTE: Type ID 100 binary.push_back(j + 3u); // NOTE: Result ID 101 binary.push_back(SpvStorageClassInput); 103 binaries.push_back(binary);
|
| /third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/ |
| H A D | spirv_opt_mutator.cc | 31 std::vector<uint32_t> binary, in SpirvOptMutator() 37 original_binary_(std::move(binary)), in SpirvOptMutator() 71 "Initial binary is invalid"); 89 // Get the input binary. If this is the first time we run this mutator, use in Mutate() 93 auto binary = num_executions_ == 1 ? original_binary_ : optimized_binary_; in Mutate() local 96 assert(!binary.empty() && "Can't run the optimizer on an empty binary"); in Mutate() 113 // Run the `binary` into the `optimized_binary_`. in Mutate() 118 if (!optimizer.Run(binary.data(), binary in Mutate() 29 SpirvOptMutator(spv_target_env target_env, uint32_t seed, std::vector<uint32_t> binary, bool validate_after_each_opt, uint32_t opt_batch_size) SpirvOptMutator() argument [all...] |
| /third_party/spirv-tools/test/ |
| H A D | binary_header_get_test.cpp | 33 binary.code = code; in SetUp() 34 binary.wordCount = 6; in SetUp() 37 return spv_const_binary_t{binary.code, binary.wordCount}; in get_const_binary() 42 spv_binary_t binary; member in spvtools::__anon26728::BinaryHeaderGet 77 binary.wordCount = i; in TEST_F()
|
| H A D | preserve_numeric_ids_test.cpp | 28 // Converts code to binary and then back to text. 35 spv_binary binary; in ToBinaryAndBack() local 40 text_to_binary_options, &binary, nullptr); in ToBinaryAndBack() 45 result = spvBinaryToText(ctx.context, binary->code, binary->wordCount, in ToBinaryAndBack() 53 spvBinaryDestroy(binary); in ToBinaryAndBack()
|
| /third_party/mesa3d/src/gallium/frontends/clover/llvm/codegen/ |
| H A D | bitcode.cpp | 52 using clover::binary; 73 binary 75 enum binary::section::type section_type) { in build_module_library() 76 binary b; in build_module_library() 83 clover::llvm::parse_module_library(const binary &b, ::llvm::LLVMContext &ctx, in parse_module_library()
|
| /third_party/node/deps/v8/third_party/wasm-api/example/ |
| H A D | hello.c | 26 // Load binary. in main() 27 printf("Loading binary...\n"); in main() 36 wasm_byte_vec_t binary; in main() local 37 wasm_byte_vec_new_uninitialized(&binary, file_size); in main() 38 if (fread(binary.data, file_size, 1, file) != 1) { in main() 46 own wasm_module_t* module = wasm_module_new(store, &binary); in main() 52 wasm_byte_vec_delete(&binary); in main()
|
| H A D | finalize.c | 21 // Load binary. in run_in_store() 22 printf("Loading binary...\n"); in run_in_store() 31 wasm_byte_vec_t binary; in run_in_store() local 32 wasm_byte_vec_new_uninitialized(&binary, file_size); in run_in_store() 33 if (fread(binary.data, file_size, 1, file) != 1) { in run_in_store() 41 own wasm_module_t* module = wasm_module_new(store, &binary); in run_in_store() 47 wasm_byte_vec_delete(&binary); in run_in_store()
|
| H A D | serialize.c | 24 // Load binary. in main() 25 printf("Loading binary...\n"); in main() 34 wasm_byte_vec_t binary; in main() local 35 wasm_byte_vec_new_uninitialized(&binary, file_size); in main() 36 if (fread(binary.data, file_size, 1, file) != 1) { in main() 44 own wasm_module_t* module = wasm_module_new(store, &binary); in main() 50 wasm_byte_vec_delete(&binary); in main()
|
| H A D | start.c | 27 // Load binary. in main() 28 printf("Loading binary...\n"); in main() 37 wasm_byte_vec_t binary; in main() local 38 wasm_byte_vec_new_uninitialized(&binary, file_size); in main() 39 if (fread(binary.data, file_size, 1, file) != 1) { in main() 47 own wasm_module_t* module = wasm_module_new(store, &binary); in main() 53 wasm_byte_vec_delete(&binary); in main()
|
| /third_party/skia/third_party/externals/spirv-tools/test/ |
| H A D | preserve_numeric_ids_test.cpp | 28 // Converts code to binary and then back to text. 35 spv_binary binary; in ToBinaryAndBack() local 40 text_to_binary_options, &binary, nullptr); in ToBinaryAndBack() 45 result = spvBinaryToText(ctx.context, binary->code, binary->wordCount, in ToBinaryAndBack() 53 spvBinaryDestroy(binary); in ToBinaryAndBack()
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
| H A D | preserve_numeric_ids_test.cpp | 28 // Converts code to binary and then back to text. 35 spv_binary binary; in ToBinaryAndBack() local 40 text_to_binary_options, &binary, nullptr); in ToBinaryAndBack() 45 result = spvBinaryToText(ctx.context, binary->code, binary->wordCount, in ToBinaryAndBack() 53 spvBinaryDestroy(binary); in ToBinaryAndBack()
|
| /third_party/protobuf/ruby/ext/google/protobuf_c/ |
| H A D | protobuf.c | 5 // Redistribution and use in source and binary forms, with or without 11 // * Redistributions in binary form must reproduce the above 41 static VALUE create_frozen_string(const char* str, size_t size, bool binary) { in create_frozen_string() argument 45 binary ? kRubyString8bitEncoding : kRubyStringUtf8Encoding); in create_frozen_string() 50 VALUE get_frozen_string(const char* str, size_t size, bool binary) { in get_frozen_string() argument 52 return binary ? cached_empty_bytes : cached_empty_string; in get_frozen_string() 60 return create_frozen_string(str, size, binary); in get_frozen_string()
|
| /third_party/mesa3d/src/gallium/drivers/asahi/ |
| H A D | agx_blit.c | 62 struct util_dynarray binary; in agx_build_reload_shader() local 63 util_dynarray_init(&binary, NULL); in agx_build_reload_shader() 72 agx_compile_shader_nir(s, &key, &binary, &info); in agx_build_reload_shader() 74 assert(offset + binary.size < bo_size); in agx_build_reload_shader() 75 memcpy(((uint8_t *) bo->ptr.cpu) + offset, binary.data, binary.size); in agx_build_reload_shader() 78 offset += ALIGN_POT(binary.size, 128); in agx_build_reload_shader() 80 util_dynarray_fini(&binary); in agx_build_reload_shader()
|
| /third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
| H A D | vkBinaryRegistry.hpp | 23 * \brief Program binary registry. 73 // just storing each compiled binary without de-duplication would be incredibly 76 // To locate binary that corresponds given ProgramIdentifier, a program binary 78 // binary, it must be fast to load (to reduce statup cost), and fast to access. 80 // Simple trie is used to store binary indices. It is laid out as an array of 92 // If word contains one or more trailing 0 bytes, index denotes the binary index 210 deUint32* find (const ProgramBinary* binary) const; 211 void insert (const ProgramBinary* binary, deUint32 index); 227 void addProgram (const ProgramIdentifier& id, const ProgramBinary& binary); 240 ProgramBinary* binary; global() member [all...] |
| /third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
| H A D | gl_raii.h | 212 void makeBinaryOES(const std::vector<uint8_t> &binary, GLenum binaryFormat) in makeBinaryOES() argument 214 mHandle = LoadBinaryProgramOES(binary, binaryFormat); in makeBinaryOES() 217 void makeBinaryES3(const std::vector<uint8_t> &binary, GLenum binaryFormat) in makeBinaryES3() argument 219 mHandle = LoadBinaryProgramES3(binary, binaryFormat); in makeBinaryES3() 284 #define ANGLE_GL_BINARY_OES_PROGRAM(name, binary, binaryFormat) \ 286 name.makeBinaryOES(binary, binaryFormat); \ 289 #define ANGLE_GL_BINARY_ES3_PROGRAM(name, binary, binaryFormat) \ 291 name.makeBinaryES3(binary, binaryFormat); \
|
| /third_party/vk-gl-cts/external/vulkancts/vkscserver/ |
| H A D | vksServices.cpp | 66 std::ifstream file(path, std::ios::binary); in LoadPhysicalFile() 87 auto mode = clear ? std::ios::binary : std::ios::binary | std::ios::app; in AppendFile() 97 void CreateVulkanSCCache (const VulkanPipelineCacheInput& input, int caseFraction, vector<u8>& binary, const CmdLineParams& cmdLineParams, const std::string& logFile) in CreateVulkanSCCache() argument 107 binary = vksc_server::buildOfflinePipelineCache(input, in CreateVulkanSCCache() 120 binary = buildPipelineCache(input, in CreateVulkanSCCache() 129 bool CompileShader (const SourceVariant& source, const string& commandLine, vector<u8>& binary) in CompileShader() argument 149 throw std::runtime_error("CompileShader supports only PROGRAM_FORMAT_SPIRV binary output"); in CompileShader() 152 binary.assign( programBinary->getBinary(), in CompileShader()
|
| /third_party/skia/third_party/externals/spirv-tools/test/opt/ |
| H A D | pass_fixture.h | 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; in OptimizeToBinary() local 78 context()->module()->ToBinary(&binary, skip_nop); in OptimizeToBinary() 80 return std::make_tuple(binary, status); in OptimizeToBinary() 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 in SinglePassRunAndDisassemble() local 145 spv_const_binary_t binary = {optimized_bin.data(), optimized_bin.size()}; SinglePassRunAndCheck() local 250 std::vector<uint32_t> binary; RunAndCheck() local [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
| H A D | pass_fixture.h | 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; in OptimizeToBinary() local 78 context()->module()->ToBinary(&binary, skip_nop); in OptimizeToBinary() 80 return std::make_tuple(binary, status); in OptimizeToBinary() 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 in SinglePassRunAndDisassemble() local 145 spv_const_binary_t binary = {optimized_bin.data(), optimized_bin.size()}; SinglePassRunAndCheck() local 250 std::vector<uint32_t> binary; RunAndCheck() local [all...] |
| /third_party/spirv-tools/test/opt/ |
| H A D | pass_fixture.h | 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; in OptimizeToBinary() local 78 context()->module()->ToBinary(&binary, skip_nop); in OptimizeToBinary() 80 return std::make_tuple(binary, status); in OptimizeToBinary() 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 in SinglePassRunAndDisassemble() local 145 spv_const_binary_t binary = {optimized_bin.data(), optimized_bin.size()}; SinglePassRunAndCheck() local 250 std::vector<uint32_t> binary; RunAndCheck() local [all...] |
| /third_party/skia/third_party/externals/spirv-tools/source/ |
| H A D | binary.cpp | 17 #include "source/binary.h" 37 spv_result_t spvBinaryHeaderGet(const spv_const_binary binary, in spvBinaryHeaderGet() argument 40 if (!binary->code) return SPV_ERROR_INVALID_BINARY; in spvBinaryHeaderGet() 41 if (binary->wordCount < SPV_INDEX_INSTRUCTION) in spvBinaryHeaderGet() 46 pHeader->magic = spvFixWord(binary->code[SPV_INDEX_MAGIC_NUMBER], endian); in spvBinaryHeaderGet() 47 pHeader->version = spvFixWord(binary->code[SPV_INDEX_VERSION_NUMBER], endian); in spvBinaryHeaderGet() 57 spvFixWord(binary->code[SPV_INDEX_GENERATOR_NUMBER], endian); in spvBinaryHeaderGet() 58 pHeader->bound = spvFixWord(binary->code[SPV_INDEX_BOUND], endian); in spvBinaryHeaderGet() 59 pHeader->schema = spvFixWord(binary->code[SPV_INDEX_SCHEMA], endian); in spvBinaryHeaderGet() 60 pHeader->instructions = &binary in spvBinaryHeaderGet() [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/ |
| H A D | binary.cpp | 17 #include "source/binary.h" 37 spv_result_t spvBinaryHeaderGet(const spv_const_binary binary, in spvBinaryHeaderGet() argument 40 if (!binary->code) return SPV_ERROR_INVALID_BINARY; in spvBinaryHeaderGet() 41 if (binary->wordCount < SPV_INDEX_INSTRUCTION) in spvBinaryHeaderGet() 46 pHeader->magic = spvFixWord(binary->code[SPV_INDEX_MAGIC_NUMBER], endian); in spvBinaryHeaderGet() 47 pHeader->version = spvFixWord(binary->code[SPV_INDEX_VERSION_NUMBER], endian); in spvBinaryHeaderGet() 57 spvFixWord(binary->code[SPV_INDEX_GENERATOR_NUMBER], endian); in spvBinaryHeaderGet() 58 pHeader->bound = spvFixWord(binary->code[SPV_INDEX_BOUND], endian); in spvBinaryHeaderGet() 59 pHeader->schema = spvFixWord(binary->code[SPV_INDEX_SCHEMA], endian); in spvBinaryHeaderGet() 60 pHeader->instructions = &binary in spvBinaryHeaderGet() [all...] |
| /third_party/spirv-tools/source/ |
| H A D | binary.cpp | 17 #include "source/binary.h" 38 spv_result_t spvBinaryHeaderGet(const spv_const_binary binary, in spvBinaryHeaderGet() argument 41 if (!binary->code) return SPV_ERROR_INVALID_BINARY; in spvBinaryHeaderGet() 42 if (binary->wordCount < SPV_INDEX_INSTRUCTION) in spvBinaryHeaderGet() 47 pHeader->magic = spvFixWord(binary->code[SPV_INDEX_MAGIC_NUMBER], endian); in spvBinaryHeaderGet() 48 pHeader->version = spvFixWord(binary->code[SPV_INDEX_VERSION_NUMBER], endian); in spvBinaryHeaderGet() 58 spvFixWord(binary->code[SPV_INDEX_GENERATOR_NUMBER], endian); in spvBinaryHeaderGet() 59 pHeader->bound = spvFixWord(binary->code[SPV_INDEX_BOUND], endian); in spvBinaryHeaderGet() 60 pHeader->schema = spvFixWord(binary->code[SPV_INDEX_SCHEMA], endian); in spvBinaryHeaderGet() 61 pHeader->instructions = &binary in spvBinaryHeaderGet() [all...] |
| /third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/ |
| H A D | BreakVariableAliasingInInnerLoops.cpp | 42 bool visitBinary(Visit visit, TIntermBinary *binary) override 49 if (mLoopLevel < 2 || !binary->isAssignment()) 54 TIntermTyped *B = binary->getRight(); 76 binary->replaceChildNode(B, bPlusZero);
|
| /third_party/skia/third_party/externals/spirv-tools/tools/lint/ |
| H A D | lint.cpp | 67 std::vector<uint32_t> binary; in main() local 68 if (!ReadBinaryFile(in_file, &binary)) { in main() 72 bool ok = linter.Run(binary.data(), binary.size()); in main()
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/lint/ |
| H A D | lint.cpp | 67 std::vector<uint32_t> binary; in main() local 68 if (!ReadBinaryFile(in_file, &binary)) { in main() 72 bool ok = linter.Run(binary.data(), binary.size()); in main()
|