aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/cpu/ir_emitter.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-12-06 15:03:15 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-12-06 15:06:49 -0800
commitc2e6d554cfd7a19fa46c03e2e4eae264580b3692 (patch)
tree92cb0a6bd62d245846e39b112d3be3c3f5c43abb /tensorflow/compiler/xla/service/cpu/ir_emitter.h
parent697fa59286888d75f704629f4181dcca1bf6786a (diff)
[XLA:CPU] Factor out parallel function call logic into IrFunction (so it can be called from other emitters). Just code movement (no functional change).
PiperOrigin-RevId: 178158853
Diffstat (limited to 'tensorflow/compiler/xla/service/cpu/ir_emitter.h')
-rw-r--r--tensorflow/compiler/xla/service/cpu/ir_emitter.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/tensorflow/compiler/xla/service/cpu/ir_emitter.h b/tensorflow/compiler/xla/service/cpu/ir_emitter.h
index 6b576d16bb..692e2b3877 100644
--- a/tensorflow/compiler/xla/service/cpu/ir_emitter.h
+++ b/tensorflow/compiler/xla/service/cpu/ir_emitter.h
@@ -237,7 +237,7 @@ class IrEmitter : public DfsHloVisitorWithDefault {
// Get the llvm::Value* that represents the "prof_counters" argument of the
// computation function being emitted by this emitter.
- llvm::Argument* GetProfileCountersArgument();
+ llvm::Value* GetProfileCountersArgument();
// Get the xla::ExecutableRunOptions that represents the "run_options"
// argument of the computation function being emitted by this emitter.
@@ -300,18 +300,6 @@ class IrEmitter : public DfsHloVisitorWithDefault {
tensorflow::gtl::ArraySlice<llvm::Value*> parameter_addresses,
tensorflow::StringPiece name);
- // Returns an array of compute function call arguments.
- std::vector<llvm::Value*> GetArrayFunctionCallArguments(
- tensorflow::gtl::ArraySlice<llvm::Value*> parameter_addresses,
- llvm::Value* return_value_buffer, tensorflow::StringPiece name);
-
- // Emits a call to a runtime fork/join function which dispatches parallel
- // calls to 'parallel_function' (and joins threads before returning).
- Status EmitParallelForkJoin(
- tensorflow::gtl::ArraySlice<llvm::Value*> parameter_addresses,
- llvm::Value* output_address, HloComputation* computation,
- llvm::Function* parallel_function);
-
// Verifies that the element types of all of the given operand instructions
// match and are of one of the given supported types.
Status ElementTypesSameAndSupported(
@@ -493,7 +481,7 @@ class IrEmitter : public DfsHloVisitorWithDefault {
use_rdtscp_(false),
prof_counters_(nullptr) {}
ProfilingState(bool is_top_level_computation, bool use_rdtscp,
- llvm::Argument* prof_counters)
+ llvm::Value* prof_counters)
: is_top_level_computation_(is_top_level_computation),
use_rdtscp_(use_rdtscp),
prof_counters_(prof_counters) {}
@@ -526,7 +514,7 @@ class IrEmitter : public DfsHloVisitorWithDefault {
bool use_rdtscp_;
// The argument which corresponds to the profile counter buffer.
- llvm::Argument* prof_counters_;
+ llvm::Value* prof_counters_;
// The first read cycle counter in the program.
llvm::Value* first_read_cycle_start_ = nullptr;