Home
last modified time | relevance | path

Searched refs:consumer (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/external/deqp-deps/SPIRV-Tools/source/opt/
Dlog.h37 #define SPIRV_ASSERT(consumer, ...) SPIRV_ASSERT_IMPL(consumer, __VA_ARGS__) argument
39 #define SPIRV_ASSERT(consumer, ...) argument
50 #define SPIRV_DEBUG(consumer, ...) SPIRV_DEBUG_IMPL(consumer, __VA_ARGS__) argument
52 #define SPIRV_DEBUG(consumer, ...) argument
57 #define SPIRV_UNIMPLEMENTED(consumer, feature) \ argument
59 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
65 #define SPIRV_UNREACHABLE(consumer) \ argument
67 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
82 inline void Log(const MessageConsumer& consumer, spv_message_level_t level, in Log() argument
85 if (consumer != nullptr) consumer(level, source, position, message); in Log()
[all …]
Dbuild_module.cpp50 MessageConsumer consumer, in BuildModule() argument
54 SetContextMessageConsumer(context, consumer); in BuildModule()
56 auto irContext = MakeUnique<opt::IRContext>(env, consumer); in BuildModule()
57 opt::IrLoader loader(consumer, irContext->module()); in BuildModule()
69 MessageConsumer consumer, in BuildModule() argument
73 t.SetMessageConsumer(consumer); in BuildModule()
76 return BuildModule(env, consumer, binary.data(), binary.size()); in BuildModule()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dlog.h37 #define SPIRV_ASSERT(consumer, ...) SPIRV_ASSERT_IMPL(consumer, __VA_ARGS__) argument
39 #define SPIRV_ASSERT(consumer, ...) argument
50 #define SPIRV_DEBUG(consumer, ...) SPIRV_DEBUG_IMPL(consumer, __VA_ARGS__) argument
52 #define SPIRV_DEBUG(consumer, ...) argument
57 #define SPIRV_UNIMPLEMENTED(consumer, feature) \ argument
59 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
65 #define SPIRV_UNREACHABLE(consumer) \ argument
67 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
82 inline void Log(const MessageConsumer& consumer, spv_message_level_t level, in Log() argument
85 if (consumer != nullptr) consumer(level, source, position, message); in Log()
[all …]
Dbuild_module.cpp50 MessageConsumer consumer, in BuildModule() argument
54 SetContextMessageConsumer(context, consumer); in BuildModule()
56 auto irContext = MakeUnique<opt::IRContext>(env, consumer); in BuildModule()
57 opt::IrLoader loader(consumer, irContext->module()); in BuildModule()
69 MessageConsumer consumer, in BuildModule() argument
73 t.SetMessageConsumer(consumer); in BuildModule()
76 return BuildModule(env, consumer, binary.data(), binary.size()); in BuildModule()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dinstruction_fusion.cc117 bool GpuInstructionFusion::ShouldFuseInexpensiveChecks(HloInstruction* consumer, in ShouldFuseInexpensiveChecks() argument
119 HloInstruction* producer = consumer->mutable_operand(operand_index); in ShouldFuseInexpensiveChecks()
128 if (consumer->operand_count() == 1 && in ShouldFuseInexpensiveChecks()
129 consumer->opcode() == HloOpcode::kFusion && in ShouldFuseInexpensiveChecks()
130 consumer->fusion_kind() == HloInstruction::FusionKind::kLoop && in ShouldFuseInexpensiveChecks()
131 Match(consumer->fused_expression_root(), in ShouldFuseInexpensiveChecks()
150 } else if (consumer->operand_count() == 2 && in ShouldFuseInexpensiveChecks()
151 consumer->opcode() == HloOpcode::kMultiply) { in ShouldFuseInexpensiveChecks()
152 const HloInstruction* alpha = consumer->operand(other_operand_index); in ShouldFuseInexpensiveChecks()
159 } else if (consumer->operand_count() == 2 && in ShouldFuseInexpensiveChecks()
[all …]
Dmulti_output_fusion.cc133 for (HloInstruction* consumer : computation()->MakeInstructionPostOrder()) { in DoProducerConsumerMultiOutputFusion()
134 if (consumer->user_count() == 0) { in DoProducerConsumerMultiOutputFusion()
135 VLOG(3) << consumer->name() << " has no users."; in DoProducerConsumerMultiOutputFusion()
138 if (!IsInputFusibleReduction(*consumer)) { in DoProducerConsumerMultiOutputFusion()
139 VLOG(3) << consumer->name() << " is not an input-fusible reduction."; in DoProducerConsumerMultiOutputFusion()
142 VLOG(3) << consumer->name() in DoProducerConsumerMultiOutputFusion()
145 auto consumer_operands = consumer->operands(); in DoProducerConsumerMultiOutputFusion()
165 if (!ShapesCompatibleForMultiOutputFusion(*producer, *consumer)) { in DoProducerConsumerMultiOutputFusion()
169 if (!LayoutsAreReduceInputFusionFriendly(*producer, *consumer)) { in DoProducerConsumerMultiOutputFusion()
188 potential_fusion_list.emplace_back(producer, consumer); in DoProducerConsumerMultiOutputFusion()
[all …]
/external/perfetto/src/tracing/core/
Dtracing_service_impl_unittest.cc246 std::unique_ptr<MockConsumer> consumer = CreateMockConsumer(); in TEST_F() local
247 consumer->Connect(svc.get()); in TEST_F()
257 consumer->EnableTracing(trace_config); in TEST_F()
265 consumer->StartTracing(); in TEST_F()
267 consumer->DisableTracing(); in TEST_F()
269 consumer->WaitForTracingDisabled(); in TEST_F()
275 std::unique_ptr<MockConsumer> consumer = CreateMockConsumer(); in TEST_F() local
276 consumer->Connect(svc.get()); in TEST_F()
299 consumer->EnableTracing(trace_config); in TEST_F()
316 consumer->WaitForTracingDisabled(); in TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_instruction_fusion.cc59 const HloInstruction* consumer) { in CanBeOutputFused() argument
60 return consumer->opcode() == HloOpcode::kAdd && in CanBeOutputFused()
65 bool CanBeOutputFusedIntoSomeOperand(const HloInstruction* consumer) { in CanBeOutputFusedIntoSomeOperand() argument
66 return consumer->opcode() == HloOpcode::kAdd && in CanBeOutputFusedIntoSomeOperand()
67 (CanBeOutputFused(consumer->operand(0), consumer) || in CanBeOutputFusedIntoSomeOperand()
68 CanBeOutputFused(consumer->operand(1), consumer)); in CanBeOutputFusedIntoSomeOperand()
72 bool CpuInstructionFusion::ShouldFuse(HloInstruction* consumer, in ShouldFuse() argument
74 HloInstruction* producer = consumer->mutable_operand(operand_index); in ShouldFuse()
76 << consumer->ToString(); in ShouldFuse()
80 if (CanBeOutputFused(producer, consumer)) { in ShouldFuse()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/link/
Dlinker.cpp78 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()
[all …]
/external/deqp-deps/SPIRV-Tools/source/link/
Dlinker.cpp78 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()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dinstruction_fusion.cc196 HloInstruction* producer, HloInstruction* consumer, in CanFuseOnAllPaths() argument
200 if (consumer == producer) { in CanFuseOnAllPaths()
203 if (!consumer->IsFusible()) { in CanFuseOnAllPaths()
206 auto cache_it = result_cache->find(std::make_pair(producer, consumer)); in CanFuseOnAllPaths()
211 for (int64 i = 0, e = consumer->operand_count(); i < e; ++i) { in CanFuseOnAllPaths()
212 auto* consumer_operand = consumer->mutable_operand(i); in CanFuseOnAllPaths()
218 if (do_not_fuse.count(consumer_operand) > 0 || !ShouldFuse(consumer, i)) { in CanFuseOnAllPaths()
233 result_cache->emplace(std::make_pair(producer, consumer), result); in CanFuseOnAllPaths()
252 for (HloInstruction* consumer : post_order) { in ComputeGloballyUnfusible()
253 for (HloInstruction* producer : consumer->operands()) { in ComputeGloballyUnfusible()
[all …]
Dinstruction_fusion.h71 virtual bool ShouldFuse(HloInstruction* consumer, int64 operand_index);
76 virtual bool ShouldFuseIntoMultiOutput(HloInstruction* consumer, in ShouldFuseIntoMultiOutput() argument
84 const HloInstruction* consumer);
88 HloInstruction* consumer);
95 HloInstruction* consumer);
106 const HloInstruction& consumer) { in FusionWouldDuplicate() argument
107 return !(producer.users().size() == 1 && consumer.IsUserOf(&producer)); in FusionWouldDuplicate()
116 HloInstruction* consumer);
129 HloInstruction* consumer);
138 HloInstruction* producer, HloInstruction* consumer,
/external/oauth/core/src/main/java/net/oauth/
DConsumerProperties.java74 OAuthConsumer consumer; in getConsumer() local
76 consumer = pool.get(name); in getConsumer()
78 if (consumer == null) { in getConsumer()
79 consumer = newConsumer(name); in getConsumer()
84 pool.put(name, consumer); in getConsumer()
90 consumer = first; in getConsumer()
93 return consumer; in getConsumer()
105 OAuthConsumer consumer = new OAuthConsumer(consumerProperties in newConsumer() local
109 consumer.setProperty("name", name); in newConsumer()
111 consumer.setProperty("serviceProvider.baseURL", baseURL); in newConsumer()
[all …]
/external/llvm/tools/llvm-diff/
DDifferenceEngine.h38 Engine.consumer.enterContext(L, R); in Context()
42 Engine.consumer.exitContext(); in ~Context()
60 DifferenceEngine(Consumer &consumer) in DifferenceEngine() argument
61 : consumer(consumer), globalValueOracle(nullptr) {} in DifferenceEngine()
66 consumer.log(text); in log()
69 return LogBuilder(consumer, text); in logf()
71 Consumer& getConsumer() const { return consumer; } in getConsumer()
85 Consumer &consumer;
DDiffLog.h30 Consumer *consumer; variable
41 LogBuilder(Consumer &c, StringRef Format) : consumer(&c), Format(Format) {} in LogBuilder()
43 : consumer(L.consumer), Format(L.Format), in LogBuilder()
45 L.consumer = nullptr; in LogBuilder()
65 Consumer &consumer; variable
68 DiffLogBuilder(Consumer &c) : consumer(c) {} in DiffLogBuilder()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-diff/
DDifferenceEngine.h38 Engine.consumer.enterContext(L, R); in Context()
42 Engine.consumer.exitContext(); in ~Context()
60 DifferenceEngine(Consumer &consumer) in DifferenceEngine() argument
61 : consumer(consumer), globalValueOracle(nullptr) {} in DifferenceEngine()
66 consumer.log(text); in log()
69 return LogBuilder(consumer, text); in logf()
71 Consumer& getConsumer() const { return consumer; } in getConsumer()
85 Consumer &consumer;
DDiffLog.h30 Consumer *consumer; variable
41 LogBuilder(Consumer &c, StringRef Format) : consumer(&c), Format(Format) {} in LogBuilder()
43 : consumer(L.consumer), Format(L.Format), in LogBuilder()
45 L.consumer = nullptr; in LogBuilder()
65 Consumer &consumer; variable
68 DiffLogBuilder(Consumer &c) : consumer(c) {} in DiffLogBuilder()
/external/swiftshader/third_party/LLVM/tools/llvm-diff/
DDifferenceEngine.h40 Engine.consumer.enterContext(L, R); in Context()
44 Engine.consumer.exitContext(); in ~Context()
60 DifferenceEngine(LLVMContext &context, Consumer &consumer) in DifferenceEngine() argument
61 : context(context), consumer(consumer), globalValueOracle(0) {} in DifferenceEngine()
66 consumer.log(text); in log()
69 return LogBuilder(consumer, text); in logf()
71 Consumer& getConsumer() const { return consumer; } in getConsumer()
86 Consumer &consumer; variable
/external/llvm/utils/lit/lit/
Drun.py71 def __init__(self, run_instance, provider, consumer): argument
74 self.consumer = consumer
82 self.consumer.task_finished()
93 self.consumer.update(test_index, test)
214 consumer = None
220 consumer = MultiprocessResultsConsumer(self, display, jobs)
226 consumer = None
227 if not consumer:
231 consumer = ThreadResultsConsumer(display)
260 run_one_tester(self, provider, consumer)
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dreducer.cpp33 MessageConsumer consumer; // Message consumer. member
46 impl_->consumer = std::move(c); in SetMessageConsumer()
65 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
91 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
97 impl_->consumer( in Run()
107 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
113 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
120 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
135 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
139 impl_->consumer(SPV_MSG_INFO, nullptr, {}, "No more to reduce; stopping."); in Run()
/external/deqp-deps/SPIRV-Tools/source/reduce/
Dreducer.cpp33 MessageConsumer consumer; // Message consumer. member
46 impl_->consumer = std::move(c); in SetMessageConsumer()
65 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
91 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
97 impl_->consumer( in Run()
107 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
113 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
120 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
135 impl_->consumer(SPV_MSG_INFO, nullptr, {}, in Run()
139 impl_->consumer(SPV_MSG_INFO, nullptr, {}, "No more to reduce; stopping."); in Run()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dloop_optimizer.cc99 for (auto* consumer : consumers) { in HandleInvariantEnter() local
100 if (invariant_nodes_.count(consumer)) { in HandleInvariantEnter()
101 for (int i = 0; i < consumer->input_size(); ++i) { in HandleInvariantEnter()
102 if (NodeName(consumer->input(i)) == node->name()) { in HandleInvariantEnter()
103 consumer->set_input(i, enter_input); in HandleInvariantEnter()
104 node_map_->AddOutput(NodeName(enter_input), consumer->name()); in HandleInvariantEnter()
105 node_map_->RemoveOutput(node->name(), consumer->name()); in HandleInvariantEnter()
109 consumer->add_input(control_input); in HandleInvariantEnter()
110 node_map_->AddOutput(NodeName(control_input), consumer->name()); in HandleInvariantEnter()
144 for (auto* consumer : consumers) { in HandleConst() local
[all …]
/external/tensorflow/tensorflow/core/framework/
Dversions.cc23 Status CheckVersions(const VersionDef& versions, int consumer, int min_producer, in CheckVersions() argument
26 if (consumer < min_producer) { in CheckVersions()
28 consumer, " < min_producer ", min_producer, "."); in CheckVersions()
38 if (versions.min_consumer() > consumer) { in CheckVersions()
41 " above current version ", consumer, " for TensorFlow ", in CheckVersions()
45 if (bad_consumer == consumer) { in CheckVersions()
Dversions.proto16 // Each consumer has "consumer" and "min_producer" versions (specified
17 // elsewhere). A consumer is allowed to consume this data if
20 // consumer >= min_consumer
21 // consumer not in bad_consumers
27 // Any consumer below this version is not allowed to consume this data.
30 // Specific consumer versions which are disallowed (e.g. due to bugs).
/external/mesa3d/src/compiler/nir/
Dnir_linking_helpers.c132 nir_remove_unused_varyings(nir_shader *producer, nir_shader *consumer) in nir_remove_unused_varyings() argument
135 assert(consumer->info.stage != MESA_SHADER_VERTEX); in nir_remove_unused_varyings()
150 nir_foreach_variable(var, &consumer->inputs) { in nir_remove_unused_varyings()
153 get_variable_io_mask(var, consumer->info.stage); in nir_remove_unused_varyings()
156 get_variable_io_mask(var, consumer->info.stage); in nir_remove_unused_varyings()
171 progress = remove_unused_io_vars(consumer, &consumer->inputs, written, in nir_remove_unused_varyings()
350 compact_components(nir_shader *producer, nir_shader *consumer, uint8_t *comps, in compact_components() argument
354 struct exec_list *input_list = &consumer->inputs; in compact_components()
377 if (nir_is_per_vertex_io(var, consumer->info.stage)) { in compact_components()
467 remap_slots_and_components(input_list, consumer->info.stage, remap, in compact_components()
[all …]

12345678910>>...14