OSDN Git Service

Refactor X86 symbol access classification.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 20 May 2016 12:20:10 +0000 (12:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 20 May 2016 12:20:10 +0000 (12:20 +0000)
commitdddfc0bb567392f39240269ad8a5bf52f0a3a131
tree1f7041bde015685f4e63e0725d29f11ba0fc1b02
parentf5a1debd28b40d8f9c2232253eb75316c4e687d7
Refactor X86 symbol access classification.

This refactors the logic in X86 to avoid code duplication. It also
splits it in two steps: it first decides if a symbol is local to the DSO
and then uses that information to decide how to access it.

The first part is implemented by shouldAssumeDSOLocal. It is not in any
way specific to X86. In a followup patch I intend to move it to
somewhere common and reused it in other backends.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270209 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86Subtarget.cpp
lib/Target/X86/X86Subtarget.h
test/CodeGen/X86/fast-isel-x86.ll