[all-commits] [llvm/llvm-project] 087a8e: [Attributes] Clean up handling of UB implying attr...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Jul 25 09:25:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 087a8eea359a4d8ef22c42fddca3b09833928c6a
      https://github.com/llvm/llvm-project/commit/087a8eea359a4d8ef22c42fddca3b09833928c6a
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-07-25 (Sun, 25 Jul 2021)

  Changed paths:
    M llvm/include/llvm/IR/Attributes.h
    M llvm/include/llvm/IR/InstrTypes.h
    M llvm/lib/IR/Attributes.cpp
    M llvm/lib/IR/Function.cpp
    M llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp

  Log Message:
  -----------
  [Attributes] Clean up handling of UB implying attributes (NFC)

Rather than adding methods for dropping these attributes in
various places, add a function that returns an AttrBuilder with
these attributes, which can then be used with existing methods
for dropping attributes. This is with an eye on D104641, which
also needs to drop them from returns, not just parameters.

Also be more explicit about the semantics of the method in the
documentation. Refer to UB rather than Undef, which is what this
is actually about.




More information about the All-commits mailing list