This class adds helper functions similar to emitError for the
DiagnosedSilenceableFailure class in both the silenceable and definite
failure cases. These helpers simplify the use of said class and make
tranfsorm op application code idiomatic.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice, this will make the error handling much easier to use!
mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h | ||
---|---|---|
186 | Optional: To be consistent with op->emitError, this could take an Operation * or Value instead of Location. | |
266 | nit: Without looking at the impl of DiagnosedSilenceableFailure: I expected something like DiagnosedSilenceableFailure(loc, message);, similar to emitDefiniteFailure. |
Comment Actions
Address review.
mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h | ||
---|---|---|
266 | There's no such constructor, it would be unclear in which state the silenceable failure is created. |
Optional: To be consistent with op->emitError, this could take an Operation * or Value instead of Location.