[PATCH] D150878: Add StringRef::consumeInteger(APInt)

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 18 09:12:52 PDT 2023


thopre created this revision.
thopre added reviewers: bkramer, ishitatsuyuki, dblaikie, nikic, chandlerc, efriedma.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
thopre requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This will be required to allow arbitrary precision support to
FileCheck's numeric variables and expressions. Note: as per
getAsInteger(), this does not support negative value. If there is
interest for that it can be added in a separate patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150878

Files:
  llvm/include/llvm/ADT/StringRef.h
  llvm/lib/Support/StringRef.cpp
  llvm/unittests/ADT/StringRefTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150878.523402.patch
Type: text/x-patch
Size: 5176 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230518/6936c4e7/attachment.bin>


More information about the llvm-commits mailing list