Repository navigation
[SM6.10] LinAlg Validation: MatrixLoadFromDescriptor - #8641
Ashley Coleman (V-FEXrt) merged 1 commit into
Conversation
6653107 to
2db7aee
Compare
Damyan Pepper (damyanp)
left a comment
There was a problem hiding this comment.
One take-it-or-leave-it suggestion.
| ValidateLinAlgOpReturnMatrix(CI, ValCtx); | ||
| ValidateLinAlgOpParameters(CI, ValCtx); | ||
|
|
||
| Type *RetMatTy = CI->getType(); |
There was a problem hiding this comment.
Even though I guess this is a one-off bit of validation, wondering if this would be clearer if it were factored out into a function rather than inlined in this massive switch statement?
There was a problem hiding this comment.
I've been going back and forth a lot on this lol!
There is very little reuse between cases but I still think pulling it out into set functions is probably worth it for readability. Do you mind if I do that cleanup after getting the current gamut of PRs go in?
(Doing the function thing will also help a lot with merge conflict avoidance)
There was a problem hiding this comment.
Yeah, no worries with doing this later.
Fixes #8496