[llvm] [SPIR-V] Support SPV_INTEL_fp_max_error extension for `!fpmath` metadata (PR #130619)
Dmitry Sidorov via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 11 04:11:46 PDT 2025
================
@@ -2016,6 +2016,19 @@ void SPIRVEmitIntrinsics::insertSpirvDecorations(Instruction *I,
processMemAliasingDecoration(LLVMContext::MD_alias_scope);
processMemAliasingDecoration(LLVMContext::MD_noalias);
}
+ // MD_fpmath
+ if (MDNode *MD = I->getMetadata("fpmath")) {
----------------
MrSidims wrote:
nit:
```suggestion
if (MDNode *MD = I->getMetadata(LLVMContext::MD_fpmath)) {
```
https://github.com/llvm/llvm-project/pull/130619
More information about the llvm-commits
mailing list