[PATCH] D45421: [X86] Emit native IR for pmuldq/pmuludq builtins.
Sanjay Patel via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 9 06:48:51 PDT 2018
spatel added a comment.
> The only question I have is whether its ok to emit the v2i32 intermediate type for the 128-bit version. I wasn't sure of any examples where we use an illegal type in our intrinsic/builtin handling. At least not a narrower type. I know pavg uses a wider type.
I don't know of any precedence at this level, but we created illegal scalar int types (i128/i256) as part of memcmp expansion knowing that we'd match and combine those specific patterns in the DAG for x86. I figured that as long as we take responsibility for handling the illegal types, it's ok to do that...nobody has complained so far. :)
Repository:
rC Clang
https://reviews.llvm.org/D45421
More information about the cfe-commits
mailing list