[PATCH] D70547: [ARM][MVE][Intrinsics] Add MVE VAND/VORR/VORN/VEOR/VBIC intrinsics.
Simon Tatham via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 26 03:39:14 PST 2019
simon_tatham added inline comments.
================
Comment at: clang/include/clang/Basic/arm_mve.td:68
+def "": Intrinsic<Vector, (args Vector:$inactive, Vector:$a, Vector:$b, Predicate:$pred),
+ (bitcast (IRInt<int_op, [UVector, Predicate]>
+ (bitcast $a, UVector),
----------------
I think it's worth adding a comment here explaining why this bitcasting isn't overcomplicating the IR in the integer case. (Because `Vector` and `UVector` may be different vector types at the C level – vectors of signed/unsigned ints of the same size – but once they're lowered to IR, they're just vectors of `i16` or `i32` or whatever, with no sign at all, so the bitcasts will be automatically elided by `IRBuilder`.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70547/new/
https://reviews.llvm.org/D70547
More information about the cfe-commits
mailing list