//===- DXILResourceTest.cpp - Unit tests for DXILResource -----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/Analysis/DXILResource.h" #include "llvm/IR/Constants.h" #include "gtest/gtest.h" usingnamespacellvm; usingnamespacedxil; namespace { // Helper to succinctly build resource shaped metadata for tests. struct MDBuilder { … }; testing::AssertionResult MDTupleEq(const char *LHSExpr, const char *RHSExpr, MDTuple *LHS, MDTuple *RHS) { … } #define EXPECT_MDEQ(X, Y) … } // namespace TEST(DXILResource, AnnotationsAndMetadata) { … }