[Mlir-commits] [mlir] [mlir][spirv]: Add Broadcom Vendor (PR #116600)
Christopher McGirr
llvmlistbot at llvm.org
Mon Nov 18 02:37:49 PST 2024
https://github.com/chrsmcgrr created https://github.com/llvm/llvm-project/pull/116600
This PR is simply adding the vendor ID to the SPIRV list. In order to enable the use of this vendor ID in a SPIRV pipeline for the Videocore GPUs.
>From 482ce7de1ef58c9d729f2bcae079d94501547f8d Mon Sep 17 00:00:00 2001
From: Christopher McGirr <mcgirr at roofline.ai>
Date: Mon, 23 Sep 2024 08:59:36 +0200
Subject: [PATCH] [mlir][spirv]: Add Broadcom Vendor
---
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
index 252d9319fccc5a..e277b6ed8066b1 100644
--- a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
+++ b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
@@ -278,16 +278,17 @@ def SPIRV_DeviceTypeAttr : SPIRV_I32EnumAttr<
def SPIRV_V_AMD : I32EnumAttrCase<"AMD", 0>;
def SPIRV_V_Apple : I32EnumAttrCase<"Apple", 1>;
def SPIRV_V_ARM : I32EnumAttrCase<"ARM", 2>;
-def SPIRV_V_Imagination : I32EnumAttrCase<"Imagination", 3>;
-def SPIRV_V_Intel : I32EnumAttrCase<"Intel", 4>;
-def SPIRV_V_NVIDIA : I32EnumAttrCase<"NVIDIA", 5>;
-def SPIRV_V_Qualcomm : I32EnumAttrCase<"Qualcomm", 6>;
-def SPIRV_V_SwiftShader : I32EnumAttrCase<"SwiftShader", 7>;
+def SPIRV_V_Broadcom : I32EnumAttrCase<"Broadcom", 3>;
+def SPIRV_V_Imagination : I32EnumAttrCase<"Imagination", 4>;
+def SPIRV_V_Intel : I32EnumAttrCase<"Intel", 5>;
+def SPIRV_V_NVIDIA : I32EnumAttrCase<"NVIDIA", 6>;
+def SPIRV_V_Qualcomm : I32EnumAttrCase<"Qualcomm", 7>;
+def SPIRV_V_SwiftShader : I32EnumAttrCase<"SwiftShader", 8>;
def SPIRV_V_Unknown : I32EnumAttrCase<"Unknown", 0xffffffff>;
def SPIRV_VendorAttr : SPIRV_I32EnumAttr<
"Vendor", "recognized SPIR-V vendor strings", "vendor", [
- SPIRV_V_AMD, SPIRV_V_Apple, SPIRV_V_ARM, SPIRV_V_Imagination,
+ SPIRV_V_AMD, SPIRV_V_Apple, SPIRV_V_ARM, SPIRV_V_Broadcom, SPIRV_V_Imagination,
SPIRV_V_Intel, SPIRV_V_NVIDIA, SPIRV_V_Qualcomm, SPIRV_V_SwiftShader,
SPIRV_V_Unknown
]>;
More information about the Mlir-commits
mailing list