diff options
author | Renato Golin <rengolin@systemcall.eu> | 2019-06-06 19:15:52 +0000 |
---|---|---|
committer | Renato Golin <rengolin@systemcall.eu> | 2019-06-06 19:15:52 +0000 |
commit | 9e97caf59474880349f8710463bffb97996a7336 (patch) | |
tree | 3e56e6122daf048c947f2e80c17d8d41f94eea15 /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | |
parent | 60ec248148c52a47cecf8b660c32a0e7568a8a00 (diff) | |
download | bcm5719-llvm-9e97caf59474880349f8710463bffb97996a7336.tar.gz bcm5719-llvm-9e97caf59474880349f8710463bffb97996a7336.zip |
[LV] Wrap LV illegality reporting in a function. NFC.
A function for loop vectorization illegality reporting has been
introduced:
void LoopVectorizationLegality::reportVectorizationFailure(
const StringRef DebugMsg, const StringRef OREMsg,
const StringRef ORETag, Instruction * const I) const;
The function prints a debug message when the debug for the compilation
unit is enabled as well as invokes the optimization report emitter to
generate a message with a specified tag. The function doesn't cover any
complicated logic when a custom lambda should be passed to the emitter,
only generating a message with a tag is supported.
The function always prints the instruction `I` after the debug message
whenever the instruction is specified, otherwise the debug message
ends with a dot: 'LV: Not vectorizing: Disabled/already vectorized.'
Patch by Pavel Samolysov <samolisov@gmail.com>
llvm-svn: 362736
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
0 files changed, 0 insertions, 0 deletions