[clang] [llvm] [SPIRV] Add size optimisation for AMDGCN flavoured SPIR-V (PR #228188)
Alex Voicu via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 03:48:57 PDT 2026
================
@@ -1580,6 +1580,13 @@ def no_use_spirv_backend
Group<hip_Group>,
Flags<[HelpHidden]>,
HelpText<"Do not use the SPIRV backend for compilation ">;
+def fenable_spirv_size_optimization
+ : Flag<["-"], "fenable-spirv-size-optimization">,
+ MarshallingInfoFlag<CodeGenOpts<"AMDGCNSPIRVSizeOptimization">>,
+ Visibility<[ClangOption, CC1Option]>,
+ Group<hip_Group>,
----------------
AlexVlx wrote:
Fixed, modulo test, I had forgotten to add the Clang bit.
https://github.com/llvm/llvm-project/pull/228188
More information about the cfe-commits
mailing list