[GlobalISel] Add buildMerge with SrcOp initializer list
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Fri, 7 Feb 2020 16:38:01 +0000 (17:38 +0100)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Fri, 7 Feb 2020 17:43:45 +0000 (18:43 +0100)
commit7df5fc9e03ec5788e2ae0c1c730a5f26db441f66
tree33ec152d9e4c2dd2e0f6e0fa1d1364b7d6408c47
parente2d7c5b2b6559f311938c0853b46ff21df55938a
[GlobalISel] Add buildMerge with SrcOp initializer list

Allows more flexible use of buildMerge in places where
use operands are available as SrcOp since it does not
require explicit conversion to Register.
Simplify code with new buildMerge.

Differential Revision: https://reviews.llvm.org/D74223
llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
llvm/lib/Target/AArch64/AArch64CallLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp