Skip to content
Snippets Groups Projects
  • Jakob Stoklund Olesen's avatar
    Change TII::foldMemoryOperand API to require the machine instruction to be · bd953d18
    Jakob Stoklund Olesen authored
    inserted in a MBB, and return an already inserted MI.
    
    This target API change is necessary to allow foldMemoryOperand to call
    storeToStackSlot and loadFromStackSlot when folding a COPY to a stack slot
    reference in a target independent way.
    
    The foldMemoryOperandImpl hook is going to change in the same way, but I'll wait
    until COPY folding is actually implemented. Most targets only fold copies and
    won't need to specialize this hook at all.
    
    llvm-svn: 107991
    bd953d18