Skip to content

[MLIR] Make resolveCallable customizable in CallOpInterface #100361

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

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

xlauko
Copy link
Contributor

@xlauko xlauko commented Jul 24, 2024

Allow customization of the resolveCallable method in the CallOpInterface. This change allows for operations implementing this interface to provide their own logic for resolving callables.

  • Introduce the resolveCallable method, which does not include the optional symbol table parameter. This method replaces the previously existing extra class declaration resolveCallable.

  • Introduce the resolveCallableInTable method, which incorporates the symbol table parameter. This method replaces the previous extra class declaration resolveCallable that used the optional symbol table parameter.

Copy link

Thank you for submitting a Pull Request (PR) to the LLVM Project!

This PR will be automatically labeled and the relevant teams will be
notified.

If you wish to, you can add reviewers by using the "Reviewers" section on this page.

If this is not working for you, it is probably because you do not have write
permissions for the repository. In which case you can instead tag reviewers by
name in a comment by using @ followed by their GitHub username.

If you have received no comments on your PR for a week, you can request a review
by "ping"ing the PR by adding a comment “Ping”. The common courtesy "ping" rate
is once a week. Please remember that you are asking for valuable time from other developers.

If you have further questions, they may be answered by the LLVM GitHub User Guide.

You can also ask questions in a comment on this PR, on the LLVM Discord or on the forums.

@llvmbot llvmbot added mlir mlir:bufferization Bufferization infrastructure labels Jul 24, 2024
@llvmbot
Copy link
Member

llvmbot commented Jul 24, 2024

@llvm/pr-subscribers-mlir

@llvm/pr-subscribers-mlir-bufferization

Author: Henrich Lauko (xlauko)

Changes

Allow customization of the resolveCallable method in the CallOpInterface. This change allows for operations implementing this interface to provide their own logic for resolving callables.

  • Introduce the resolveCallable method, which does not include the optional symbol table parameter. This method replaces the previously existing extra class declaration resolveCallable.

  • Introduce the resolveCallableInTable method, which incorporates the symbol table parameter. This method replaces the previous extra class declaration resolveCallable that used the optional symbol table parameter.


Full diff: https://github.com/llvm/llvm-project/pull/100361.diff

8 Files Affected:

  • (modified) mlir/include/mlir/Interfaces/CallInterfaces.h (+3-3)
  • (modified) mlir/include/mlir/Interfaces/CallInterfaces.td (+34-10)
  • (modified) mlir/lib/Analysis/CallGraph.cpp (+1-1)
  • (modified) mlir/lib/Analysis/DataFlow/DeadCodeAnalysis.cpp (+1-1)
  • (modified) mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp (+1-1)
  • (modified) mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp (+1-1)
  • (modified) mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp (+2-1)
  • (modified) mlir/lib/Interfaces/CallInterfaces.cpp (-17)
diff --git a/mlir/include/mlir/Interfaces/CallInterfaces.h b/mlir/include/mlir/Interfaces/CallInterfaces.h
index 7dbcddb01b241..15a3d260f4166 100644
--- a/mlir/include/mlir/Interfaces/CallInterfaces.h
+++ b/mlir/include/mlir/Interfaces/CallInterfaces.h
@@ -25,9 +25,6 @@ struct CallInterfaceCallable : public PointerUnion<SymbolRefAttr, Value> {
 };
 } // namespace mlir
 
-/// Include the generated interface declarations.
-#include "mlir/Interfaces/CallInterfaces.h.inc"
-
 namespace llvm {
 
 // Allow llvm::cast style functions.
@@ -41,4 +38,7 @@ struct CastInfo<To, const mlir::CallInterfaceCallable>
 
 } // namespace llvm
 
+/// Include the generated interface declarations.
+#include "mlir/Interfaces/CallInterfaces.h.inc"
+
 #endif // MLIR_INTERFACES_CALLINTERFACES_H
diff --git a/mlir/include/mlir/Interfaces/CallInterfaces.td b/mlir/include/mlir/Interfaces/CallInterfaces.td
index 752de74e6e4d7..1da2a6d4e7eac 100644
--- a/mlir/include/mlir/Interfaces/CallInterfaces.td
+++ b/mlir/include/mlir/Interfaces/CallInterfaces.td
@@ -59,17 +59,41 @@ def CallOpInterface : OpInterface<"CallOpInterface"> {
         Returns the operands within this call that are used as arguments to the
         callee as a mutable range.
       }],
