[PATCH] D137053: [IR][Instruction] Annotate more methods with LLVM_READONLY
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 1 00:56:35 PDT 2022
alexander-shaposhnikov added inline comments.
================
Comment at: llvm/include/llvm/IR/Instruction.h:464
/// Determine whether the approximate-math-functions flag is set.
- bool hasApproxFunc() const;
+ bool hasApproxFunc() const LLVM_READONLY;
----------------
arsenm wrote:
> Why aren't all these trivial getters inline?
I've been thinking about doing an experiment to make them inline, will post the results here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137053/new/
https://reviews.llvm.org/D137053
More information about the llvm-commits
mailing list