Return true if the target can fold loads/stores through subreg operands.
Synopsis
Declared in <llvm/CodeGen/TargetInstrInfo.h>
virtual
bool
isSubregFoldable() const;
Description
Check whether the target can fold a load that feeds a subreg operand (or a subreg operand that feeds a store). For example, X86 may want to return true if it can fold movl (%esp), %eax subb, %al, ... Into: subb (%esp), ... Ideally, we'd like the target implementation of foldMemoryOperand() to reject subregs ‐ but since this behavior used to be enforced in the target‐independent code, moving this responsibility to the targets has the potential of causing nasty silent breakage in out‐of‐tree targets.
Return Value
True if the target can fold loads/stores through subreg operands.
Created with MrDocs