Home
last modified time | relevance | path

Searched refs:returnOp (Results 1 – 23 of 23) sorted by relevance

/external/javassist/src/main/javassist/
DCtPrimitiveType.java28 private int returnOp; field in CtPrimitiveType
40 returnOp = opcode; in CtPrimitiveType()
98 public int getReturnOp() { return returnOp; } in getReturnOp()
/external/tensorflow/tensorflow/compiler/xla/service/mlir_gpu/
Dpasses.cc240 mlir::Operation* returnOp = func.getBody().back().getTerminator(); in runOnFunction() local
241 for (mlir::Value result : returnOp->getOperands()) { in runOnFunction()
278 for (int i = 0, e = returnOp->getNumOperands(); i < e; ++i) { in runOnFunction()
279 mlir::Value ret_op = returnOp->getOperand(i); in runOnFunction()
302 new_operands.append(returnOp->operand_begin(), returnOp->operand_end()); in runOnFunction()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dlhlo_fuse_linalg.cc72 auto returnOp = mlir::dyn_cast<mlir::ReturnOp>(block.getTerminator()); in runOnFunction() local
73 if (!returnOp) continue; in runOnFunction()
74 for (auto operand : returnOp.getOperands()) { in runOnFunction()
/external/llvm-project/mlir/examples/toy/Ch2/mlir/
DMLIRGen.cpp160 ReturnOp returnOp; in mlirGen() local
162 returnOp = dyn_cast<ReturnOp>(entryBlock.back()); in mlirGen()
163 if (!returnOp) { in mlirGen()
165 } else if (returnOp.hasOperand()) { in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch3/mlir/
DMLIRGen.cpp160 ReturnOp returnOp; in mlirGen() local
162 returnOp = dyn_cast<ReturnOp>(entryBlock.back()); in mlirGen()
163 if (!returnOp) { in mlirGen()
165 } else if (returnOp.hasOperand()) { in mlirGen()
/external/llvm-project/mlir/examples/toy/Ch4/mlir/
DMLIRGen.cpp160 ReturnOp returnOp; in mlirGen() local
162 returnOp = dyn_cast<ReturnOp>(entryBlock.back()); in mlirGen()
163 if (!returnOp) { in mlirGen()
165 } else if (returnOp.hasOperand()) { in mlirGen()
DDialect.cpp58 auto returnOp = cast<ReturnOp>(op); in handleTerminator() local
61 assert(returnOp.getNumOperands() == valuesToRepl.size()); in handleTerminator()
62 for (const auto &it : llvm::enumerate(returnOp.getOperands())) in handleTerminator()
/external/llvm-project/mlir/examples/toy/Ch5/mlir/
DMLIRGen.cpp160 ReturnOp returnOp; in mlirGen() local
162 returnOp = dyn_cast<ReturnOp>(entryBlock.back()); in mlirGen()
163 if (!returnOp) { in mlirGen()
165 } else if (returnOp.hasOperand()) { in mlirGen()
DDialect.cpp58 auto returnOp = cast<ReturnOp>(op); in handleTerminator() local
61 assert(returnOp.getNumOperands() == valuesToRepl.size()); in handleTerminator()
62 for (const auto &it : llvm::enumerate(returnOp.getOperands())) in handleTerminator()
/external/llvm-project/mlir/examples/toy/Ch6/mlir/
DMLIRGen.cpp160 ReturnOp returnOp; in mlirGen() local
162 returnOp = dyn_cast<ReturnOp>(entryBlock.back()); in mlirGen()
163 if (!returnOp) { in mlirGen()
165 } else if (returnOp.hasOperand()) { in mlirGen()
DDialect.cpp58 auto returnOp = cast<ReturnOp>(op); in handleTerminator() local
61 assert(returnOp.getNumOperands() == valuesToRepl.size()); in handleTerminator()
62 for (const auto &it : llvm::enumerate(returnOp.getOperands())) in handleTerminator()
/external/llvm-project/mlir/examples/toy/Ch7/mlir/
DMLIRGen.cpp213 ReturnOp returnOp; in mlirGen() local
215 returnOp = dyn_cast<ReturnOp>(entryBlock.back()); in mlirGen()
216 if (!returnOp) { in mlirGen()
218 } else if (returnOp.hasOperand()) { in mlirGen()
222 *returnOp.operand_type_begin())); in mlirGen()
DDialect.cpp59 auto returnOp = cast<ReturnOp>(op); in handleTerminator() local
62 assert(returnOp.getNumOperands() == valuesToRepl.size()); in handleTerminator()
63 for (const auto &it : llvm::enumerate(returnOp.getOperands())) in handleTerminator()
/external/llvm-project/mlir/lib/Conversion/GPUToSPIRV/
DConvertGPUToSPIRV.cpp92 matchAndRewrite(gpu::ReturnOp returnOp, ArrayRef<Value> operands,
313 gpu::ReturnOp returnOp, ArrayRef<Value> operands, in matchAndRewrite() argument
318 rewriter.replaceOpWithNewOp<spirv::ReturnOp>(returnOp); in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/GPU/IR/
DGPUDialect.cpp780 static LogicalResult verify(gpu::ReturnOp returnOp) { in verify() argument
781 GPUFuncOp function = returnOp->getParentOfType<GPUFuncOp>(); in verify()
785 if (funType.getNumResults() != returnOp.operands().size()) in verify()
786 return returnOp.emitOpError() in verify()
792 llvm::zip(function.getType().getResults(), returnOp.operands()))) { in verify()
797 return returnOp.emitOpError() << "unexpected type `" << operand.getType() in verify()
/external/llvm-project/mlir/lib/Transforms/
DNormalizeMemRefs.cpp210 funcOp.walk([&](ReturnOp returnOp) { in updateFunctionSignature() argument
211 for (const auto &operandEn : llvm::enumerate(returnOp.getOperands())) { in updateFunctionSignature()
/external/llvm-project/mlir/test/lib/Dialect/Test/
DTestDialect.cpp134 auto returnOp = dyn_cast<TestReturnOp>(op); in handleTerminator() local
135 if (!returnOp) in handleTerminator()
139 assert(returnOp.getNumOperands() == valuesToRepl.size()); in handleTerminator()
140 for (const auto &it : llvm::enumerate(returnOp.getOperands())) in handleTerminator()
/external/llvm-project/mlir/lib/Conversion/StandardToSPIRV/
DConvertStandardToSPIRV.cpp463 matchAndRewrite(ReturnOp returnOp, ArrayRef<Value> operands,
925 ReturnOpPattern::matchAndRewrite(ReturnOp returnOp, ArrayRef<Value> operands, in matchAndRewrite() argument
927 if (returnOp.getNumOperands()) { in matchAndRewrite()
930 rewriter.replaceOpWithNewOp<spirv::ReturnOp>(returnOp); in matchAndRewrite()
/external/llvm-project/mlir/docs/Tutorials/Toy/
DCh-4.md88 auto returnOp = cast<ReturnOp>(op);
91 assert(returnOp.getNumOperands() == valuesToRepl.size());
92 for (const auto &it : llvm::enumerate(returnOp.getOperands()))
/external/llvm-project/mlir/lib/Dialect/StandardOps/IR/
DOps.cpp68 auto returnOp = dyn_cast<ReturnOp>(op); in handleTerminator() local
69 if (!returnOp) in handleTerminator()
74 builder.create<BranchOp>(op->getLoc(), newDest, returnOp.getOperands()); in handleTerminator()
83 auto returnOp = cast<ReturnOp>(op); in handleTerminator() local
86 assert(returnOp.getNumOperands() == valuesToRepl.size()); in handleTerminator()
87 for (const auto &it : llvm::enumerate(returnOp.getOperands())) in handleTerminator()
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/
DConvertSPIRVToLLVM.cpp968 matchAndRewrite(spirv::ReturnOp returnOp, ArrayRef<Value> operands, in matchAndRewrite() argument
970 rewriter.replaceOpWithNewOp<LLVM::ReturnOp>(returnOp, ArrayRef<Type>(), in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVDialect.cpp94 if (auto returnOp = dyn_cast<spirv::ReturnOp>(op)) { in handleTerminator() local
DSPIRVOps.cpp2607 static LogicalResult verify(spirv::ReturnOp returnOp) { in verify() argument