-      "::mlir::MutableOperandRange", "getArgOperandsMutable">,
-  ];
+      "::mlir::MutableOperandRange", "getArgOperandsMutable"
+    >,
+    InterfaceMethod<[{
+        Resolve the callable operation for given callee to a
+        CallableOpInterface, or nullptr if a valid callable was not resolved.
+        `symbolTable` parameter allow for using a cached symbol table for symbol
+        lookups instead of performing an O(N) scan.
+      }],
+      "::mlir::Operation *", "resolveCallableInTable", (ins "::mlir::SymbolTableCollection &":$symbolTable),
+      /*methodBody=*/[{}], /*defaultImplementation=*/[{
+        ::mlir::CallInterfaceCallable callable = $_op.getCallableForCallee();
+        if (auto symbolVal = dyn_cast<::mlir::Value>(callable))
+          return symbolVal.getDefiningOp();
 
-  let extraClassDeclaration = [{
-    /// Resolve the callable operation for given callee to a
-    /// CallableOpInterface, or nullptr if a valid callable was not resolved.
-    /// `symbolTable` is an optional parameter that will allow for using a
-    /// cached symbol table for symbol lookups instead of performing an O(N)
-    /// scan.
-    ::mlir::Operation *resolveCallable(::mlir::SymbolTableCollection *symbolTable = nullptr);
-  }];
+        // If the callable isn't a value, lookup the symbol reference.
+        auto symbolRef = callable.get<::mlir::SymbolRefAttr>();
+        return symbolTable.lookupNearestSymbolFrom($_op, symbolRef);
+      }]
+    >,
+    InterfaceMethod<[{
+        Resolve the callable operation for given callee to a
+        CallableOpInterface, or nullptr if a valid callable was not resolved.
+    }],
+      "::mlir::Operation *", "resolveCallable", (ins),
+      /*methodBody=*/[{}], /*defaultImplementation=*/[{
+        ::mlir::CallInterfaceCallable callable = $_op.getCallableForCallee();
+        if (auto symbolVal = dyn_cast<::mlir::Value>(callable))
+          return symbolVal.getDefiningOp();
+
+        // If the callable isn't a value, lookup the symbol reference.
+        auto symbolRef = callable.get<::mlir::SymbolRefAttr>();
+        return SymbolTable::lookupNearestSymbolFrom($_op, symbolRef);
+      }]
+    >
+  ];
 }
 
 /// Interface for callable operations.
