[llvm] [NFC][HLSL] Refactor DXILResourceTest for upcoming PR (PR #134952)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 19:40:35 PDT 2025
================
@@ -64,7 +64,11 @@ testing::AssertionResult MDTupleEq(const char *LHSExpr, const char *RHSExpr,
<< "Which is:\n"
<< " " << RHSRepr;
}
+
#define EXPECT_MDEQ(X, Y) EXPECT_PRED_FORMAT2(MDTupleEq, X, Y)
+
+#define EXPECT_PREQ(X, Y, Z) EXPECT_EQ(X, (std::pair<uint32_t, uint32_t>{Y, Z}))
----------------
bogner wrote:
It took me a second to map "PR" to "pair", maybe the slightly more explicit "EXPECT_PAIR_EQ" would be a better name?
https://github.com/llvm/llvm-project/pull/134952
More information about the llvm-commits
mailing list