As prelude to this patch https://reviews.llvm.org/D99037, we want to move the int-float conversion
into a separate function that can be reused by matrix cast
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/CGExprScalar.cpp | ||
---|---|---|
1208 | now that' this is a separate function, we should be able to just return the created value directly, right? There should be no need for Res |
clang/lib/CodeGen/CGExprScalar.cpp | ||
---|---|---|
1208 | Yep, I'd also prefer multiple returns. That also cleans up a bunch of hte 'else's in this function. |
Comment Actions
Hrmph... Phab ate my other comment, which was that the name EmitCastBetweenScalarTypes feels clunky. Does EmitScalarCast or EmitScalarScalarCast sound better and capture the meaning correctly?
now that' this is a separate function, we should be able to just return the created value directly, right? There should be no need for Res