[PATCH] D20647: Add flag to add InlineHint attribute on implicitly inline functions

Rudy Pons via cfe-commits cfe-commits at lists.llvm.org
Wed May 25 15:40:29 PDT 2016


Ilod created this revision.
Ilod added a subscriber: cfe-commits.

Add two flags (-finline-implicit-hint and -fno-inline-implicit-hint) to allow to add InlineHint on implicitly inline functions (constexpr and member functions of class that was defined in the class body).
This is needed to add support for /Ob1 flag on clang-cl, which inlines only hinted functions, but considers implicitly inline functions as hinted (as per C++ standard).

http://reviews.llvm.org/D20647

Files:
  include/clang/Driver/Options.td
  include/clang/Frontend/CodeGenOptions.def
  lib/CodeGen/CodeGenFunction.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGenCXX/inline-hint.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20647.58523.patch
Type: text/x-patch
Size: 6512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160525/2c43caed/attachment.bin>


More information about the cfe-commits mailing list