[PATCH] D123815: [InstCombine] Add a strnlen handler stub.

Martin Sebor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 13:14:30 PDT 2022


msebor created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
msebor requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch in the `strnlen` series adds a stub handler for the function and annotates calls to it with the expected attributes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123815

Files:
  llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
  llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
  llvm/test/Transforms/InstCombine/strnlen-1.ll
  llvm/test/Transforms/InstCombine/strnlen-2.ll
  llvm/test/Transforms/InstCombine/strnlen-3.ll
  llvm/test/Transforms/InstCombine/strnlen-5.ll
  llvm/test/Transforms/InstCombine/strnlen-6.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123815.422945.patch
Type: text/x-patch
Size: 19011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220414/88201e74/attachment.bin>


More information about the llvm-commits mailing list