[PATCH] D156297: [SPIRV] Add support for SPV_INTEL_optnone
Paulo Matos via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 31 02:01:16 PDT 2023
pmatos added a comment.
Current patch generates:
OpCapability Kernel
OpCapability Addresses
OpCapability Linkage
OpCapability OptNoneINTEL
OpExtension "SPV_INTEL_optnone"
%1 = OpExtInstImport "OpenCL.std"
OpMemoryModel Physical32 OpenCL
OpExecutionMode %4 ContractionOff
OpSource Unknown 0
OpName %4 "_Z3foov"
OpDecorate %4 LinkageAttributes "_Z3foov" Export
%2 = OpTypeVoid
%3 = OpTypeFunction %2
%4 = OpFunction %2 DontInline %3 ; -- Begin function _Z3foov
%5 = OpLabel
OpReturn
OpFunctionEnd
; -- End function
which looks good to me. If you think this approach works well, I will tidy up the patch and fix up the test.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156297/new/
https://reviews.llvm.org/D156297
More information about the llvm-commits
mailing list