AArch64 & ARM: refactor crypto intrinsics to take scalars
authorTim Northover <tnorthover@apple.com>
Mon, 3 Feb 2014 17:27:49 +0000 (17:27 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 3 Feb 2014 17:27:49 +0000 (17:27 +0000)
commit07786c2f091c5179719b56e74a51dfa8ba5e3dc4
tree5f930e171ec467c01b4dbd7cb2c04a4593a8ff1f
parente6c04bff3cc9db20d049f20bd75092889cdf36b1
AArch64 & ARM: refactor crypto intrinsics to take scalars

Some of the SHA instructions take a scalar i32 as one argument (largely because
they work on 160-bit hash fragments). This wasn't reflected in the IR
previously, with ARM and AArch64 choosing different types (<4 x i32> and <1 x
i32> respectively) which was ugly.

This makes all the affected intrinsics take a uniform "i32", allowing them to
become non-polymorphic at the same time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200706 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsAArch64.td
include/llvm/IR/IntrinsicsARM.td
lib/Target/AArch64/AArch64InstrNEON.td
lib/Target/ARM/ARMInstrNEON.td
test/CodeGen/AArch64/neon-crypto.ll
test/CodeGen/ARM/intrinsics-crypto.ll