[all-commits] [llvm/llvm-project] 6a5e29: [BuildLibCalls] Add argmemonly, writeonly, nounwin...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Dec 1 02:10:23 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a5e29d13f8e369e3c17b736d4b077c8fd79c436
      https://github.com/llvm/llvm-project/commit/6a5e29d13f8e369e3c17b736d4b077c8fd79c436
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-12-01 (Wed, 01 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/BuildLibCalls.cpp
    M llvm/test/Transforms/InferFunctionAttrs/annotate.ll

  Log Message:
  -----------
  [BuildLibCalls] Add argmemonly, writeonly, nounwind to memset_chk.

The memset_chk library function should match memset's attributes with
respect of memory effects (argmemonly, writeonly). It also does not
raise exceptions. It may not return, in case it aborts the program.

Reviewed By: efriedma

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




More information about the All-commits mailing list