[all-commits] [llvm/llvm-project] 56396b: [SPIRV-V] Add SPIR-V logical triple to llc
Nathan Gauër via All-commits
all-commits at lists.llvm.org
Mon Sep 11 01:32:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 56396b25f1793a4853561efe89df04f61b0306a0
https://github.com/llvm/llvm-project/commit/56396b25f1793a4853561efe89df04f61b0306a0
Author: Nathan Gauër <brioche at google.com>
Date: 2023-09-11 (Mon, 11 Sep 2023)
Changed paths:
M llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVMCTargetDesc.cpp
M llvm/lib/Target/SPIRV/SPIRVAsmPrinter.cpp
M llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
M llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
M llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.h
M llvm/lib/Target/SPIRV/SPIRVSubtarget.cpp
M llvm/lib/Target/SPIRV/SPIRVSubtarget.h
M llvm/lib/Target/SPIRV/SPIRVTargetMachine.cpp
M llvm/lib/Target/SPIRV/TargetInfo/SPIRVTargetInfo.cpp
M llvm/lib/Target/SPIRV/TargetInfo/SPIRVTargetInfo.h
A llvm/test/CodeGen/SPIRV/ExecutionMode_GLCompute.ll
A llvm/test/CodeGen/SPIRV/capability-Shader.ll
A llvm/test/CodeGen/SPIRV/empty-logical.ll
Log Message:
-----------
[SPIRV-V] Add SPIR-V logical triple to llc
This commits adds the minimal required bits to build a logical SPIR-V
compute shader using LLC.
- Skip OpenCL-only capabilities & extensions for Logical SPIR-V.
- Generate required metadata for entrypoints from HLSL frontend.
- Fix execution mode to GLCompute in logical.
The main issue is the lack of "vulkan" bit in the triple.
This might need to be added as a vendor?
Because as-is, SPIRV32/64 assumes OpenCL, and then, SPIRV assumes
Vulkan. This is ok-ish today, but not correct.
Differential Revision: https://reviews.llvm.org/D156424
More information about the All-commits
mailing list