OSDN Git Service

[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)
commita03f4fad0d7d308d39fd5d6471a6bf975fba3e81
tree91df0ce7f1fbdb76f531e233938ec9f4956d2b00
parented2b4e5df90780e43eac155219287094e44eb827
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstructionSelector.cpp
lib/Target/X86/X86LegalizerInfo.cpp
test/CodeGen/X86/GlobalISel/inttoptr.ll [new file with mode: 0644]
test/CodeGen/X86/GlobalISel/x86-legalize-inttoptr.mir [new file with mode: 0644]
test/CodeGen/X86/GlobalISel/x86-select-inttoptr.mir [new file with mode: 0644]
test/CodeGen/X86/GlobalISel/x86_64-legalize-inttoptr.mir [new file with mode: 0644]
test/CodeGen/X86/GlobalISel/x86_64-select-inttoptr.mir [new file with mode: 0644]