[Mlir-commits] [mlir] 917bc90 - [MLIR][LLVMIR] Mark Funcop as affinescope (#144456)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jun 17 06:41:19 PDT 2025


Author: William Moses
Date: 2025-06-17T06:41:15-07:00
New Revision: 917bc909673a491fe070fe41c4ad112bcffd4c06

URL: https://github.com/llvm/llvm-project/commit/917bc909673a491fe070fe41c4ad112bcffd4c06
DIFF: https://github.com/llvm/llvm-project/commit/917bc909673a491fe070fe41c4ad112bcffd4c06.diff

LOG: [MLIR][LLVMIR] Mark Funcop as affinescope (#144456)

All functions are conceptually an affine scope.

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 eda1d544cd81c..68fa620d239b9 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
+++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
@@ -1829,7 +1829,7 @@ def LLVM_ComdatOp : LLVM_Op<"comdat", [NoTerminator, NoRegionArguments, SymbolTa
 }
 
 def LLVM_LLVMFuncOp : LLVM_Op<"func", [
-    AutomaticAllocationScope, IsolatedFromAbove, FunctionOpInterface
+    AffineScope, AutomaticAllocationScope, IsolatedFromAbove, FunctionOpInterface
   ]> {
   let summary = "LLVM dialect function.";
 


        


More information about the Mlir-commits mailing list