diff options
author | Lei Zhang <antiagainst@google.com> | 2022-02-17 09:08:15 -0500 |
---|---|---|
committer | Lei Zhang <antiagainst@google.com> | 2022-02-17 09:08:58 -0500 |
commit | c9b36807beaf120f4e06d9da3b7df7625e440825 (patch) | |
tree | 3675b944ececd0b0b0542f96c2ec6f6694e3a085 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | d1cd64ffdd832220dbe1829c2f09b880be67be31 (diff) | |
download | llvm-c9b36807beaf120f4e06d9da3b7df7625e440825.zip llvm-c9b36807beaf120f4e06d9da3b7df7625e440825.tar.gz llvm-c9b36807beaf120f4e06d9da3b7df7625e440825.tar.bz2 |
[mlir][spirv] Add a pass to unify aliased resource variables
In SPIR-V, resources are represented as global variables that
are bound to certain descriptor. SPIR-V requires those global
variables to be declared as aliased if multiple ones are bound
to the same slot. Such aliased decorations can cause issues
for transcompilers like SPIRV-Cross when converting to source
shading languages like MSL.
So this commit adds a pass to perform analysis of aliased
resources and see if we can unify them into one.
Reviewed By: ThomasRaoux
Differential Revision: https://reviews.llvm.org/D119872
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions