OSDN Git Service

AMDGPU: Be explicit about whether the high-word in SI_PC_ADD_REL_OFFSET is 0
authorNicolai Haehnle <nhaehnle@gmail.com>
Sun, 16 Jun 2019 17:32:01 +0000 (17:32 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sun, 16 Jun 2019 17:32:01 +0000 (17:32 +0000)
commit58b383765e525fe10bca7c10d5dbc1ed1074947a
tree97f691cd9d0e8d81b5d981acf1334fb5f5e0472a
parentd116e8400b55d43623fd8350a69f7a1e42c7b8f6
AMDGPU: Be explicit about whether the high-word in SI_PC_ADD_REL_OFFSET is 0

Summary:
Instead of encoding a high-word of 0 using a fake TargetGlobalAddress,
just use a literal target constant. This simplifies some subsequent changes.

The generated assembly is now more explicit about the kind of relocation
that is to be used.

Change-Id: I066835202d23b5941fa7a358eb4b89e9b71ab6f8

Reviewers: arsenm, rampitec

Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363516 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIInstructions.td
test/CodeGen/AMDGPU/llvm.memcpy.ll
test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll