未验证 提交 5eab7dab 编写于 作者: S Shang Zhizhou 提交者: GitHub

fix build bug (#38997)

* fix build bug

* fix code style
上级 a1980d9c
......@@ -14,12 +14,12 @@
#include <llvm/ADT/Optional.h>
#include <llvm/Support/CommandLine.h>
#include <llvm/Support/ScopedPrinter.h>
#include <mlir/IR/BuiltinOps.h>
#include <llvm/Support/raw_os_ostream.hv
#include <llvm/Support/raw_os_ostream.h>
#include <llvm/Support/raw_ostream.h>
#include <mlir/Dialect/StandardOps/IR/Ops.h>
#include <mlir/IR/AsmState.h>
#include <mlir/IR/Block.h>
#include <mlir/IR/BuiltinOps.h>
#include <mlir/IR/MLIRContext.h>
#include <mlir/IR/Operation.h>
#include <mlir/IR/Region.h>
......@@ -74,8 +74,8 @@ void printOperation(mlir::Operation *op, int indent) {
if (!op->getAttrs().empty()) {
printIndent(indent) << op->getAttrs().size() << " attributes:\n";
for (mlir::NamedAttribute attr : op->getAttrs()) {
printIndent(indent + 1) << "- {" << attr.first << " : " << attr.second
<< "}\n";
printIndent(indent + 1) << "- {" << attr.getName() << " : "
<< attr.getValue() << "}\n";
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册