[llvm] [SPIRV] support for extension SPV_INTEL_maximum_registers (PR #137229)
Dmitry Sidorov via llvm-commits
llvm-commits at lists.llvm.org
Thu May 15 09:47:04 PDT 2025
================
@@ -532,6 +574,10 @@ void SPIRVAsmPrinter::outputExecutionMode(const Module &M) {
Inst.addOperand(MCOperand::createImm(TypeCode));
outputMCInst(Inst);
}
+ if (MDNode *Node = F.getMetadata("RegisterAllocMode")) {
----------------
MrSidims wrote:
I suggest not to rely on internal to internal https://github.com/intel/llvm metadata. Instead lets use !spirv.ExecutionMode metadata, see https://github.com/KhronosGroup/SPIRV-LLVM-Translator/blob/main/docs/SPIRVRepresentationInLLVM.rst as 'SPIR-V friendly LLVM IR' is also used in SPIR-V backend.
https://github.com/llvm/llvm-project/pull/137229
More information about the llvm-commits
mailing list