17 RuntimeVerifiableOpInterface::generateErrorMessage(Operation *op,
18 const std::string &msg) {
20 llvm::raw_string_ostream stream(buffer);
21 OpPrintingFlags flags;
24 flags.elideLargeElementsAttrs();
25 flags.printGenericOpForm();
27 flags.useLocalScope();
28 stream <<
"ERROR: Runtime op verification failed\n";
29 op->print(stream, flags);
30 stream <<
"\n^ " << msg;
31 stream <<
"\nLocation: ";
32 op->getLoc().print(stream);
38 #include "mlir/Interfaces/RuntimeVerifiableOpInterface.cpp.inc"
Include the generated interface declarations.