aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Archive
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-11-12 20:55:29 +0000
committerDavid Greene <greened@obbligato.org>2009-11-12 20:55:29 +0000
commitb87bc95db075dae3033a3c541b55b4cb711c332c (patch)
treef1111bb6bee282dc38926ae7457ec5dbb2364185 /lib/Archive
parentdb99095cfe2690509a27820aa384bc528426e471 (diff)
downloadexternal_llvm-b87bc95db075dae3033a3c541b55b4cb711c332c.zip
external_llvm-b87bc95db075dae3033a3c541b55b4cb711c332c.tar.gz
external_llvm-b87bc95db075dae3033a3c541b55b4cb711c332c.tar.bz2
Add hasLoadFromStackSlot and hasStoreToStackSlot to return whether a
machine instruction loads or stores from/to a stack slot. Unlike isLoadFromStackSlot and isStoreFromStackSlot, the instruction may be something other than a pure load/store (e.g. it may be an arithmetic operation with a memory operand). This helps AsmPrinter determine when to print a spill/reload comment. This is only a hint since we may not be able to figure this out in all cases. As such, it should not be relied upon for correctness. Implement for X86. Return false by default for other architectures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive')
0 files changed, 0 insertions, 0 deletions