[llvm] [HLSL] Adding DXIL Target type into `TypedInfo` (PR #164887)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 24 12:29:50 PDT 2025
================
@@ -206,6 +206,13 @@ static dxil::ElementType toDXILElementType(Type *Ty, bool IsSigned) {
return ElementType::Invalid;
}
+static dxil::ElementType toDXILTargetType(dxil::ElementType ET) {
+ // TODO: Handle unorm, snorm, and packed.
+ if (ET == dxil::ElementType::U64 || ET == dxil::ElementType::F64)
----------------
bogner wrote:
What about `dxil::ElementType::I64`?
We could arguably pre-emptively put `SNormF64` and `UNormF64` in here too (They also use `U32` - https://hlsl.godbolt.org/z/3jr3qG17q), but I don't think we can really test that so it's probably fine to leave it as a TODO until the `toDXILElementType` TODO is completed.
https://github.com/llvm/llvm-project/pull/164887
More information about the llvm-commits
mailing list