aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2018-07-31 14:25:24 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2018-07-31 14:25:24 +0000
commitb562dbabdad4f4842b7eb20c44cdf9e25bd5af54 (patch)
tree49f12546edbe9e5dc16c80507e919eb677aa9513 /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
parent4a31bcff3f6574b4ad2ad48282d5fb85b1cb27c1 (diff)
downloadllvm-b562dbabdad4f4842b7eb20c44cdf9e25bd5af54.zip
llvm-b562dbabdad4f4842b7eb20c44cdf9e25bd5af54.tar.gz
llvm-b562dbabdad4f4842b7eb20c44cdf9e25bd5af54.tar.bz2
Enrich inline messages
Summary: This patch improves Inliner to provide causes/reasons for negative inline decisions. 1. It adds one new message field to InlineCost to report causes for Always and Never instances. All Never and Always instantiations must provide a simple message. 2. Several functions that used to return the inlining results as boolean are changed to return InlineResult which carries the cause for negative decision. 3. Changed remark priniting and debug output messages to provide the additional messages and related inline cost. 4. Adjusted tests for changed printing. Patch by: yrouban (Yevgeny Rouban) Reviewers: craig.topper, sammccall, sgraenitz, NutshellySima, shchenz, chandlerc, apilipenko, javed.absar, tejohnson, dblaikie, sanjoy, eraman, xbolva00 Reviewed By: tejohnson, xbolva00 Subscribers: xbolva00, llvm-commits, arsenm, mehdi_amini, eraman, haicheng, steven_wu, dexonsmith Differential Revision: https://reviews.llvm.org/D49412 llvm-svn: 338387
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
0 files changed, 0 insertions, 0 deletions