1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test
Arthur Eubanks 2a2896669d [NewPM] Cleanup IR printing instrumentation
Being lazy with printing the banner seems hard to reason with, we should print it
unconditionally first (it could also lead to duplicate banners if we
have multiple functions in -filter-print-funcs).

The printIR() functions were doing too many things. I separated out the
call from PrintPassInstrumentation since we were essentially doing two
completely separate things in printIR() from different callers.

There were multiple ways to generate the name of some IR. That's all
been moved to getIRName(). The printing of the IR name was also
inconsistent, now it's always "IR Dump on $foo" where "$foo" is the
name. For a function, it's the function name. For a loop, it's what's
printed by Loop::print(), which is more detailed. For an SCC, it's the
list of functions in parentheses. For a module it's "[module]", to
differentiate between a possible SCC with a function called "module".

To preserve D74814, we have to check if we're going to print anything at
all first. This is unfortunate, but I would consider this a special
case that shouldn't be handled in the core logic.

Reviewed By: jamieschmeiser

Differential Revision: https://reviews.llvm.org/D100231
2021-04-15 09:50:55 -07:00
..
Analysis [AA] Updates for D95543. 2021-04-15 12:22:03 +03:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen [LSR] Fix for pre-indexed generated constant offset 2021-04-15 16:44:42 +01:00
DebugInfo Revert "[DebugInfo] Replace debug uses in replaceUsesOutsideBlock" 2021-04-15 16:35:45 +01:00
Demangle
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation
Integer
JitListener
Linker
LTO
MachineVerifier
MC [PowerPC] Add ROP Protection Instructions for PowerPC 2021-04-15 11:38:38 -05:00
Object [yaml2obj/obj2yaml/llvm-readobj] Support printing and parsing AVR-specific e_flags 2021-04-15 15:54:28 +02:00
ObjectYAML
Other [NewPM] Cleanup IR printing instrumentation 2021-04-15 09:50:55 -07:00
SafepointIRVerifier
Support [llvm-objdump] Switch command-line parsing from llvm::cl to OptTable 2021-04-14 20:12:24 -04:00
SymbolRewriter
TableGen
ThinLTO/X86 [NewPM] Cleanup IR printing instrumentation 2021-04-15 09:50:55 -07:00
tools [yaml2obj/obj2yaml/llvm-readobj] Support printing and parsing AVR-specific e_flags 2021-04-15 15:54:28 +02:00
Transforms [LSR] Fix for pre-indexed generated constant offset 2021-04-15 16:44:42 +01:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh