[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)
commitda4a4707d2ed7add4a054b06f26ed547fd1d221d
tree1cd6b790aa6c3d5c8d53ca8ccd32effa7c5ecfb0
parent5efc928ab278adb812772d89c92ab119ef00331e
[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.

llvm-svn: 372537
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86InstrMMX.td