[llvm] [DirectX] only allow intrinsics defined in DXIL.td (PR #128613)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 25 01:56:55 PST 2025


================
@@ -770,8 +770,14 @@ class OpLowerer {
         continue;
       Intrinsic::ID ID = F.getIntrinsicID();
       switch (ID) {
-      default:
+      case Intrinsic::dx_resource_casthandle:
+      case Intrinsic::not_intrinsic:
         continue;
+      default: {
+        DiagnosticInfoUnsupported Diag(F, "Unknown intrinsic?");
----------------
bogner wrote:

Perhaps "Unsupported intrinsic for DXIL lowering", but this seems informative enough.

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


More information about the llvm-commits mailing list