[PATCH] D87812: [FPEnv] Use typed accessors in FPOptions

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 20:11:04 PDT 2020


sepavloff created this revision.
sepavloff added reviewers: rjmccall, kpn, mibintc.
Herald added subscribers: llvm-commits, dexonsmith.
Herald added projects: clang, LLVM.
sepavloff requested review of this revision.

Previously methods `FPOptions::get*` returned unsigned value even if the
corresponding property was represented by specific enumeration type. With
this change such methods return actual type of the property. It also
allows printing value of a property as text rather than integer code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87812

Files:
  clang/include/clang/Basic/FPOptions.def
  clang/include/clang/Basic/LangOptions.h
  clang/test/AST/ast-dump-fpfeatures.cpp
  llvm/include/llvm/ADT/FloatingPointMode.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87812.292402.patch
Type: text/x-patch
Size: 5626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200917/b407e2fc/attachment.bin>


More information about the llvm-commits mailing list