We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00fb7a0 commit a6d4ce0Copy full SHA for a6d4ce0
flang/unittests/Frontend/CodeGenActionTest.cpp
@@ -50,6 +50,15 @@ class FakeOp : public ::mlir::Op<FakeOp> {
50
51
static void build(
52
::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState) {}
53
+
54
+ static FakeOp create(
55
+ ::mlir::OpBuilder &odsBuilder, ::mlir::Location location) {
56
+ ::mlir::OperationState state(location, getOperationName());
57
+ build(odsBuilder, state);
58
+ auto res = ::llvm::dyn_cast<FakeOp>(odsBuilder.create(state));
59
+ assert(res && "builder didn't return the right type");
60
+ return res;
61
+ }
62
};
63
} // namespace dummy
64
} // namespace test
0 commit comments