[clang] [HLSL] add extra scalar vector overloads for clamp (PR #129939)

Joshua Batista via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 6 10:26:26 PST 2025


https://github.com/bob80905 approved this pull request.

Ok, given the specific conditions that:
1. there are 3 parameters
2. the first parameter should always be the vector type
3. and there should be at most one base type among all the parameters
This macro should work for that specific case.
I think it may need to be adjusted / more parameters may need to be added to the macro if there are later intrinsics that don't satisfy these specific conditions (that is, if there are 2 base types in the parameters that need to be cast to vector types).
Might need to double check with someone whether the vector base base case is allowed or not. But otherwise LGTM.


https://github.com/llvm/llvm-project/pull/129939


More information about the cfe-commits mailing list