[llvm] [DX] Support pipeline state masks (PR #66425)

Xiang Li via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 19:28:07 PDT 2023


================
@@ -140,6 +159,22 @@ class PSVRuntimeInfo {
 
   const InfoStruct &getInfo() const { return BasicInfo; }
 
+  template <typename T> const T *getInfoAs() const {
+    if (const auto *P = std::get_if<dxbc::PSV::v2::RuntimeInfo>(&BasicInfo))
----------------
python3kgae wrote:

Could we just return std::get_if<T>(&BasicInfo) for getInfoAs()?

https://github.com/llvm/llvm-project/pull/66425


More information about the llvm-commits mailing list