diff options
Diffstat (limited to 'mlir/unittests/IR/OperationSupportTest.cpp')
-rw-r--r-- | mlir/unittests/IR/OperationSupportTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mlir/unittests/IR/OperationSupportTest.cpp b/mlir/unittests/IR/OperationSupportTest.cpp index 7bc1a04..9f3e7ed 100644 --- a/mlir/unittests/IR/OperationSupportTest.cpp +++ b/mlir/unittests/IR/OperationSupportTest.cpp @@ -302,8 +302,8 @@ TEST(OperandStorageTest, PopulateDefaultAttrs) { auto req1 = b.getI32IntegerAttr(10); auto req2 = b.getI32IntegerAttr(60); // Verify default attributes populated post op creation. - Operation *op = b.create<test::OpAttrMatch1>(b.getUnknownLoc(), req1, nullptr, - nullptr, req2); + Operation *op = test::OpAttrMatch1::create(b, b.getUnknownLoc(), req1, + nullptr, nullptr, req2); auto opt = op->getInherentAttr("default_valued_attr"); EXPECT_NE(opt, nullptr) << *op; @@ -343,11 +343,11 @@ TEST(OperationEquivalenceTest, HashWorksWithFlags) { // Check ignore properties. auto req1 = b.getI32IntegerAttr(10); - Operation *opWithProperty1 = b.create<test::OpAttrMatch1>( - b.getUnknownLoc(), req1, nullptr, nullptr, req1); + Operation *opWithProperty1 = test::OpAttrMatch1::create( + b, b.getUnknownLoc(), req1, nullptr, nullptr, req1); auto req2 = b.getI32IntegerAttr(60); - Operation *opWithProperty2 = b.create<test::OpAttrMatch1>( - b.getUnknownLoc(), req2, nullptr, nullptr, req2); + Operation *opWithProperty2 = test::OpAttrMatch1::create( + b, b.getUnknownLoc(), req2, nullptr, nullptr, req2); EXPECT_EQ(getHash(opWithProperty1, OperationEquivalence::IgnoreProperties), getHash(opWithProperty2, OperationEquivalence::IgnoreProperties)); EXPECT_NE(getHash(opWithProperty1, OperationEquivalence::None), |