llvm-beanz wrote: Unfortunately the always casting to and from the typed pointer doesn't work for DXIL because DXIL disallows bitcasts for a lot of cases, and that is enforced by the DXIL validator which operates on typed pointer IR. https://github.com/llvm/llvm-project/pull/94337