Home
last modified time | relevance | path

Searched refs:SourceOp (Results 1 – 25 of 29) sorted by relevance

12

/external/llvm-project/mlir/include/mlir/Conversion/StandardToLLVM/
DConvertStandardToLLVM.h565 template <typename SourceOp>
570 : ConvertToLLVMPattern(SourceOp::getOperationName(),
577 rewrite(cast<SourceOp>(op), operands, rewriter); in rewrite()
580 return match(cast<SourceOp>(op)); in match()
585 return matchAndRewrite(cast<SourceOp>(op), operands, rewriter); in matchAndRewrite()
590 virtual void rewrite(SourceOp op, ArrayRef<Value> operands, in rewrite()
594 virtual LogicalResult match(SourceOp op) const { in match()
598 matchAndRewrite(SourceOp op, ArrayRef<Value> operands, in matchAndRewrite()
633 template <typename SourceOp, typename TargetOp>
634 class OneToOneConvertToLLVMPattern : public ConvertOpToLLVMPattern<SourceOp> {
[all …]
/external/tensorflow/tensorflow/core/common_runtime/
Dplacer_test.cc409 Node* input = ops::SourceOp("TestInput", b.opts().WithName("in")); in TEST_F()
428 Node* input = ops::SourceOp("TestInput", b.opts().WithName("in")); in TEST_F()
448 Node* input = ops::SourceOp("TestInput", b.opts().WithName("in")); in TEST_F()
472 Node* input = ops::SourceOp("TestGPUOutput", b.opts().WithName("in")); in TEST_F()
489 Node* input = ops::SourceOp("TestGPUOutput", b.opts().WithName("in")); in TEST_F()
551 Node* ds = ops::SourceOp("CreateDatasetSP", b.opts().WithName("ds")); in TEST_F()
566 Node* ds = ops::SourceOp("CreateDatasetRP", b.opts().WithName("ds")); in TEST_F()
581 Node* ds = ops::SourceOp("CreateDatasetNP", b.opts().WithName("ds")); in TEST_F()
596 Node* ds = ops::SourceOp("CreateDatasetNP", b.opts().WithName("ds")); in TEST_F()
611 Node* ds = ops::SourceOp("CreateDatasetSP", b.opts().WithName("ds")); in TEST_F()
[all …]
/external/llvm-project/mlir/lib/Conversion/GPUToSPIRV/
DConvertGPUToSPIRV.cpp27 template <typename SourceOp, spirv::BuiltIn builtin>
28 class LaunchConfigConversion : public SPIRVOpLowering<SourceOp> {
30 using SPIRVOpLowering<SourceOp>::SPIRVOpLowering;
33 matchAndRewrite(SourceOp op, ArrayRef<Value> operands,
39 template <typename SourceOp, spirv::BuiltIn builtin>
40 class SingleDimLaunchConfigConversion : public SPIRVOpLowering<SourceOp> {
42 using SPIRVOpLowering<SourceOp>::SPIRVOpLowering;
45 matchAndRewrite(SourceOp op, ArrayRef<Value> operands,
117 template <typename SourceOp, spirv::BuiltIn builtin>
118 LogicalResult LaunchConfigConversion<SourceOp, builtin>::matchAndRewrite( in matchAndRewrite()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_quantize_helper.h133 template <typename SourceOp>
134 struct PrepareLstmOutputScale : public OpRewritePattern<SourceOp> {
137 : OpRewritePattern<SourceOp>(context) {} in PrepareLstmOutputScale()
138 LogicalResult matchAndRewrite(SourceOp op, in matchAndRewrite()
170 LogicalResult processRestrictScale(SourceOp op, int input_index, in processRestrictScale()
222 template <typename SourceOp>
223 struct ConvertOpStatsToQDQs : public OpRewritePattern<SourceOp> {
228 : OpRewritePattern<SourceOp>(context, benefit),
235 SourceOp op, const operator_property::OpVariant& op_variant, in processInputs()
280 SourceOp op, Operation* const_op, int input_index, in processConstantOp()
[all …]
Dlegalize_tf.cc581 template <typename SourceOp>
582 class ApplyExplicitBroadcasting : public OpRewritePattern<SourceOp> {
584 using OpRewritePattern<SourceOp>::OpRewritePattern;
586 LogicalResult matchAndRewrite(SourceOp src_op, in matchAndRewrite()
639 rewriter.replaceOpWithNewOp<SourceOp>(op, result_type, lhs, rhs); in matchAndRewrite()
/external/llvm-project/mlir/lib/Conversion/GPUCommon/
DOpToFuncCallLowering.h31 template <typename SourceOp>
36 : ConvertToLLVMPattern(SourceOp::getOperationName(), in OpToFuncCallLowering()
47 std::is_base_of<OpTrait::OneResult<SourceOp>, SourceOp>::value, in matchAndRewrite()
50 static_assert(std::is_base_of<OpTrait::SameOperandsAndResultType<SourceOp>, in matchAndRewrite()
51 SourceOp>::value, in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/jit/
Dcluster_scoping_pass_test.cc95 Node* a = ops::SourceOp("Const", builder.opts() in TEST()
99 Node* b = ops::SourceOp("Const", builder.opts() in TEST()
103 Node* unstage = ops::SourceOp( in TEST()
139 Node* a = ops::SourceOp("Const", builder.opts() in TEST()
143 Node* b = ops::SourceOp("Const", builder.opts() in TEST()
147 Node* unstage = ops::SourceOp( in TEST()
Dpartially_decluster_pass_test.cc129 ops::SourceOp("FakeNullary", builder.opts().WithName("Input")); in TEST()
165 ops::SourceOp("FakeNullary", builder.opts().WithName("Input")); in TEST()
194 ops::SourceOp("FakeNullary", builder.opts().WithName("Input")); in TEST()
224 ops::SourceOp("FakeNullary", builder.opts().WithName("Input")); in TEST()
225 Node* resource_var = ops::SourceOp("FakeResourceVar", in TEST()
255 ops::SourceOp("FakeNullary", builder.opts().WithName("Input")); in TEST()
417 ops::SourceOp("FakeNullary", builder.opts().WithName("Input")); in TEST()
Dmark_for_compilation_pass_test.cc98 ops::SourceOp("UncompilableNullary", builder.opts().WithName("A")); in TEST()
122 Node* a = ops::SourceOp("Const", builder.opts() in TEST()
142 Node* a = ops::SourceOp("Const", builder.opts() in TEST()
163 Node* a = ops::SourceOp( in TEST()
184 Node* a = ops::SourceOp("Const", builder.opts() in TEST()
258 ops::SourceOp("UncompilableNullary", builder.opts().WithName("A")); in TEST()
295 ops::SourceOp("VarHandleOp", builder.opts() in TEST()
302 Node* value = ops::SourceOp("Const", builder.opts() in TEST()
384 ops::SourceOp("UncompilableNullary", builder.opts().WithName("A")); in TEST()
450 Node* a = ops::SourceOp("Const", builder.opts() in TEST()
[all …]
Dcompilability_check_util_test.cc119 Node* const0 = ops::SourceOp("InputFloatOp", opts); in TEST_F()
162 Node* const0 = ops::SourceOp("InputFloatOp", builder.opts()); in TEST_F()
213 Node* const0 = ops::SourceOp("InputFloatOp", builder.opts()); in TEST_F()
/external/tensorflow/tensorflow/core/graph/
Dcollective_order_test.cc114 Node* a = ops::SourceOp("TestParams", in InitGraph()
116 Node* b = ops::SourceOp("TestParams", in InitGraph()
169 Node* a = ops::SourceOp("TestParams", in InitGraph2()
205 Node* w = ops::SourceOp("TestParams", in InitGraphForPruning()
207 Node* x = ops::SourceOp("TestParams", in InitGraphForPruning()
209 Node* y = ops::SourceOp("TestParams", in InitGraphForPruning()
211 Node* z = ops::SourceOp("TestParams", in InitGraphForPruning()
Dalgorithm_test.cc83 Node* w1 = SourceOp("TestParams", b.opts().WithName("W1")); in TEST()
84 Node* w2 = SourceOp("TestParams", b.opts().WithName("W2")); in TEST()
86 SourceOp("TestInput", b.opts().WithName("input").WithControlInput(w1)); in TEST()
135 Node* w1 = SourceOp("TestParams", b.opts().WithName("W1")); in TEST()
137 SourceOp("TestInput", b.opts().WithName("input").WithControlInput(w1)); in TEST()
162 Node* n0 = ops::SourceOp("TestParams", b.opts().WithName("n0")); in TEST()
Dgraph_def_builder.h193 Node* SourceOp(const string& op_name, const GraphDefBuilder::Options& opts);
Dgraph_def_builder.cc101 Node* SourceOp(const string& op_name, const GraphDefBuilder::Options& opts) { in SourceOp() function
Dsubgraph_test.cc362 last_node = ops::SourceOp("In", b.opts().WithName(name)); in BM_SubgraphHelper()
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/
DSPIRVLowering.h67 template <typename SourceOp>
68 class SPIRVOpLowering : public OpConversionPattern<SourceOp> {
72 : OpConversionPattern<SourceOp>(context, benefit),
/external/llvm-project/mlir/include/mlir/IR/
DPatternMatch.h193 template <typename SourceOp>
198 : RewritePattern(SourceOp::getOperationName(), benefit, context) {} in RewritePattern()
202 rewrite(cast<SourceOp>(op), rewriter); in rewrite()
205 return match(cast<SourceOp>(op)); in match()
209 return matchAndRewrite(cast<SourceOp>(op), rewriter); in matchAndRewrite()
214 virtual void rewrite(SourceOp op, PatternRewriter &rewriter) const { in rewrite()
217 virtual LogicalResult match(SourceOp op) const { in match()
220 virtual LogicalResult matchAndRewrite(SourceOp op, in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/StandardOps/Transforms/
DDecomposeCallGraphTypes.cpp35 template <typename SourceOp>
37 : public OpConversionPattern<SourceOp> {
43 : OpConversionPattern<SourceOp>(typeConverter, context, benefit), in DecomposeCallGraphTypesOpConversionPattern()
/external/llvm/utils/TableGen/
DPseudoLoweringEmitter.cpp179 StringMap<unsigned>::iterator SourceOp = in evaluateExpansion() local
181 if (SourceOp == SourceOperands.end()) in evaluateExpansion()
189 SourceOp->getValue(); in evaluateExpansion()
191 DEBUG(dbgs() << " " << SourceOp->getValue() << " ==> " << i << "\n"); in evaluateExpansion()
/external/llvm-project/llvm/utils/TableGen/
DPseudoLoweringEmitter.cpp197 StringMap<unsigned>::iterator SourceOp = in evaluateExpansion() local
199 if (SourceOp == SourceOperands.end()) { in evaluateExpansion()
210 SourceOp->getValue(); in evaluateExpansion()
212 LLVM_DEBUG(dbgs() << " " << SourceOp->getValue() << " ==> " << i in evaluateExpansion()
DRISCVCompressInstEmitter.cpp376 StringMap<unsigned>::iterator SourceOp = in createInstOperandMapping() local
378 if (SourceOp == SourceOperands.end()) in createInstOperandMapping()
385 SourceDag->getArgNameStr(SourceOp->getValue()) && in createInstOperandMapping()
387 DestOperandMap[i].Data.Operand = SourceOp->getValue(); in createInstOperandMapping()
388 SourceOperandMap[SourceOp->getValue()].Data.Operand = i; in createInstOperandMapping()
389 LLVM_DEBUG(dbgs() << " " << SourceOp->getValue() << " ====> " << i in createInstOperandMapping()
/external/llvm-project/mlir/include/mlir/Transforms/
DDialectConversion.h374 template <typename SourceOp>
377 : ConversionPattern(SourceOp::getOperationName(), benefit, context) {} in ConversionPattern()
380 : ConversionPattern(SourceOp::getOperationName(), benefit, typeConverter, in ConversionPattern()
387 rewrite(cast<SourceOp>(op), operands, rewriter); in rewrite()
392 return matchAndRewrite(cast<SourceOp>(op), operands, rewriter); in matchAndRewrite()
399 virtual void rewrite(SourceOp op, ArrayRef<Value> operands, in rewrite()
405 matchAndRewrite(SourceOp op, ArrayRef<Value> operands, in matchAndRewrite()
/external/tensorflow/tensorflow/core/util/
Dequal_graph_def_test.cc36 return ops::SourceOp("Input", opts); in Input()
40 return ops::SourceOp("Alternate", opts); in Alternate()
/external/llvm-project/mlir/lib/Conversion/AVX512ToLLVM/
DConvertAVX512ToLLVM.cpp35 template <typename SourceOp, typename TargetOp>
/external/tensorflow/tensorflow/core/framework/
Ddataset.cc317 *output = ops::SourceOp( in AddPlaceholderInternal()
324 *output = ops::SourceOp( in AddTensorInternal()

12