]> granicus.if.org Git - llvm/commit
Teach GlobalISelEmitter to treat used iPTRAny operands as pointer operands
authorJessica Paquette <jpaquette@apple.com>
Tue, 20 Aug 2019 22:04:10 +0000 (22:04 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 20 Aug 2019 22:04:10 +0000 (22:04 +0000)
commit55599619e3bb2a9f94fdbd195a3c3b080915d67c
tree7b5a26f8b8c06a6c1ae2c84320fcacbae60cef0c
parentb0e685a1a372b1ef1978bfcc16ebeb2be9c70b82
Teach GlobalISelEmitter to treat used iPTRAny operands as pointer operands

Overloaded intrinsics can use iPTRAny in used/input operands.

The GlobalISelEmitter doesn't know that these are pointers, so it treats them
as scalars. As a result, these intrinsics can't be imported.

This teaches the GlobalISelEmitter to recognize these as pointers rather than
scalars.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369455 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/GlobalISelEmitterOverloadedPtr.td [new file with mode: 0644]
utils/TableGen/CodeGenIntrinsics.h
utils/TableGen/CodeGenTarget.cpp
utils/TableGen/GlobalISelEmitter.cpp