[all-commits] [llvm/llvm-project] a35c64: [Clang][Attribute] Introduce maybe_undef attribute...

skc7 via All-commits all-commits at lists.llvm.org
Thu Jul 28 19:39:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a35c64ce23b7c7e4972c89b224b9363639dddea2
      https://github.com/llvm/llvm-project/commit/a35c64ce23b7c7e4972c89b224b9363639dddea2
  Author: skc7 <Krishna.Sankisa at amd.com>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/CodeGen/attr-maybeundef-template.cpp
    A clang/test/CodeGen/attr-maybeundef.c
    A clang/test/CodeGenHIP/maybe_undef-attr-verify.hip
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    A clang/test/Sema/attr-maybeundef.c

  Log Message:
  -----------
  [Clang][Attribute] Introduce maybe_undef attribute for function arguments which accepts undef values

Add the ability to put __attribute__((maybe_undef)) on function arguments.
Clang codegen introduces a freeze instruction on the argument.

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




More information about the All-commits mailing list