OSDN Git Service

AMDGPU: Teach isLegalAddressingMode about global_* instructions
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 29 Jul 2017 01:12:31 +0000 (01:12 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 29 Jul 2017 01:12:31 +0000 (01:12 +0000)
commit27eee9a0e248e13ab112b603f926da5d8c9736d7
treea9b77d695cdfdf41a793e5d57c14784b2cba4c70
parentd74d012b621a9cd2634497a99224abc620bbf904
AMDGPU: Teach isLegalAddressingMode about global_* instructions

Also refine the flat check to respect flat-for-global feature,
and constant fallback should check global handling, not
specifically MUBUF.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309471 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIISelLowering.h
test/CodeGen/AMDGPU/cgp-addressing-modes.ll