[Mlir-commits] [mlir] [MLIR][DLTI] Enable types as keys in DLTI-query utils (PR #105995)

Rolf Morel llvmlistbot at llvm.org
Mon Aug 26 05:05:38 PDT 2024


================
@@ -424,8 +424,8 @@ getClosestQueryable(Operation *op) {
   return std::pair(queryable, op);
 }
 
-FailureOr<Attribute> dlti::query(Operation *op, ArrayRef<StringAttr> keys,
-                                 bool emitError) {
+FailureOr<Attribute>
+dlti::query(Operation *op, ArrayRef<DataLayoutEntryKey> keys, bool emitError) {
----------------
rolfmorel wrote:

I have now disallowed queries with empty keys and added a test case for it.

Thanks, @adam-smnk !

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


More information about the Mlir-commits mailing list