HomePhabricator

[BuildLibCalls] Add argmemonly to more lib calls.

Authored by fhahn on Aug 28 2020, 1:37 AM.

Description

[BuildLibCalls] Add argmemonly to more lib calls.

strspn, strncmp, strcspn, strcasecmp, strncasecmp, memcmp, memchr,
memrchr, memcpy, memmove, memcpy, mempcpy, strchr, strrchr, bcmp
should all only access memory through their arguments.

I broke out strcoll, strcasecmp, strncasecmp because the result
depends on the locale, which might get accessed through memory.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D86724

Details

Committed
fhahnAug 28 2020, 1:50 AM
Reviewer
jdoerfert
Differential Revision
D86724: [BuildLibCalls] Add argmemonly to more lib calls.
Parents
rG3fe01f0e215b: [llvm-readobj] - Simplify the code that creates dumpers. NFCI.
Branches
Unknown
Tags
Unknown