Skip to content

Commit cf9c606

Browse files
committed
[mlir][spirv] Add Apple into the vendor list
Reviewed By: ThomasRaoux, hanchung Differential Revision: https://reviews.llvm.org/D122414
1 parent a6cdac4 commit cf9c606

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -277,18 +277,19 @@ def SPV_DeviceTypeAttr : SPV_EnumAttr<
277277
]>;
278278

279279
def SPV_V_AMD : I32EnumAttrCase<"AMD", 0>;
280-
def SPV_V_ARM : I32EnumAttrCase<"ARM", 1>;
281-
def SPV_V_Imagination : I32EnumAttrCase<"Imagination", 2>;
282-
def SPV_V_Intel : I32EnumAttrCase<"Intel", 3>;
283-
def SPV_V_NVIDIA : I32EnumAttrCase<"NVIDIA", 4>;
284-
def SPV_V_Qualcomm : I32EnumAttrCase<"Qualcomm", 5>;
285-
def SPV_V_SwiftShader : I32EnumAttrCase<"SwiftShader", 6>;
286-
def SPV_V_Unknown : I32EnumAttrCase<"Unknown", 7>;
280+
def SPV_V_Apple : I32EnumAttrCase<"Apple", 1>;
281+
def SPV_V_ARM : I32EnumAttrCase<"ARM", 2>;
282+
def SPV_V_Imagination : I32EnumAttrCase<"Imagination", 3>;
283+
def SPV_V_Intel : I32EnumAttrCase<"Intel", 4>;
284+
def SPV_V_NVIDIA : I32EnumAttrCase<"NVIDIA", 5>;
285+
def SPV_V_Qualcomm : I32EnumAttrCase<"Qualcomm", 6>;
286+
def SPV_V_SwiftShader : I32EnumAttrCase<"SwiftShader", 7>;
287+
def SPV_V_Unknown : I32EnumAttrCase<"Unknown", 0xff>;
287288

288289
def SPV_VendorAttr : SPV_EnumAttr<
289290
"Vendor", "recognized SPIR-V vendor strings", "vendor", [
290-
SPV_V_AMD, SPV_V_ARM, SPV_V_Imagination, SPV_V_Intel,
291-
SPV_V_NVIDIA, SPV_V_Qualcomm, SPV_V_SwiftShader,
291+
SPV_V_AMD, SPV_V_Apple, SPV_V_ARM, SPV_V_Imagination,
292+
SPV_V_Intel, SPV_V_NVIDIA, SPV_V_Qualcomm, SPV_V_SwiftShader,
292293
SPV_V_Unknown
293294
]>;
294295

0 commit comments

Comments
 (0)