You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MLIR ukernels are lazily parsed when used. When they fail to parse, this
was manifesting itself as a compiler crash (null dereference) here:
https://github.com/iree-org/iree/blob/59ce62fd8a3686c45d00bfce197cd15f38697f0d/compiler/plugins/target/ROCM/Dialect/ROCM/Transforms/ApplyBuiltinPDLPatterns.cpp#L354
as in that case, `builtinModule.get()` is null.
This PR reports an op error when parsing failed, so the code doesn't
reach this place anymroe and the crash is avoided.
To make the parser's internal diagnostics themselves more helpful, this
PR also passes a `sourceName` argument to `parseSourceString` so that
they now directly refer to a meaningful location in the MLIR ukernel
files.
---------
Signed-off-by: Benoit Jacob <[email protected]>
0 commit comments