History log of /frameworks/rs/rsov/compiler/Context.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bbf0b0eac5b1aa65ded878d80a0adc83e48527c8 28-Mar-2017 I-Jui (Ray) Sung <ijsung@google.com> Fix RSoV compiler regression

c/299496/ revised the protocol between bcc and bcinfo; bcc now injects
some metadata into the module which is in turn parsed by the
bcinfo::MetadataExtractor(Module *) constructor. Since RSoV uses bcinfo
on non-bcc-processed bitcodes, those missing data caused the constructor
to fail.

This CL uses a different MetadataExtractor constructor so that all the
required information are passed to the MetadataExtractor via full bitcode.

Bug: 30964317
Bug: 36657118
Test: RSoV LIT test, RSoVTest on Angler
Change-Id: I9b423ad8d0bcab5d261e595c10d4676486ec4b3b
(cherry picked from commit 56813de7a00f872fad490b1b3fe5ab1b620c1be5)
/frameworks/rs/rsov/compiler/Context.cpp
eb6548743c40f4129ca55a58ff2d5254f22e95e1 22-Feb-2017 Yang Ni <yangni@google.com> 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
/frameworks/rs/rsov/compiler/Context.cpp