spatel added inline comments.

================
Comment at: clang/lib/CodeGen/CGCall.cpp:1736-1737
+    if (CodeGenOpts.FPSubnormalMode != llvm::SubnormalMode::Invalid)
+      FuncAttrs.addAttribute("denormal-fp-math",
+                             
llvm::subnormalModeName(CodeGenOpts.FPSubnormalMode));
 
----------------
Do you plan to change the attribute string from "denormal" to "subnormal" as 
part of upgrading it to work per-FP-type? Would we need to auto-upgrade old IR 
as part of making the string consistent with the code?

Can we stash the attribute string name inside a getter function in the new ADT 
file, so clang and LLVM have a common source of truth for the attribute name?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69598/new/

https://reviews.llvm.org/D69598



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to