[GlobalIsel][X86] Support G_INTTOPTR instruction.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Wed, 28 Feb 2018 12:11:53 +0000 (12:11 +0000)
committerAlexander Ivchenko <alexander.ivchenko@intel.com>
Wed, 28 Feb 2018 12:11:53 +0000 (12:11 +0000)
commitc01f750480fc918f58fa25a789eda0e1eaea5117
tree309c243dcc7636f2bce89cc5600ee7670ee89493
parent256869d8bcf6ee6a5c44a18cb1074b89c7dd5a13
[GlobalIsel][X86] Support G_INTTOPTR instruction.

Add legalization/selection for x86/x86_64 and
corresponding tests.

Reviewed By: igorb

Differential Revision: https://reviews.llvm.org/D43622

llvm-svn: 326320
llvm/lib/Target/X86/X86InstructionSelector.cpp
llvm/lib/Target/X86/X86LegalizerInfo.cpp
llvm/test/CodeGen/X86/GlobalISel/inttoptr.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/GlobalISel/x86-legalize-inttoptr.mir [new file with mode: 0644]
llvm/test/CodeGen/X86/GlobalISel/x86-select-inttoptr.mir [new file with mode: 0644]
llvm/test/CodeGen/X86/GlobalISel/x86_64-legalize-inttoptr.mir [new file with mode: 0644]
llvm/test/CodeGen/X86/GlobalISel/x86_64-select-inttoptr.mir [new file with mode: 0644]