Home
last modified time | relevance | path

Searched refs:CallOp (Results 1 – 25 of 79) sorted by relevance

1234

/external/llvm-project/mlir/lib/Conversion/GPUToVulkan/
DConvertLaunchFuncToVulkanCalls.cpp104 bool isVulkanLaunchCallOp(LLVM::CallOp callOp) { in isVulkanLaunchCallOp()
111 bool isCInterfaceVulkanLaunchCallOp(LLVM::CallOp callOp) { in isCInterfaceVulkanLaunchCallOp()
119 void translateVulkanLaunchCall(LLVM::CallOp vulkanLaunchCallOp);
122 void createBindMemRefCalls(LLVM::CallOp vulkanLaunchCallOp,
126 void collectSPIRVAttributes(LLVM::CallOp vulkanLaunchCallOp);
172 getOperation().walk([this](LLVM::CallOp op) { in runOnOperation()
178 getOperation().walk([this](LLVM::CallOp op) { in runOnOperation()
185 LLVM::CallOp vulkanLaunchCallOp) { in collectSPIRVAttributes()
208 LLVM::CallOp cInterfaceVulkanLaunchCallOp, Value vulkanRuntime) { in createBindMemRefCalls()
248 builder.create<LLVM::CallOp>( in createBindMemRefCalls()
[all …]
/external/llvm-project/mlir/lib/Conversion/AsyncToLLVM/
DAsyncToLLVM.cpp237 blockBuilder.create<LLVM::CallOp>(loc, TypeRange(), in addResumeFunction()
311 builder.create<CallOp>(loc, kCreateToken, TokenType::get(ctx)); in setupCoroMachinery()
325 auto coroId = builder.create<LLVM::CallOp>( in setupCoroMachinery()
330 auto coroSize = builder.create<LLVM::CallOp>( in setupCoroMachinery()
334 auto coroAlloc = builder.create<LLVM::CallOp>( in setupCoroMachinery()
339 auto coroHdl = builder.create<LLVM::CallOp>( in setupCoroMachinery()
352 auto coroMem = builder.create<LLVM::CallOp>( in setupCoroMachinery()
357 builder.create<LLVM::CallOp>(loc, TypeRange(), in setupCoroMachinery()
370 builder.create<LLVM::CallOp>(loc, i1, builder.getSymbolRefAttr(kCoroEnd), in setupCoroMachinery()
434 auto coroSuspend = builder.create<LLVM::CallOp>( in addSuspensionPoint()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tfr/utils/
Dutils.h49 LogicalResult CopyAllowedUnregisteredAttrs(Operation* src, CallOp dst,
54 LogicalResult CopyNonSymbolRefAttrs(CallOp src, Operation* dst);
58 void PropagateAttrsToOperations(CallOp src, Block::iterator begin,
Dutils.cc34 void CollectAllowedAttrs(CallOp src, NamedAttrList* attrs) { in CollectAllowedAttrs()
136 LogicalResult CopyAllowedUnregisteredAttrs(Operation* src, CallOp dst, in CopyAllowedUnregisteredAttrs()
154 LogicalResult CopyNonSymbolRefAttrs(CallOp src, Operation* dst) { in CopyNonSymbolRefAttrs()
165 void PropagateAttrsToOperations(CallOp src, Block::iterator begin, in PropagateAttrsToOperations()
/external/llvm-project/mlir/lib/Dialect/StandardOps/Transforms/
DFuncConversions.cpp18 struct CallOpSignatureConversion : public OpConversionPattern<CallOp> {
19 using OpConversionPattern<CallOp>::OpConversionPattern;
23 matchAndRewrite(CallOp callOp, ArrayRef<Value> operands, in matchAndRewrite()
33 rewriter.replaceOpWithNewOp<CallOp>(callOp, callOp.callee(), in matchAndRewrite()
DDecomposeCallGraphTypes.cpp126 : public DecomposeCallGraphTypesOpConversionPattern<CallOp> {
131 matchAndRewrite(CallOp op, ArrayRef<Value> operands, in matchAndRewrite()
155 CallOp newCallOp = rewriter.create<CallOp>(op.getLoc(), op.getCallee(), in matchAndRewrite()
DFuncBufferize.cpp40 target.addDynamicallyLegalOp<CallOp>( in runOnOperation()
41 [&](CallOp op) { return typeConverter.isLegal(op); }); in runOnOperation()
/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/
Draise_to_tf.cc72 class RewriteTFRCallOp : public OpRewritePattern<CallOp> {
73 using OpRewritePattern<CallOp>::OpRewritePattern;
78 : OpRewritePattern<CallOp>(context), in RewriteTFRCallOp()
82 LogicalResult matchAndRewrite(CallOp call_op,
101 PatternRewriter& rewriter, TFRFuncOp signature, CallOp call_op,
113 PatternRewriter& rewriter, CallOp call_op,
226 PatternRewriter& rewriter, TFRFuncOp signature, CallOp call_op, in CollectInputsAndAttributes()
359 PatternRewriter& rewriter, CallOp call_op, in CreateAndReplaceOp()
409 CallOp call_op, PatternRewriter& rewriter) const { in matchAndRewrite()
Ddecompose.cc197 auto new_op = builder.create<CallOp>( in RewriteUnregisteredTFOps()
251 auto walk_result = func.walk([&](CallOp call_op) { in InlineTFRFuncCalls()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dregion_control_flow_to_functional.cc167 llvm::Optional<CallOp> IsSingleCallRegion(Region& region, in IsSingleCallRegion()
189 CallOp call = dyn_cast<CallOp>(*it++); in IsSingleCallRegion()
214 bool MatchCallArgs(CallOp first, CallOp second, ArgMatcherFn matcher) { in MatchCallArgs()
263 TrivialTransformInfo(llvm::Optional<CallOp> first_call, in TrivialTransformInfo()
264 llvm::Optional<CallOp> second_call, in TrivialTransformInfo()
/external/llvm-project/flang/include/flang/Optimizer/Dialect/
DFIROpsSupport.h27 return isa<fir::CallOp>(op) || isa<fir::DispatchOp>(op) || in isaCall()
28 isa<mlir::CallOp>(op) || isa<mlir::CallIndirectOp>(op); in isaCall()
/external/llvm-project/mlir/lib/Transforms/
DNormalizeMemRefs.cpp129 funcOp.walk([&](CallOp callOp) { in setCalleesAndCallersNonNormalizable()
165 .walk([&](CallOp callOp) -> WalkResult { in areMemRefsNormalizable()
254 auto callOp = dyn_cast<CallOp>(userOp); in updateFunctionSignature()
258 Operation *newCallOp = builder.create<CallOp>( in updateFunctionSignature()
395 op->getNumResults() > 0 && !isa<CallOp>(op) && !funcOp.isExternal()) { in normalizeFuncOpMemRefs()
DBufferResultsToOutParams.cpp84 module.walk([&](CallOp op) { in updateCalls()
112 auto newCall = builder.create<CallOp>(op.getLoc(), op.calleeAttr(), in updateCalls()
/external/llvm-project/mlir/test/lib/Transforms/
DTestDecomposeCallGraphTypes.cpp43 target.addDynamicallyLegalOp<CallOp>( in runOnOperation()
44 [&](CallOp op) { return typeConverter.isLegal(op); }); in runOnOperation()
/external/llvm-project/mlir/lib/Conversion/LinalgToStandard/
DLinalgToStandard.cpp112 rewriter.replaceOpWithNewOp<mlir::CallOp>( in matchAndRewrite()
132 rewriter.replaceOpWithNewOp<mlir::CallOp>( in matchAndRewrite()
180 rewriter.replaceOpWithNewOp<mlir::CallOp>( in matchAndRewrite()
/external/llvm-project/flang/lib/Lower/
DIO.cpp148 builder.create<mlir::CallOp>(loc, getIoMsg, args); in genEndIO()
152 auto call = builder.create<mlir::CallOp>(loc, endIoStatement, endArgs); in genEndIO()
260 ok = builder.create<mlir::CallOp>(loc, outputFunc, outputFuncArgs) in genOutputItemList()
341 ok = builder.create<mlir::CallOp>(loc, inputFunc, inputFuncArgs) in genInputItemList()
348 ok = builder.create<mlir::CallOp>(loc, inputFunc, inputFuncArgs) in genInputItemList()
518 return builder.create<mlir::CallOp>(loc, ioFunc, ioArgs).getResult(0); in genIntIOOption()
534 return builder.create<mlir::CallOp>(loc, ioFunc, ioArgs).getResult(0); in genCharIOOption()
556 return builder.create<mlir::CallOp>(loc, ioFunc, ioArgs).getResult(0); in genIOOption()
616 return builder.create<mlir::CallOp>(loc, ioFunc, ioArgs).getResult(0); in genIOOption()
677 return builder.create<mlir::CallOp>(loc, ioFunc, ioArgs).getResult(0); in genIOOption()
[all …]
/external/llvm-project/mlir/examples/toy/Ch6/mlir/
DLowerToLLVM.cpp86 rewriter.create<CallOp>(loc, printfRef, rewriter.getIntegerType(32), in matchAndRewrite()
95 rewriter.create<CallOp>(loc, printfRef, rewriter.getIntegerType(32), in matchAndRewrite()
/external/llvm-project/mlir/examples/toy/Ch7/mlir/
DLowerToLLVM.cpp86 rewriter.create<CallOp>(loc, printfRef, rewriter.getIntegerType(32), in matchAndRewrite()
95 rewriter.create<CallOp>(loc, printfRef, rewriter.getIntegerType(32), in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dtrim_functions_tf.cc109 auto walk_result = func.walk([&](CallOp op) -> WalkResult { in Verify()
Dlegalize_tf_while.cc62 auto call = builder.create<CallOp>(while_op.getLoc(), func, new_operands); in RunOnWhile()
Dwhile_loop_outline.cc68 if (!isa<CallOp>(*it)) return false; in IsAlreadyOutlined()
231 auto call = b.create<CallOp>(while_op.getLoc(), func, new_operands); in OutlineWhile()
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/
Dtf_framework_legalize_to_llvm.cc109 .create<LLVM::CallOp>( in matchAndRewrite()
231 rewriter.replaceOpWithNewOp<LLVM::CallOp>( in matchAndRewrite()
266 rewriter.replaceOpWithNewOp<LLVM::CallOp>( in matchAndRewrite()
Dembed_memref_prints.cc56 return b->create<CallOp>(loc, callee_func, arg); in emitCallToPrint()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_communication.cc166 if (!isa<mlir::CallOp>(use.getUser())) continue; in GetFunctionsToRewrite()
382 Value RewriteCallOp(OpBuilder& builder, CallOp call, in RewriteCallOp()
389 auto new_call = builder.create<CallOp>( in RewriteCallOp()
777 } else if (auto call = dyn_cast<mlir::CallOp>(curr_op)) { in RewriteFunction()
826 if (auto call = dyn_cast<mlir::CallOp>(op)) in IsFunctionCallWithCommunication()
/external/llvm-project/mlir/include/mlir/Dialect/StandardOps/EDSC/
DIntrinsics.h21 using std_call = OperationBuilder<CallOp>;

1234