[llvm] r298826 - [IR] Make Instruction::isAssociative method inline. Add LLVM_READONLY to the static version.

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 26 16:59:58 PDT 2017


> On Mar 26, 2017, at 16:23, Craig Topper via llvm-commits <llvm-commits at lists.llvm.org> wrote:
> 
> +  bool isAssociative() const LLVM_READONLY;
> +  static bool isAssociative(unsigned Opcode) {
> +    return Opcode == And || Opcode == Or || Opcode == Xor ||
> +           Opcode == Add || Opcode == Mul;
> +  }
Should this be READNONE?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170326/0b77f81a/attachment.html>


More information about the llvm-commits mailing list