[PATCH] D59852: [IR] Create new method in the Function class (NFC)

Evandro Menezes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 14:23:28 PDT 2019


evandro marked an inline comment as done.
evandro added inline comments.


================
Comment at: llvm/include/llvm/IR/Function.h:594
+  /// Do not optimize this function (-O0).
+  bool optForNaught() const { return hasFnAttribute(Attribute::OptimizeNone); }
+
----------------
spatel wrote:
> I understand that we're trying to mimic the existing 'optForSize' naming, but "optForNaught" is not obvious.
> How about "isOptNone()"?
`optForNone()`?  Though I don't feel strongly about it.  


Repository:
  rL LLVM

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

https://reviews.llvm.org/D59852





More information about the llvm-commits mailing list