[llvm] [DirectX][NFC] Model precise overload type specification of DXIL Ops (PR #83917)

Chris B via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 09:01:28 PDT 2024


================
@@ -219,6 +269,20 @@ static std::string getOverloadKindStr(MVT::SimpleValueType VT) {
     return "OverloadKind::I16 | OverloadKind::I32 | OverloadKind::I64";
   case MVT::fAny:
     return "OverloadKind::HALF | OverloadKind::FLOAT | OverloadKind::DOUBLE";
+  case MVT::Other:
+    // Handle DXIL-specific overload types
+    {
+      auto RetStr =
+          StringSwitch<std::string>(R->getNameInitAsString())
+              .Case("llvm_i16ori32_ty", "OverloadKind::I16 | OverloadKind::I32")
+              .Case("llvm_halforfloat_ty",
+                    "OverloadKind::HALF | OverloadKind::FLOAT")
----------------
llvm-beanz wrote:

WaveMatrix is a preview feature, and the existing WaveMatrix* ops are almost certainly going to change. Feel free to ignore those for now.

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


More information about the llvm-commits mailing list