[Mlir-commits] [mlir] [mlir] Method to iterate over registered operations for a given dialect class. (PR #112344)

Rajveer Singh Bharadwaj llvmlistbot at llvm.org
Wed Oct 16 03:24:20 PDT 2024


================
@@ -195,7 +195,12 @@ class MLIRContext {
 
   /// Return a sorted array containing the information about all registered
   /// operations.
-  ArrayRef<RegisteredOperationName> getRegisteredOperations();
+  SmallVector<RegisteredOperationName, 0> getRegisteredOperations();
----------------
Rajveer100 wrote:

Yes, I had this in my mind, with the latest change I have added a member variable so we can continue to use `ArrayRef` whilst using `transform`.

https://github.com/llvm/llvm-project/pull/112344


More information about the Mlir-commits mailing list