diff options
author | Justin Bogner <mail@justinbogner.com> | 2024-08-23 12:58:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-23 12:58:12 -0700 |
commit | aa61925eace86602ce1da00bda4a993719061df2 (patch) | |
tree | 3f5fc7b5f9fe6a376ded32608710abc82f3db5a6 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a74f0ab50bcb9d4b848ac8552051434bd00172dc (diff) | |
download | llvm-aa61925eace86602ce1da00bda4a993719061df2.zip llvm-aa61925eace86602ce1da00bda4a993719061df2.tar.gz llvm-aa61925eace86602ce1da00bda4a993719061df2.tar.bz2 |
[DirectX] Lower `@llvm.dx.handle.fromBinding` to DXIL ops
The `@llvm.dx.handle.fromBinding` intrinsic is lowered either to the
`CreateHandle` op or a pair of `CreateHandleFromBinding` and `AnnotateHandle`
ops, depending on the DXIL version. Regardless of the DXIL version we need to
emit metadata about the binding, but that's left to a separate change.
These DXIL ops all need to return the `%dx.types.Handle` type, but the llvm
intrinsic returns a target extension type. To facilitate changing the type of
the operation and all of its users, we introduce `%llvm.dx.cast.handle`, which
can cast between the two handle representations.
Pull Request: https://github.com/llvm/llvm-project/pull/104251
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions