[X86] Convert to Constant arguments to MMX shift by i32 intrinsics to TargetConstant...
authorCraig Topper <craig.topper@intel.com>
Mon, 23 Sep 2019 01:21:51 +0000 (01:21 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 23 Sep 2019 01:21:51 +0000 (01:21 +0000)
commit72f361078143e37720a4d8c4da9ad89f522044f9
tree071e1bffeede1a0e3d71a35226a85377f89cd404
parent0dfbb17f5ff52402335ae91ba7d33e05d2acc67d
[X86] Convert to Constant arguments to MMX shift by i32 intrinsics to TargetConstant during lowering.

This allows us to use timm in the isel table which is more
consistent with other intrinsics that take an immediate now.

We can't declare the intrinsic as taking an ImmArg because we
need to match non-constants to the shift by MMX register
instruction which we do by mutating the intrinsic id during
lowering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372537 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrMMX.td