[PATCH] D147558: [IR] Add a ConstantInt::getAllOnes wrapper around ConstantInt::get/getSigned.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 12:31:33 PDT 2023


nikic added a comment.

> This patch adds ConstantInt::getAllOnes and replaces other calls to use it.

Does it? I don't see any change to the Constant hierarchy.

In any case, I don't get why we need getAllOnes() when we already have getAllOnesValue().


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147558



More information about the llvm-commits mailing list