Lines Matching refs:consumer

78 spv_result_t ShiftIdsInModules(const MessageConsumer& consumer,
90 spv_result_t GenerateHeader(const MessageConsumer& consumer,
98 spv_result_t MergeModules(const MessageConsumer& consumer,
112 spv_result_t GetImportExportPairs(const MessageConsumer& consumer,
124 spv_result_t CheckImportExportCompatibility(const MessageConsumer& consumer,
141 const MessageConsumer& consumer, const LinkerOptions& options,
147 spv_result_t VerifyIds(const MessageConsumer& consumer,
150 spv_result_t ShiftIdsInModules(const MessageConsumer& consumer, in ShiftIdsInModules() argument
156 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_DATA) in ShiftIdsInModules()
159 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_DATA) in ShiftIdsInModules()
162 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_DATA) in ShiftIdsInModules()
174 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_ID) in ShiftIdsInModules()
183 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_ID) in ShiftIdsInModules()
192 spv_result_t GenerateHeader(const MessageConsumer& consumer, in GenerateHeader() argument
198 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_DATA) in GenerateHeader()
201 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_DATA) in GenerateHeader()
217 spv_result_t MergeModules(const MessageConsumer& consumer, in MergeModules() argument
224 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_DATA) in MergeModules()
262 return DiagnosticStream(position, consumer, "", SPV_ERROR_INTERNAL) in MergeModules()
273 return DiagnosticStream(position, consumer, "", SPV_ERROR_INTERNAL) in MergeModules()
298 return DiagnosticStream(position, consumer, "", SPV_ERROR_INTERNAL) in MergeModules()
358 return DiagnosticStream(position, consumer, "", SPV_ERROR_INTERNAL) in MergeModules()
373 spv_result_t GetImportExportPairs(const MessageConsumer& consumer, in GetImportExportPairs() argument
382 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_DATA) in GetImportExportPairs()
421 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_BINARY) in GetImportExportPairs()
439 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_BINARY) in GetImportExportPairs()
456 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_BINARY) in GetImportExportPairs()
459 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_BINARY) in GetImportExportPairs()
470 spv_result_t CheckImportExportCompatibility(const MessageConsumer& consumer, in CheckImportExportCompatibility() argument
483 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_BINARY) in CheckImportExportCompatibility()
496 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_BINARY) in CheckImportExportCompatibility()
514 const MessageConsumer& consumer, const LinkerOptions& options, in RemoveLinkageSpecificInstructions() argument
520 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_DATA) in RemoveLinkageSpecificInstructions()
524 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_DATA) in RemoveLinkageSpecificInstructions()
633 spv_result_t VerifyIds(const MessageConsumer& consumer, in VerifyIds() argument
643 consumer(SPV_MSG_INTERNAL_ERROR, "", {}, "Non-unique id in merged module"); in VerifyIds()
676 const MessageConsumer& consumer = c_context->consumer; in Link() local
680 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_BINARY) in Link()
690 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_BINARY) in Link()
695 c_context->target_env, consumer, binaries[i], binary_sizes[i]); in Link()
697 return DiagnosticStream(position, consumer, "", SPV_ERROR_INVALID_BINARY) in Link()
706 spv_result_t res = ShiftIdsInModules(consumer, &modules, &max_id_bound); in Link()
711 res = GenerateHeader(consumer, modules, max_id_bound, &header); in Link()
713 IRContext linked_context(c_context->target_env, consumer); in Link()
718 res = MergeModules(consumer, modules, grammar, &linked_context); in Link()
722 res = VerifyIds(consumer, &linked_context); in Link()
728 res = GetImportExportPairs(consumer, linked_context, in Link()
736 CheckImportExportCompatibility(consumer, linkings_to_do, &linked_context); in Link()
741 manager.SetMessageConsumer(consumer); in Link()
753 res = RemoveLinkageSpecificInstructions(consumer, options, linkings_to_do, in Link()