OSDN Git Service

[NFC] [PowerPC] add an routine in PPCTargetLowering to determine if a global is acces...
authorQingShan Zhang <qshanz@cn.ibm.com>
Mon, 3 Dec 2018 03:32:16 +0000 (03:32 +0000)
committerQingShan Zhang <qshanz@cn.ibm.com>
Mon, 3 Dec 2018 03:32:16 +0000 (03:32 +0000)
commite28eceb434ca0d3d032bb6de141f3173a514b427
treefc849abfe3915eb16f1b490615f20935a72b0bc4
parentfe47f263abdd39801e03f9eee9fff09064a54b15
[NFC] [PowerPC] add an routine in PPCTargetLowering to determine if a global is accessed as got-indirect or not.

In theory, we should let the PPC target to determine how to lower the TOC Entry for globals.
And the PPCTargetLowering requires this query to do some optimization for TOC_Entry.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348108 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h