Commit Graph

207 Commits

Author SHA1 Message Date
Michael Gottesman
810181c6d1 Add two utility passes, Compute{Dominance,Loop}Info that just build the relevant infos.
This makes it easy to use -sil-verify-all to verify that both type of info are
created correctly and that analyses are properly updating them. I am going to
use this to harden testing of the loop canonicalizer.
2015-12-17 19:18:45 -06:00
Nadav Rotem
7f9118f037 Move getAnalysis into the debug section (to fix a warning). NFC. 2015-12-16 10:43:00 -08:00
Michael Gottesman
7f393b2c33 [loop-region-analysis] Do not attempt to dump loop regions of function declarations.
It looks like this condition was tightened recently and a verifier assert is
triggered.
2015-12-13 13:43:03 -06:00
Xin Tong
12a3ad4f4a Rename MemLocationPrinter.cpp to LSLocationPrinter.cpp 2015-12-13 10:08:59 -08:00
Xin Tong
27b5a40359 Rename MemLocation to LSLocation and LoadStoreValue to LSValue 2015-12-13 10:02:45 -08:00
Xin Tong
642a555a6c Rename MemLocation.h to SILValueProjection.h 2015-12-13 09:31:56 -08:00
Andrew Trick
739b0e9c56 Reorganize SILOptimizer directories for better discoverability.
(libraries now)

It has been generally agreed that we need to do this reorg, and now
seems like the perfect time. Some major pass reorganization is in the
works.

This does not have to be the final word on the matter. The consensus
among those working on the code is that it's much better than what we
had and a better starting point for future bike shedding.

Note that the previous organization was designed to allow separate
analysis and optimization libraries. It turns out this is an
artificial distinction and not an important goal.
2015-12-11 15:14:23 -08:00