While lowering memref operations into spirv operations, for memref.load into spirv.load . I’m facing pattern match failure. Any thoughts on what I’m missing ?
Legalizing operation : ‘memref.load’(0x5645e05532b0) {
%180 = “memref.load”(%132, %104, %179) <{nontemporal = false}> : (memref<1x5xf64, strided<[5, 1], offset: ?>, spirv.storage_class>, index, index) → f64
-
Fold {
} → FAILURE : unable to fold -
Pattern : ‘memref.load → ()’ {
Trying to match “(anonymous namespace)::LoadOpPattern”
“(anonymous namespace)::LoadOpPattern” result 0
} → FAILURE : pattern failed to match -
Pattern : ‘memref.load → ()’ {
Trying to match “(anonymous namespace)::IntLoadOpPattern”
“(anonymous namespace)::IntLoadOpPattern” result 0
} → FAILURE : pattern failed to match
} → FAILURE : no matched legalization pattern
//===-------------------------------------------===//
error: failed to legalize operation ‘memref.load’