-
Notifications
You must be signed in to change notification settings - Fork 14k
[MLIR][LLVMIR] Mark Funcop as affinescope #144456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-mlir @llvm/pr-subscribers-mlir-llvm Author: William Moses (wsmoses) ChangesFull diff: https://github.com/llvm/llvm-project/pull/144456.diff 1 Files Affected:
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.";
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this should be made a part of FunctionOpInterface
instead. I don't see a case where a function would not be an AffineScope
, but I might be missing something.
I don't think you can add a trait to an interface. We could potentially patch the affine logic to look for either the interface or the affine scope trait, but it sounds like something that would need a deeper discussion. |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/14686 Here is the relevant piece of the build log for the reference
|
All functions are conceptually an affine scope.
All functions are conceptually an affine scope.