[clang] [HLSL] Adds matrix support for isnan() and isinf(). (PR #195586)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 22 12:54:09 PDT 2026
================
@@ -2242,15 +2241,14 @@ Value *ScalarExprEmitter::VisitMatrixSingleSubscriptExpr(
MB.CreateIndexAssumption(RowIdx, NumRows);
Value *FlatMatrix = Visit(E->getBase());
- llvm::Type *ElemTy = CGF.ConvertTypeForMem(MatrixTy->getElementType());
+ llvm::Type *ElemTy = CGF.ConvertType(MatrixTy->getElementType());
----------------
farzonl wrote:
Yeah this looks very wrong. you changed tests to i1s for bools but in HLSL a bool is i32
https://github.com/llvm/llvm-project/pull/195586
More information about the cfe-commits
mailing list