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

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 13:32:28 PDT 2019


spatel 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); }
+
----------------
I understand that we're trying to mimic the existing 'optForSize' naming, but "optForNaught" is not obvious.
How about "isOptNone()"?


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