aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2024-08-16 20:36:41 +0200
committerGitHub <noreply@github.com>2024-08-16 11:36:41 -0700
commit51ede55ee2acd3383d990c5fc8882d4b021b87b4 (patch)
tree024c04cce775e631a876179190971867e6309ce8 /llvm/lib/Object/MachOObjectFile.cpp
parent535b209cb3b485a66083d7c4386c16c2df0000a8 (diff)
downloadllvm-51ede55ee2acd3383d990c5fc8882d4b021b87b4.zip
llvm-51ede55ee2acd3383d990c5fc8882d4b021b87b4.tar.gz
llvm-51ede55ee2acd3383d990c5fc8882d4b021b87b4.tar.bz2
Re-Apply "[DXIL][Analysis] Implement enough of DXILResourceAnalysis for buffers" (#104517)
Some build configs allow `llvm_unreachable` in a constexpr context, but not all, so these functions that map a fully covered enum to a string can't be constexpr. This version fixes that by dropping constexpr from those functions. This reverts commit fcc318ff7960d7de8cbac56eb4f32b44b5261677, reapplying 28d577ecefa1557f5dea5566bf33b885c563d14b. Original message follows: This implements the DXILResourceAnalysis pass for `dx.TypedBuffer` and `dx.RawBuffer` types. This should be sufficient to lower `dx.handle.fromBinding` for this set of types, but it leaves a number of TODOs around for other resource types. This also includes a straightforward `print` method in `ResourceInfo` to make the analysis testable. This is deliberately different than the printer in `lib/Target/DirectX/DXILResource.cpp`, which attempts to print bindings in a format compatible with the comments `dxc` prints. We will eventually want to make that functionality driven by this analysis pass, but it isn't sufficient for testing so we need both.
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions