[PATCH] D126984: [clang] Add initial support for gcc's optimize function attribute

Stephen Long via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 6 16:12:59 PDT 2022


steplong updated this revision to Diff 434639.
steplong added a comment.

- Added docs for attribute
- Changed attribute to use Enum
- Optsize includes -Og, -Oz, and -Ofast
- Change to warning instead of error


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126984/new/

https://reviews.llvm.org/D126984

Files:
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/lib/CodeGen/CodeGenModule.h
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/CodeGen/attr-optimize.c
  clang/test/Sema/attr-optimize.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126984.434639.patch
Type: text/x-patch
Size: 13012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220606/11cd230d/attachment-0001.bin>


More information about the cfe-commits mailing list