[Mlir-commits] [mlir] 0f06da6 - [mlir][llvm] Mark LLVMReturnOp as ReturnLike

Jeff Niu llvmlistbot at llvm.org
Mon Dec 5 20:38:50 PST 2022


Author: Jeff Niu
Date: 2022-12-05T20:38:37-08:00
New Revision: 0f06da6412b83754b274f4b1edf2e3c766724e2e

URL: https://github.com/llvm/llvm-project/commit/0f06da6412b83754b274f4b1edf2e3c766724e2e
DIFF: https://github.com/llvm/llvm-project/commit/0f06da6412b83754b274f4b1edf2e3c766724e2e.diff

LOG: [mlir][llvm] Mark LLVMReturnOp as ReturnLike

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D139388

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td b/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
index 6569c24dada68..55f13ba8480d1 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
+++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
@@ -790,7 +790,7 @@ def LLVM_CondBrOp : LLVM_TerminatorOp<"cond_br",
 // ReturnOp
 //===----------------------------------------------------------------------===//
 
-def LLVM_ReturnOp : LLVM_TerminatorOp<"return", [Pure]> {
+def LLVM_ReturnOp : LLVM_TerminatorOp<"return", [Pure, ReturnLike]> {
   let arguments = (ins Optional<LLVM_Type>:$arg);
   let assemblyFormat = "attr-dict ($arg^ `:` type($arg))?";
 


        


More information about the Mlir-commits mailing list