[GlobalIsel][X86] Support G_PTRTOINT instruction.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Wed, 28 Feb 2018 09:18:47 +0000 (09:18 +0000)
committerAlexander Ivchenko <alexander.ivchenko@intel.com>
Wed, 28 Feb 2018 09:18:47 +0000 (09:18 +0000)
commit46e07e362303a8b0c06651ab5bd71255aa8b16dc
tree0065600892b8717b6b2c383c388bddb5787e9a2e
parent212e67619a227a513d8a915f04d3e8c23967853c
[GlobalIsel][X86] Support G_PTRTOINT instruction.

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

Reviewed By: igorb

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

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