diff options
author | Helena Kotas <hekotas@microsoft.com> | 2024-10-16 21:24:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 21:24:13 -0700 |
commit | 4512bbe7467c1c0f884304e5654d1070df58d6f8 (patch) | |
tree | 4eb5859fa619a3c54f02c1f08a8859ca01a94a96 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 1b4a173fa41e02eddec9f1cf41324aa4ea8a7fa5 (diff) | |
download | llvm-4512bbe7467c1c0f884304e5654d1070df58d6f8.zip llvm-4512bbe7467c1c0f884304e5654d1070df58d6f8.tar.gz llvm-4512bbe7467c1c0f884304e5654d1070df58d6f8.tar.bz2 |
[HLSL] Collect explicit resource binding information (#111203)
Scans each global variable declaration and its members and collects all
required resource bindings in a new `SemaHLSL` data member `Bindings`.
New fields are added `HLSLResourceBindingAttr` for storing processed
binding information so that it can be used by CodeGen (`Bindings` or any
other Sema information is not accessible from CodeGen.)
Adjusts the existing register binding attribute handling and diagnostics
to:
- do not create HLSLResourceBindingAttribute if it is not valid
- diagnose only the simple/local errors when a register binding
attribute is parsed
- additional diagnostic of binding type mismatches is done later and
uses the new `Bindings` data
Fixes #110719
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions