Home
last modified time | relevance | path

Searched refs:num_words (Results 1 – 25 of 92) sorted by relevance

1234

/third_party/spirv-tools/source/
Dbinary.cpp72 operand.num_words); in spvDecodeLiteralStringOperand()
94 spv_result_t parse(const uint32_t* words, size_t num_words,
164 << ((_.word_index < _.num_words) ? ": truncated " in exhaustedInputDiagnostic()
175 assert(index < _.num_words); in peekAt()
199 num_words(num_words_arg), in State()
213 size_t num_words; // Number of words in the module. member
239 spv_result_t Parser::parse(const uint32_t* words, size_t num_words, in parse() argument
241 _ = State(words, num_words, diagnostic_arg); in parse()
254 if (_.num_words < SPV_INDEX_INSTRUCTION) in parseModule()
255 return diagnostic() << "Module has incomplete header: only " << _.num_words in parseModule()
[all …]
Dparsed_operand.cpp31 if (operand.num_words < 1) return; in EmitNumericLiteral()
33 if (operand.num_words > 2) return; in EmitNumericLiteral()
36 if (operand.num_words == 1) { in EmitNumericLiteral()
56 } else if (operand.num_words == 2) { in EmitNumericLiteral()
/third_party/skia/third_party/externals/spirv-tools/source/
Dbinary.cpp84 spv_result_t parse(const uint32_t* words, size_t num_words,
154 << ((_.word_index < _.num_words) ? ": truncated " in exhaustedInputDiagnostic()
165 assert(index < _.num_words); in peekAt()
189 num_words(num_words_arg), in State()
203 size_t num_words; // Number of words in the module. member
229 spv_result_t Parser::parse(const uint32_t* words, size_t num_words, in parse() argument
231 _ = State(words, num_words, diagnostic_arg); in parse()
244 if (_.num_words < SPV_INDEX_INSTRUCTION) in parseModule()
245 return diagnostic() << "Module has incomplete header: only " << _.num_words in parseModule()
249 spv_const_binary_t binary{_.words, _.num_words}; in parseModule()
[all …]
Dparsed_operand.cpp29 if (operand.num_words < 1) return; in EmitNumericLiteral()
31 if (operand.num_words > 2) return; in EmitNumericLiteral()
34 if (operand.num_words == 1) { in EmitNumericLiteral()
54 } else if (operand.num_words == 2) { in EmitNumericLiteral()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/
Dbinary.cpp84 spv_result_t parse(const uint32_t* words, size_t num_words,
154 << ((_.word_index < _.num_words) ? ": truncated " in exhaustedInputDiagnostic()
165 assert(index < _.num_words); in peekAt()
189 num_words(num_words_arg), in State()
203 size_t num_words; // Number of words in the module. member
229 spv_result_t Parser::parse(const uint32_t* words, size_t num_words, in parse() argument
231 _ = State(words, num_words, diagnostic_arg); in parse()
244 if (_.num_words < SPV_INDEX_INSTRUCTION) in parseModule()
245 return diagnostic() << "Module has incomplete header: only " << _.num_words in parseModule()
249 spv_const_binary_t binary{_.words, _.num_words}; in parseModule()
[all …]
Dparsed_operand.cpp29 if (operand.num_words < 1) return; in EmitNumericLiteral()
31 if (operand.num_words > 2) return; in EmitNumericLiteral()
34 if (operand.num_words == 1) { in EmitNumericLiteral()
54 } else if (operand.num_words == 2) { in EmitNumericLiteral()
/third_party/spirv-tools/source/val/
Dinstruction.cpp26 : words_(inst->words, inst->words + inst->num_words), in Instruction()
28 inst_({words_.data(), inst->num_words, inst->opcode, inst->ext_inst_type, in Instruction()
50 assert(o.offset + o.num_words <= inst_.num_words); in GetOperandAs()
51 return spvtools::utils::MakeString(words_.data() + o.offset, o.num_words); in GetOperandAs()
Dvalidate.cpp156 const spv_context_t& context, const uint32_t* words, const size_t num_words, in ValidateBinaryUsingContextAndValidationState() argument
159 new spv_const_binary_t{words, num_words}); in ValidateBinaryUsingContextAndValidationState()
200 spvBinaryParse(&hijacked_context, vstate, words, num_words, in ValidateBinaryUsingContextAndValidationState()
206 if (auto error = spvBinaryParse(&context, vstate, words, num_words, in ValidateBinaryUsingContextAndValidationState()
399 const uint32_t* words, const size_t num_words, spv_diagnostic* pDiagnostic, in ValidateBinaryAndKeepValidationState() argument
408 num_words, kDefaultMaxNumOfWarnings)); in ValidateBinaryAndKeepValidationState()
411 hijack_context, words, num_words, pDiagnostic, vstate->get()); in ValidateBinaryAndKeepValidationState()
425 const uint32_t* words, const size_t num_words, in spvValidateBinary() argument
438 words, num_words, in spvValidateBinary()
443 hijack_context, words, num_words, pDiagnostic, &vstate); in spvValidateBinary()
Dinstruction.h104 assert(o.num_words * 4 >= sizeof(T)); in GetOperandAs()
105 assert(o.offset + o.num_words <= inst_.num_words); in GetOperandAs()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate.cpp156 const spv_context_t& context, const uint32_t* words, const size_t num_words, in ValidateBinaryUsingContextAndValidationState() argument
159 new spv_const_binary_t{words, num_words}); in ValidateBinaryUsingContextAndValidationState()
200 spvBinaryParse(&hijacked_context, vstate, words, num_words, in ValidateBinaryUsingContextAndValidationState()
206 if (auto error = spvBinaryParse(&context, vstate, words, num_words, in ValidateBinaryUsingContextAndValidationState()
381 const uint32_t* words, const size_t num_words, spv_diagnostic* pDiagnostic, in ValidateBinaryAndKeepValidationState() argument
390 num_words, kDefaultMaxNumOfWarnings)); in ValidateBinaryAndKeepValidationState()
393 hijack_context, words, num_words, pDiagnostic, vstate->get()); in ValidateBinaryAndKeepValidationState()
407 const uint32_t* words, const size_t num_words, in spvValidateBinary() argument
420 words, num_words, in spvValidateBinary()
425 hijack_context, words, num_words, pDiagnostic, &vstate); in spvValidateBinary()
Dinstruction.h104 assert(o.num_words * 4 >= sizeof(T)); in GetOperandAs()
105 assert(o.offset + o.num_words <= inst_.num_words); in GetOperandAs()
Dinstruction.cpp23 : words_(inst->words, inst->words + inst->num_words), in Instruction()
25 inst_({words_.data(), inst->num_words, inst->opcode, inst->ext_inst_type, in Instruction()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate.cpp156 const spv_context_t& context, const uint32_t* words, const size_t num_words, in ValidateBinaryUsingContextAndValidationState() argument
159 new spv_const_binary_t{words, num_words}); in ValidateBinaryUsingContextAndValidationState()
200 spvBinaryParse(&hijacked_context, vstate, words, num_words, in ValidateBinaryUsingContextAndValidationState()
206 if (auto error = spvBinaryParse(&context, vstate, words, num_words, in ValidateBinaryUsingContextAndValidationState()
381 const uint32_t* words, const size_t num_words, spv_diagnostic* pDiagnostic, in ValidateBinaryAndKeepValidationState() argument
390 num_words, kDefaultMaxNumOfWarnings)); in ValidateBinaryAndKeepValidationState()
393 hijack_context, words, num_words, pDiagnostic, vstate->get()); in ValidateBinaryAndKeepValidationState()
407 const uint32_t* words, const size_t num_words, in spvValidateBinary() argument
420 words, num_words, in spvValidateBinary()
425 hijack_context, words, num_words, pDiagnostic, &vstate); in spvValidateBinary()
Dinstruction.h104 assert(o.num_words * 4 >= sizeof(T)); in GetOperandAs()
105 assert(o.offset + o.num_words <= inst_.num_words); in GetOperandAs()
Dinstruction.cpp23 : words_(inst->words, inst->words + inst->num_words), in Instruction()
25 inst_({words_.data(), inst->num_words, inst->opcode, inst->ext_inst_type, in Instruction()
/third_party/openssl/crypto/bn/
Dbn_intern.c188 int bn_set_words(BIGNUM *a, const BN_ULONG *words, int num_words) in bn_set_words() argument
190 if (bn_wexpand(a, num_words) == NULL) { in bn_set_words()
195 memcpy(a->d, words, sizeof(BN_ULONG) * num_words); in bn_set_words()
196 a->top = num_words; in bn_set_words()
/third_party/node/deps/openssl/openssl/crypto/bn/
Dbn_intern.c188 int bn_set_words(BIGNUM *a, const BN_ULONG *words, int num_words) in bn_set_words() argument
190 if (bn_wexpand(a, num_words) == NULL) { in bn_set_words()
195 memcpy(a->d, words, sizeof(BN_ULONG) * num_words); in bn_set_words()
196 a->top = num_words; in bn_set_words()
/third_party/skia/third_party/externals/spirv-tools/tools/cfg/
Dbin_to_dot.cpp169 size_t num_words, std::iostream* out, in BinaryToDot() argument
177 spvtools::FriendlyNameMapper friendly_mapper(context, words, num_words); in BinaryToDot()
180 if (auto error = spvBinaryParse(context, &converter, words, num_words, in BinaryToDot()
/third_party/spirv-tools/tools/cfg/
Dbin_to_dot.cpp169 size_t num_words, std::iostream* out, in BinaryToDot() argument
177 spvtools::FriendlyNameMapper friendly_mapper(context, words, num_words); in BinaryToDot()
180 if (auto error = spvBinaryParse(context, &converter, words, num_words, in BinaryToDot()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/cfg/
Dbin_to_dot.cpp169 size_t num_words, std::iostream* out, in BinaryToDot() argument
177 spvtools::FriendlyNameMapper friendly_mapper(context, words, num_words); in BinaryToDot()
180 if (auto error = spvBinaryParse(context, &converter, words, num_words, in BinaryToDot()
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dspirv_builder.c58 needed += b->num_words; in spirv_buffer_prepare()
59 if (b->room >= b->num_words + needed) in spirv_buffer_prepare()
68 assert(b->num_words < b->room); in spirv_buffer_emit_word()
69 b->words[b->num_words] = word; in spirv_buffer_emit_word()
70 return b->num_words++; in spirv_buffer_emit_word()
107 size_t pos = b->extensions.num_words; in spirv_builder_emit_extension()
141 size_t pos = b->entry_points.num_words; in spirv_builder_emit_entry_point()
190 size_t pos = b->debug_names.num_words; in spirv_builder_emit_name()
740 *position = b->instructions.num_words; in spirv_builder_emit_phi()
1611 size_t pos = b->imports.num_words; in spirv_builder_import()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_repair_ssa.c40 const unsigned num_words = BITSET_WORDS(state->impl->num_blocks); in prep_build_phi() local
45 state->def_set = ralloc_array(NULL, BITSET_WORD, num_words); in prep_build_phi()
52 memset(state->def_set, 0, num_words * sizeof(*state->def_set)); in prep_build_phi()
/third_party/mesa3d/src/compiler/spirv/tests/
Dhelpers.h44 void get_nir(size_t num_words, const uint32_t *words) in get_nir() argument
62 shader = spirv_to_nir(words, num_words, NULL, 0, in get_nir()
/third_party/spirv-tools/source/opt/
Dinstruction.cpp81 inst.words + current_payload.offset + current_payload.num_words); in Instruction()
100 inst.words + current_payload.offset + current_payload.num_words); in Instruction()
192 const uint32_t num_words = 1 + NumOperandWords(); in ToBinaryWithoutAttachedDebugInsts() local
193 binary->push_back((num_words << 16) | static_cast<uint16_t>(opcode_)); in ToBinaryWithoutAttachedDebugInsts()
1029 uint32_t num_words = kDebugScopeNumWords; in ToBinary() local
1032 num_words = kDebugNoScopeNumWords; in ToBinary()
1035 num_words = kDebugScopeNumWordsWithoutInlinedAt; in ToBinary()
1038 (num_words << 16) | static_cast<uint16_t>(SpvOpExtInst), in ToBinary()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dinstruction.cpp81 inst.words + current_payload.offset + current_payload.num_words); in Instruction()
101 inst.words + current_payload.offset + current_payload.num_words); in Instruction()
194 const uint32_t num_words = 1 + NumOperandWords(); in ToBinaryWithoutAttachedDebugInsts() local
195 binary->push_back((num_words << 16) | static_cast<uint16_t>(opcode_)); in ToBinaryWithoutAttachedDebugInsts()
1047 uint32_t num_words = kDebugScopeNumWords; in ToBinary() local
1050 num_words = kDebugNoScopeNumWords; in ToBinary()
1053 num_words = kDebugScopeNumWordsWithoutInlinedAt; in ToBinary()
1056 (num_words << 16) | static_cast<uint16_t>(SpvOpExtInst), in ToBinary()

1234