commit | eb6548743c40f4129ca55a58ff2d5254f22e95e1 | [log] [tgz] |
---|---|---|
author | Yang Ni <yangni@google.com> | Tue Feb 21 16:40:01 2017 -0800 |
committer | I-Jui (Ray) Sung <ijsung@google.com> | Wed Mar 15 22:50:03 2017 +0000 |
tree | aed7907457f658844c29251360fcfcfa9695c570 | |
parent | a681bdded5327f682c01b231c64257824e5746d8 [diff] |
Reorganized metadata related code in rs2spirv Bug: 30964317 Added a Context class, which is a singleton that is shared across all LLVM and Spirit compiler passes for rs2spirv. Inside Context, there is a bcinfo::MetadataExtractor, as well as data structures for quick lookup of information about foreach kernels and exported variables. Cleaned up passes which used to use MetadataExtractor to use this new Context. Test: lit tests Change-Id: I3c88f8e8e75b354d87c155312176544fb660526b