diff --git a/mlir/lib/Analysis/CallGraph.cpp b/mlir/lib/Analysis/CallGraph.cpp
index ccd4676632136..6a85fb1a0da27 100644
--- a/mlir/lib/Analysis/CallGraph.cpp
+++ b/mlir/lib/Analysis/CallGraph.cpp
@@ -146,7 +146,7 @@ CallGraphNode *CallGraph::lookupNode(Region *region) const {
 CallGraphNode *
 CallGraph::resolveCallable(CallOpInterface call,
                            SymbolTableCollection &symbolTable) const {
-  Operation *callable = call.resolveCallable(&symbolTable);
+  Operation *callable = call.resolveCallableInTable(symbolTable);
   if (auto callableOp = dyn_cast_or_null<CallableOpInterface>(callable))
     if (auto *node = lookupNode(callableOp.getCallableRegion()))
       return node;
diff --git a/mlir/lib/Analysis/DataFlow/DeadCodeAnalysis.cpp b/mlir/lib/Analysis/DataFlow/DeadCodeAnalysis.cpp
index fab2bd83888da..cb80d229ae678 100644
--- a/mlir/lib/Analysis/DataFlow/DeadCodeAnalysis.cpp
+++ b/mlir/lib/Analysis/DataFlow/DeadCodeAnalysis.cpp
@@ -295,7 +295,7 @@ LogicalResult DeadCodeAnalysis::visit(ProgramPoint point) {
 }
 
 void DeadCodeAnalysis::visitCallOperation(CallOpInterface call) {
-  Operation *callableOp = call.resolveCallable(&symbolTable);
+  Operation *callableOp = call.resolveCallableInTable(symbolTable);
 
   // A call to a externally-defined callable has unknown predecessors.
   const auto isExternalCallable = [this](Operation *op) {
diff --git a/mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp b/mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp
index 9894810f0e04b..21f99c1b2b6cd 100644
--- a/mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp
+++ b/mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp
@@ -281,7 +281,7 @@ void AbstractDenseBackwardDataFlowAnalysis::visitCallOperation(
     CallOpInterface call, const AbstractDenseLattice &after,
     AbstractDenseLattice *before) {
   // Find the callee.
-  Operation *callee = call.resolveCallable(&symbolTable);
+  Operation *callee = call.resolveCallableInTable(symbolTable);
 
   auto callable = dyn_cast_or_null<CallableOpInterface>(callee);
   // No region means the callee is only declared in this module.
diff --git a/mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp b/mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
index ad956b73e4b1d..a64c3b50ed6e7 100644
--- a/mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
+++ b/mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
@@ -438,7 +438,7 @@ void AbstractSparseBackwardDataFlowAnalysis::visitOperation(Operation *op) {
   // For function calls, connect the arguments of the entry blocks to the
   // operands of the call op that are forwarded to these arguments.
   if (auto call = dyn_cast<CallOpInterface>(op)) {
-    Operation *callableOp = call.resolveCallable(&symbolTable);
+    Operation *callableOp = call.resolveCallableInTable(symbolTable);
     if (auto callable = dyn_cast_or_null<CallableOpInterface>(callableOp)) {
       // Not all operands of a call op forward to arguments. Such operands are
       // stored in `unaccounted`.
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp b/mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp
index ca5d0688b5b59..949b08682443f 100644
--- a/mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp
+++ b/mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp
@@ -824,7 +824,8 @@ FailureOr<Operation *> BufferDeallocation::handleInterface(CallOpInterface op) {
   // the function is referenced by SSA value instead of a Symbol, it's assumed
   // to be public. (And we cannot easily change the type of the SSA value
   // anyway.)
-  Operation *funcOp = op.resolveCallable(state.getSymbolTable());
+  SymbolTableCollection *symbolTable = state.getSymbolTable();
+  Operation *funcOp = op.resolveCallableInTable(*symbolTable);
   bool isPrivate = false;
   if (auto symbol = dyn_cast_or_null<SymbolOpInterface>(funcOp))
     isPrivate = symbol.isPrivate() && !symbol.isDeclaration();
diff --git a/mlir/lib/Interfaces/CallInterfaces.cpp b/mlir/lib/Interfaces/CallInterfaces.cpp
index 455684d8e2ea7..527c19713addf 100644
--- a/mlir/lib/Interfaces/CallInterfaces.cpp
+++ b/mlir/lib/Interfaces/CallInterfaces.cpp
@@ -14,23 +14,6 @@ using namespace mlir;
 // CallOpInterface
 //===----------------------------------------------------------------------===//
 
-/// Resolve the callable operation for given callee to a CallableOpInterface, or
-/// nullptr if a valid callable was not resolved. `symbolTable` is an optional
-/// parameter that will allow for using a cached symbol table for symbol lookups
-/// instead of performing an O(N) scan.
-Operation *
-CallOpInterface::resolveCallable(SymbolTableCollection *symbolTable) {
-  CallInterfaceCallable callable = getCallableForCallee();
-  if (auto symbolVal = dyn_cast<Value>(callable))
-    return symbolVal.getDefiningOp();
-
-  // If the callable isn't a value, lookup the symbol reference.
-  auto symbolRef = callable.get<SymbolRefAttr>();
-  if (symbolTable)
-    return symbolTable->lookupNearestSymbolFrom(getOperation(), symbolRef);
-  return SymbolTable::lookupNearestSymbolFrom(getOperation(), symbolRef);
-}
-
 //===----------------------------------------------------------------------===//
 // CallInterfaces
 //===----------------------------------------------------------------------===//

@xlauko
Copy link
Contributor Author

xlauko commented Aug 26, 2024

ping @matthias-springer

@xlauko xlauko force-pushed the main branch 5 times, most recently from e86afb4 to 39c5553 Compare September 9, 2024 20:35
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me, but I'm not a usual reviewer of core MLIR stuff, so perhaps some extra stamp might be needed?

Allow customization of the `resolveCallable` method in the `CallOpInterface`. This change allows for operations implementing this interface to provide their own logic for resolving callables.

- Introduce the `resolveCallable` method, which does not include the optional symbol table parameter. This method replaces the previously existing extra class declaration `resolveCallable`.

- Introduce the `resolveCallableInTable` method, which incorporates the symbol table parameter. This method replaces the previous extra class declaration `resolveCallable` that used the optional symbol table parameter.
@matthias-springer matthias-springer merged commit 958f59d into llvm:main Sep 10, 2024
7 checks passed
Copy link

@xlauko Congratulations on having your first Pull Request (PR) merged into the LLVM Project!

Your changes will be combined with recent changes from other authors, then tested by our build bots. If there is a problem with a build, you may receive a report in an email or a comment on this PR.

Please check whether problems have been caused by your change specifically, as the builds can include changes from many authors. It is not uncommon for your change to be included in a build that fails due to someone else's changes, or infrastructure issues.

How to do this, and the rest of the post-merge process, is covered in detail here.

If your change does cause a problem, it may be reverted, or you can revert it yourself. This is a normal part of LLVM development. You can fix your changes and open a new PR to merge them again.

If you don't get any reports, no action is required from you. Your changes are working as expected, well done!

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 10, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-libcxx running on linaro-flang-aarch64-libcxx while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/89/builds/5973

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
76.297 [3199/108/3864] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/AffineLoopInvariantCodeMotion.cpp.o
76.560 [3199/107/3865] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/ReifyValueBounds.cpp.o
76.740 [3199/106/3866] Building CXX object tools/mlir/lib/Conversion/TensorToSPIRV/CMakeFiles/obj.MLIRTensorToSPIRV.dir/TensorToSPIRVPass.cpp.o
77.591 [3199/105/3867] Building CXX object tools/mlir/lib/Conversion/MathToROCDL/CMakeFiles/obj.MLIRMathToROCDL.dir/MathToROCDL.cpp.o
77.627 [3199/104/3868] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/LoopUnrollAndJam.cpp.o
77.972 [3199/103/3869] Building CXX object tools/mlir/lib/Dialect/Affine/Analysis/CMakeFiles/obj.MLIRAffineAnalysis.dir/Utils.cpp.o
77.993 [3199/102/3870] Building CXX object tools/mlir/lib/Dialect/Linalg/Transforms/CMakeFiles/obj.MLIRLinalgTransforms.dir/ConvertConv2DToImg2Col.cpp.o
78.259 [3199/101/3871] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/AffineScalarReplacement.cpp.o
78.297 [3194/105/3872] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/AffineParallelize.cpp.o
78.427 [3191/107/3873] Linking CXX shared library lib/libMLIRAsyncDialect.so.20.0git
FAILED: lib/libMLIRAsyncDialect.so.20.0git 
: && /usr/local/bin/c++ -fPIC -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG  -stdlib=libc++ -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRAsyncDialect.so.20.0git -o lib/libMLIRAsyncDialect.so.20.0git tools/mlir/lib/Dialect/Async/IR/CMakeFiles/obj.MLIRAsyncDialect.dir/Async.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/lib:"  lib/libMLIRControlFlowInterfaces.so.20.0git  lib/libMLIRFunctionInterfaces.so.20.0git  lib/libMLIRDialect.so.20.0git  lib/libMLIRInferTypeOpInterface.so.20.0git  lib/libMLIRIR.so.20.0git  lib/libMLIRSupport.so.20.0git  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/lib && :
/usr/bin/ld: tools/mlir/lib/Dialect/Async/IR/CMakeFiles/obj.MLIRAsyncDialect.dir/Async.cpp.o: in function `mlir::detail::CallOpInterfaceInterfaceTraits::Model<mlir::async::CallOp>::resolveCallableInTable(mlir::detail::CallOpInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::SymbolTableCollection*)':
Async.cpp:(.text._ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE22resolveCallableInTableEPKNS1_7ConceptEPNS_9OperationEPNS_21SymbolTableCollectionE[_ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE22resolveCallableInTableEPKNS1_7ConceptEPNS_9OperationEPNS_21SymbolTableCollectionE]+0x64): undefined reference to `mlir::call_interface_impl::resolveCallable(mlir::CallOpInterface, mlir::SymbolTableCollection*)'
/usr/bin/ld: tools/mlir/lib/Dialect/Async/IR/CMakeFiles/obj.MLIRAsyncDialect.dir/Async.cpp.o: in function `mlir::detail::CallOpInterfaceInterfaceTraits::Model<mlir::async::CallOp>::resolveCallable(mlir::detail::CallOpInterfaceInterfaceTraits::Concept const*, mlir::Operation*)':
Async.cpp:(.text._ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE15resolveCallableEPKNS1_7ConceptEPNS_9OperationE[_ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE15resolveCallableEPKNS1_7ConceptEPNS_9OperationE]+0x60): undefined reference to `mlir::call_interface_impl::resolveCallable(mlir::CallOpInterface, mlir::SymbolTableCollection*)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
78.487 [3191/106/3874] Building CXX object tools/mlir/lib/Conversion/ArmSMEToLLVM/CMakeFiles/obj.MLIRArmSMEToLLVM.dir/ArmSMEToLLVM.cpp.o
79.057 [3191/105/3875] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/BufferDeallocationOpInterfaceImpl.cpp.o
79.142 [3191/104/3876] Building CXX object tools/mlir/lib/Conversion/FuncToLLVM/CMakeFiles/obj.MLIRFuncToLLVM.dir/FuncToLLVM.cpp.o
79.630 [3191/103/3877] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/IntRangeOptimizations.cpp.o
79.722 [3191/102/3878] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/AffineLoopNormalize.cpp.o
79.844 [3191/101/3879] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/BufferizableOpInterfaceImpl.cpp.o
80.615 [3191/100/3880] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/LoopTiling.cpp.o
80.903 [3191/99/3881] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/LoopUnroll.cpp.o
81.129 [3191/98/3882] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/ReifyValueBounds.cpp.o
81.340 [3191/97/3883] Building CXX object tools/mlir/lib/Dialect/Async/Transforms/CMakeFiles/obj.MLIRAsyncTransforms.dir/AsyncRuntimeRefCountingOpt.cpp.o
81.868 [3191/96/3884] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/SimplifyAffineStructures.cpp.o
82.242 [3191/95/3885] Building CXX object tools/mlir/test/lib/Analysis/CMakeFiles/MLIRTestAnalysis.dir/TestCFGLoopInfo.cpp.o
82.431 [3191/94/3886] Building CXX object tools/mlir/lib/Conversion/VectorToLLVM/CMakeFiles/obj.MLIRVectorToLLVMPass.dir/ConvertVectorToLLVMPass.cpp.o
82.518 [3191/93/3887] Building CXX object tools/mlir/lib/Dialect/Bufferization/Transforms/CMakeFiles/obj.MLIRBufferizationTransforms.dir/BufferViewFlowAnalysis.cpp.o
82.685 [3191/92/3888] Building CXX object tools/mlir/lib/Conversion/SCFToControlFlow/CMakeFiles/obj.MLIRSCFToControlFlow.dir/SCFToControlFlow.cpp.o
82.784 [3191/91/3889] Building CXX object tools/mlir/lib/Conversion/UBToSPIRV/CMakeFiles/obj.MLIRUBToSPIRV.dir/UBToSPIRV.cpp.o
82.859 [3191/90/3890] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/EmulateNarrowType.cpp.o
82.973 [3191/89/3891] Building CXX object tools/mlir/lib/Dialect/Func/Extensions/CMakeFiles/obj.MLIRFuncMeshShardingExtensions.dir/MeshShardingExtensions.cpp.o
83.025 [3191/88/3892] Building CXX object tools/mlir/lib/Dialect/Linalg/Transforms/CMakeFiles/obj.MLIRLinalgTransforms.dir/DataLayoutPropagation.cpp.o
83.042 [3191/87/3893] Building CXX object tools/mlir/lib/Conversion/OpenMPToLLVM/CMakeFiles/obj.MLIROpenMPToLLVM.dir/OpenMPToLLVM.cpp.o
83.120 [3191/86/3894] Building CXX object tools/mlir/lib/Dialect/EmitC/Transforms/CMakeFiles/obj.MLIREmitCTransforms.dir/FormExpressions.cpp.o
83.359 [3191/85/3895] Building CXX object tools/mlir/lib/Conversion/SPIRVToLLVM/CMakeFiles/obj.MLIRSPIRVToLLVM.dir/ConvertLaunchFuncToLLVMCalls.cpp.o
83.552 [3191/84/3896] Building CXX object tools/mlir/lib/Dialect/Func/Extensions/CMakeFiles/obj.MLIRFuncInlinerExtension.dir/InlinerExtension.cpp.o
83.560 [3191/83/3897] Building CXX object tools/mlir/lib/Dialect/ArmSME/IR/CMakeFiles/obj.MLIRArmSMEDialect.dir/Utils.cpp.o
83.564 [3191/82/3898] Building CXX object tools/mlir/lib/Dialect/Async/Transforms/CMakeFiles/obj.MLIRAsyncTransforms.dir/AsyncRuntimeRefCounting.cpp.o
83.592 [3191/81/3899] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/UnsignedWhenEquivalent.cpp.o
83.640 [3191/80/3900] Building CXX object tools/mlir/lib/Conversion/VectorToSPIRV/CMakeFiles/obj.MLIRVectorToSPIRV.dir/VectorToSPIRVPass.cpp.o
83.733 [3191/79/3901] Building CXX object tools/mlir/lib/Dialect/Affine/Transforms/CMakeFiles/obj.MLIRAffineTransforms.dir/PipelineDataTransfer.cpp.o
83.742 [3191/78/3902] Building CXX object tools/mlir/lib/Conversion/VectorToArmSME/CMakeFiles/obj.MLIRVectorToArmSME.dir/VectorToArmSME.cpp.o
83.746 [3191/77/3903] Building CXX object tools/mlir/lib/Conversion/GPUToROCDL/CMakeFiles/obj.MLIRGPUToROCDLTransforms.dir/LowerGpuOpsToROCDLOps.cpp.o
83.816 [3191/76/3904] Building CXX object tools/mlir/lib/CAPI/Conversion/CMakeFiles/obj.MLIRCAPIConversion.dir/Passes.cpp.o
84.072 [3191/75/3905] Building CXX object tools/mlir/lib/Dialect/Func/Transforms/CMakeFiles/obj.MLIRFuncTransforms.dir/OneToNFuncConversions.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 10, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-sharedlibs running on linaro-flang-aarch64-sharedlibs while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/80/builds/3318

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
288.761 [4023/12/3348] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/UnsignedWhenEquivalent.cpp.o
288.786 [4023/11/3349] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/ReifyValueBounds.cpp.o
288.858 [4023/10/3350] Building CXX object tools/mlir/lib/Dialect/ArmSVE/IR/CMakeFiles/obj.MLIRArmSVEDialect.dir/ArmSVEDialect.cpp.o
288.934 [4023/9/3351] Building CXX object tools/mlir/lib/Dialect/ArmNeon/Transforms/CMakeFiles/obj.MLIRArmNeonTransforms.dir/LowerContractionToSMMLAPattern.cpp.o
289.018 [4023/8/3352] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/BufferDeallocationOpInterfaceImpl.cpp.o
289.041 [4023/7/3353] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/EmulateNarrowType.cpp.o
289.121 [4023/6/3354] Building CXX object tools/mlir/lib/Dialect/Arith/Transforms/CMakeFiles/obj.MLIRArithTransforms.dir/IntRangeOptimizations.cpp.o
289.150 [4018/10/3355] Building CXX object tools/mlir/lib/Dialect/ArmSME/Transforms/CMakeFiles/obj.MLIRArmSMETransforms.dir/OuterProductFusion.cpp.o
289.190 [4018/9/3356] Building CXX object tools/mlir/lib/Dialect/ArmSME/Transforms/CMakeFiles/obj.MLIRArmSMETransforms.dir/TileAllocation.cpp.o
289.386 [4018/8/3357] Linking CXX shared library lib/libMLIRAsyncDialect.so.20.0git
FAILED: lib/libMLIRAsyncDialect.so.20.0git 
: && /usr/local/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRAsyncDialect.so.20.0git -o lib/libMLIRAsyncDialect.so.20.0git tools/mlir/lib/Dialect/Async/IR/CMakeFiles/obj.MLIRAsyncDialect.dir/Async.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib:"  lib/libMLIRControlFlowInterfaces.so.20.0git  lib/libMLIRFunctionInterfaces.so.20.0git  lib/libMLIRDialect.so.20.0git  lib/libMLIRInferTypeOpInterface.so.20.0git  lib/libMLIRIR.so.20.0git  lib/libMLIRSupport.so.20.0git  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib && :
/usr/bin/ld: tools/mlir/lib/Dialect/Async/IR/CMakeFiles/obj.MLIRAsyncDialect.dir/Async.cpp.o: in function `mlir::detail::CallOpInterfaceInterfaceTraits::Model<mlir::async::CallOp>::resolveCallableInTable(mlir::detail::CallOpInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::SymbolTableCollection*)':
Async.cpp:(.text._ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE22resolveCallableInTableEPKNS1_7ConceptEPNS_9OperationEPNS_21SymbolTableCollectionE[_ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE22resolveCallableInTableEPKNS1_7ConceptEPNS_9OperationEPNS_21SymbolTableCollectionE]+0x64): undefined reference to `mlir::call_interface_impl::resolveCallable(mlir::CallOpInterface, mlir::SymbolTableCollection*)'
/usr/bin/ld: tools/mlir/lib/Dialect/Async/IR/CMakeFiles/obj.MLIRAsyncDialect.dir/Async.cpp.o: in function `mlir::detail::CallOpInterfaceInterfaceTraits::Model<mlir::async::CallOp>::resolveCallable(mlir::detail::CallOpInterfaceInterfaceTraits::Concept const*, mlir::Operation*)':
Async.cpp:(.text._ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE15resolveCallableEPKNS1_7ConceptEPNS_9OperationE[_ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE15resolveCallableEPKNS1_7ConceptEPNS_9OperationE]+0x60): undefined reference to `mlir::call_interface_impl::resolveCallable(mlir::CallOpInterface, mlir::SymbolTableCollection*)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
289.479 [4018/7/3358] Building CXX object tools/mlir/lib/Dialect/Async/Transforms/CMakeFiles/obj.MLIRAsyncTransforms.dir/PassDetail.cpp.o
289.538 [4018/6/3359] Building CXX object tools/mlir/lib/Dialect/ArmSME/IR/CMakeFiles/obj.MLIRArmSMEDialect.dir/Utils.cpp.o
289.571 [4018/5/3360] Building CXX object tools/mlir/lib/Dialect/Async/Transforms/CMakeFiles/obj.MLIRAsyncTransforms.dir/AsyncParallelFor.cpp.o
289.598 [4018/4/3361] Building CXX object tools/mlir/lib/Dialect/ArmSVE/Transforms/CMakeFiles/obj.MLIRArmSVETransforms.dir/LegalizeForLLVMExport.cpp.o
289.658 [4018/3/3362] Building CXX object tools/mlir/lib/Dialect/ArmSME/Transforms/CMakeFiles/obj.MLIRArmSMETransforms.dir/VectorLegalization.cpp.o
289.762 [4018/2/3363] Building CXX object tools/mlir/lib/Dialect/ArmSVE/Transforms/CMakeFiles/obj.MLIRArmSVETransforms.dir/LegalizeVectorStorage.cpp.o
289.916 [4018/1/3364] Building CXX object tools/mlir/lib/Dialect/Async/Transforms/CMakeFiles/obj.MLIRAsyncTransforms.dir/AsyncRuntimeRefCounting.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 10, 2024

LLVM Buildbot has detected a new failure on builder flang-aarch64-latest-gcc running on linaro-flang-aarch64-latest-gcc while building mlir at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/130/builds/3275

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
      |                ^~~~~~~
289.607 [3321/33/3833] Building CXX object tools/mlir/lib/Dialect/SparseTensor/Transforms/CMakeFiles/obj.MLIRSparseTensorTransforms.dir/SparseTensorRewriting.cpp.o
290.080 [3321/32/3834] Building CXX object tools/mlir/lib/Dialect/Tosa/Transforms/CMakeFiles/obj.MLIRTosaTransforms.dir/TosaInferShapes.cpp.o
290.121 [3319/33/3835] Creating library symlink lib/libMLIRTransformDialectUtils.so
290.146 [3317/34/3836] Creating library symlink lib/libMLIRFunctionInterfaces.so
290.161 [3317/33/3837] Building CXX object tools/mlir/lib/Dialect/Transform/Transforms/CMakeFiles/obj.MLIRTransformDialectTransforms.dir/InferEffects.cpp.o
290.163 [3316/33/3838] Creating library symlink lib/libMLIRUBDialect.so
290.299 [3316/32/3839] Creating library symlink lib/libMLIRCallInterfaces.so
290.509 [3311/36/3840] Building CXX object tools/mlir/lib/Dialect/Tensor/Transforms/CMakeFiles/obj.MLIRTensorTransforms.dir/FoldTensorSubsetOps.cpp.o
290.671 [3310/36/3841] Linking CXX shared library lib/libMLIRAsyncDialect.so.20.0git
FAILED: lib/libMLIRAsyncDialect.so.20.0git 
: && /usr/local/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRAsyncDialect.so.20.0git -o lib/libMLIRAsyncDialect.so.20.0git tools/mlir/lib/Dialect/Async/IR/CMakeFiles/obj.MLIRAsyncDialect.dir/Async.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib:"  lib/libMLIRControlFlowInterfaces.so.20.0git  lib/libMLIRFunctionInterfaces.so.20.0git  lib/libMLIRDialect.so.20.0git  lib/libMLIRInferTypeOpInterface.so.20.0git  lib/libMLIRIR.so.20.0git  lib/libMLIRSupport.so.20.0git  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib && :
/usr/bin/ld: tools/mlir/lib/Dialect/Async/IR/CMakeFiles/obj.MLIRAsyncDialect.dir/Async.cpp.o: in function `mlir::detail::CallOpInterfaceInterfaceTraits::Model<mlir::async::CallOp>::resolveCallable(mlir::detail::CallOpInterfaceInterfaceTraits::Concept const*, mlir::Operation*)':
Async.cpp:(.text._ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE15resolveCallableEPKNS1_7ConceptEPNS_9OperationE[_ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE15resolveCallableEPKNS1_7ConceptEPNS_9OperationE]+0xf4): undefined reference to `mlir::call_interface_impl::resolveCallable(mlir::CallOpInterface, mlir::SymbolTableCollection*)'
/usr/bin/ld: tools/mlir/lib/Dialect/Async/IR/CMakeFiles/obj.MLIRAsyncDialect.dir/Async.cpp.o: in function `mlir::detail::CallOpInterfaceInterfaceTraits::Model<mlir::async::CallOp>::resolveCallableInTable(mlir::detail::CallOpInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::SymbolTableCollection*)':
Async.cpp:(.text._ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE22resolveCallableInTableEPKNS1_7ConceptEPNS_9OperationEPNS_21SymbolTableCollectionE[_ZN4mlir6detail30CallOpInterfaceInterfaceTraits5ModelINS_5async6CallOpEE22resolveCallableInTableEPKNS1_7ConceptEPNS_9OperationEPNS_21SymbolTableCollectionE]+0xf8): undefined reference to `mlir::call_interface_impl::resolveCallable(mlir::CallOpInterface, mlir::SymbolTableCollection*)'
collect2: error: ld returned 1 exit status
290.764 [3310/35/3842] Linking CXX shared library lib/libMLIRFuncDialect.so.20.0git
290.836 [3310/34/3843] Building CXX object tools/mlir/lib/Pass/CMakeFiles/obj.MLIRPass.dir/IRPrinting.cpp.o
290.914 [3310/33/3844] Linking CXX shared library lib/libMLIRArithDialect.so.20.0git
290.919 [3310/32/3845] Linking CXX shared library lib/libMLIRLoopLikeInterface.so.20.0git
290.927 [3310/31/3846] Linking CXX shared library lib/libMLIRPDLInterpDialect.so.20.0git
290.943 [3310/30/3847] Linking CXX shared library lib/libMLIREmitCDialect.so.20.0git
291.658 [3310/29/3848] Building CXX object tools/mlir/lib/Dialect/SparseTensor/Transforms/CMakeFiles/obj.MLIRSparseTensorTransforms.dir/Utils/LoopEmitter.cpp.o
291.920 [3310/28/3849] Building CXX object tools/mlir/lib/Dialect/Vector/Transforms/CMakeFiles/obj.MLIRVectorTransforms.dir/LowerVectorBitCast.cpp.o
292.057 [3310/27/3850] Building CXX object tools/mlir/lib/Dialect/Tosa/Transforms/CMakeFiles/obj.MLIRTosaTransforms.dir/TosaMakeBroadcastable.cpp.o
292.259 [3310/26/3851] Building CXX object tools/mlir/lib/Dialect/Tensor/Transforms/CMakeFiles/obj.MLIRTensorTransforms.dir/BufferizableOpInterfaceImpl.cpp.o
293.928 [3310/25/3852] Building CXX object tools/mlir/lib/Dialect/SPIRV/Transforms/CMakeFiles/obj.MLIRSPIRVTransforms.dir/LowerABIAttributesPass.cpp.o
In file included from ../llvm-project/mlir/include/mlir/Dialect/Vector/IR/VectorOps.h:25,
                 from ../llvm-project/mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h:15,
                 from ../llvm-project/mlir/include/mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h:20,
                 from ../llvm-project/mlir/lib/Dialect/SPIRV/Transforms/LowerABIAttributesPass.cpp:21:
../llvm-project/mlir/include/mlir/Transforms/DialectConversion.h: In instantiation of ‘class mlir::OpConversionPattern<mlir::spirv::FuncOp>’:
../llvm-project/mlir/lib/Dialect/SPIRV/Transforms/LowerABIAttributesPass.cpp:205:45:   required from here
../llvm-project/mlir/include/mlir/IR/PatternMatch.h:255:16: warning: ‘virtual void mlir::RewritePattern::rewrite(mlir::Operation*, mlir::PatternRewriter&) const’ was hidden [-Woverloaded-virtual=]
  255 |   virtual void rewrite(Operation *op, PatternRewriter &rewriter) const;
      |                ^~~~~~~
In file included from ../llvm-project/mlir/include/mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h:21:
../llvm-project/mlir/include/mlir/Transforms/DialectConversion.h:552:16: note:   by ‘mlir::OpConversionPattern<mlir::spirv::FuncOp>::rewrite’
  552 |   virtual void rewrite(SourceOp op, OpAdaptor adaptor,
      |                ^~~~~~~
294.181 [3310/24/3853] Building CXX object tools/mlir/lib/Dialect/Transform/Transforms/CMakeFiles/obj.MLIRTransformDialectTransforms.dir/TransformInterpreterUtils.cpp.o
295.155 [3310/23/3854] Building CXX object tools/mlir/lib/Dialect/Vector/Transforms/CMakeFiles/obj.MLIRVectorTransforms.dir/LowerVectorBroadcast.cpp.o
295.620 [3310/22/3855] Building CXX object tools/mlir/lib/Dialect/XeGPU/Transforms/CMakeFiles/obj.MLIRXeGPUTransforms.dir/XeGPUFoldAliasOps.cpp.o
295.848 [3310/21/3856] Building CXX object tools/mlir/lib/Dialect/Vector/Transforms/CMakeFiles/obj.MLIRVectorTransforms.dir/LowerVectorInterleave.cpp.o
297.020 [3310/20/3857] Building CXX object tools/mlir/lib/Dialect/Tosa/Transforms/CMakeFiles/obj.MLIRTosaTransforms.dir/TosaValidation.cpp.o
297.816 [3310/19/3858] Building CXX object tools/mlir/lib/Dialect/Vector/Transforms/CMakeFiles/obj.MLIRVectorTransforms.dir/LowerVectorGather.cpp.o
298.343 [3310/18/3859] Building CXX object tools/mlir/lib/Dialect/SPIRV/Transforms/CMakeFiles/obj.MLIRSPIRVConversion.dir/SPIRVConversion.cpp.o
In file included from ../llvm-project/mlir/include/mlir/Dialect/Vector/IR/VectorOps.h:25,

matthias-springer added a commit that referenced this pull request Sep 10, 2024
…e`" (#107984)

Reverts #100361

This commit caused some linker errors. (Missing `MLIRCallInterfaces`
dependency.)
@matthias-springer
Copy link
Member

Looks like a few dependencies (MLIRCallInterfaces) are missing in CMake. They probably should have been there before, but it happened to work because the .cpp file did not define any functions until now. Can you reopen the PR and fix the CMake?

@xlauko
Copy link
Contributor Author

xlauko commented Sep 10, 2024

Hopefully fixed in #107989

xlauko added a commit to xlauko/llvm-project that referenced this pull request Sep 10, 2024
llvm#100361)

Allow customization of the `resolveCallable` method in the
`CallOpInterface`. This change allows for operations implementing this
interface to provide their own logic for resolving callables.

- Introduce the `resolveCallable` method, which does not include the
optional symbol table parameter. This method replaces the previously
existing extra class declaration `resolveCallable`.

- Introduce the `resolveCallableInTable` method, which incorporates the
symbol table parameter. This method replaces the previous extra class
declaration `resolveCallable` that used the optional symbol table
parameter.
xlauko added a commit to xlauko/llvm-project that referenced this pull request Sep 10, 2024
llvm#100361)

Allow customization of the `resolveCallable` method in the
`CallOpInterface`. This change allows for operations implementing this
interface to provide their own logic for resolving callables.

- Introduce the `resolveCallable` method, which does not include the
optional symbol table parameter. This method replaces the previously
existing extra class declaration `resolveCallable`.

- Introduce the `resolveCallableInTable` method, which incorporates the
symbol table parameter. This method replaces the previous extra class
declaration `resolveCallable` that used the optional symbol table
parameter.
matthias-springer pushed a commit that referenced this pull request Sep 10, 2024
nirvedhmeshram added a commit to iree-org/iree that referenced this pull request Sep 12, 2024
Bumps llvm to commit:
iree-org/llvm-project@e268afb
in branch
https://github.com/iree-org/llvm-project/tree/shared/integrates_20240910

Following changes are made:
1. Fix formatv call to pass validation added by
llvm/llvm-project#105745
2. API changes in DICompositeTypeAttr::get introduced by
llvm/llvm-project#106571
  3. Fix API call from llvm/llvm-project#100361
  4. Fix chipset comparison in ROCMTarget.cpp

There are two cherry-picks from upstream main as they contain fixes we
need and one cheery-pick that is yet to land
1.
iree-org/llvm-project@0d5d355
2.
iree-org/llvm-project@650d852
3.
iree-org/llvm-project@e268afb
(the upstream PR for this one is
llvm/llvm-project#108302

And a revert due to an outstanding torch-mlir issue

iree-org/llvm-project@cf22797
josemonsalve2 pushed a commit to josemonsalve2/iree that referenced this pull request Sep 14, 2024
Bumps llvm to commit:
iree-org/llvm-project@e268afb
in branch
https://github.com/iree-org/llvm-project/tree/shared/integrates_20240910

Following changes are made:
1. Fix formatv call to pass validation added by
llvm/llvm-project#105745
2. API changes in DICompositeTypeAttr::get introduced by
llvm/llvm-project#106571
  3. Fix API call from llvm/llvm-project#100361
  4. Fix chipset comparison in ROCMTarget.cpp

There are two cherry-picks from upstream main as they contain fixes we
need and one cheery-pick that is yet to land
1.
iree-org/llvm-project@0d5d355
2.
iree-org/llvm-project@650d852
3.
iree-org/llvm-project@e268afb
(the upstream PR for this one is
llvm/llvm-project#108302

And a revert due to an outstanding torch-mlir issue

iree-org/llvm-project@cf22797
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlir:bufferization Bufferization infrastructure mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants