[PATCH] D11814: Define a subtarget feature to force stack realignment

Akira Hatanaka via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 12:00:47 PDT 2015


ahatanak created this revision.
ahatanak added reviewers: echristo, dexonsmith.
ahatanak added a subscriber: llvm-commits.
Herald added subscribers: jfb, ted, qcolombet, jholewinski.

This patch defines a subtarget feature to force stack realignment and removes cl::opt option force-stack-align. This change is needed to enable forcing stack realignment when doing LTO. The subtarget features each target defines should be removed in the future once we have a way to define target-independent "generic" subtarget features.

http://reviews.llvm.org/D11814

Files:
  include/llvm/Target/TargetRegisterInfo.h
  include/llvm/Target/TargetSubtargetInfo.h
  lib/CodeGen/TargetRegisterInfo.cpp
  lib/Target/AArch64/AArch64.td
  lib/Target/AArch64/AArch64Subtarget.cpp
  lib/Target/AArch64/AArch64Subtarget.h
  lib/Target/AMDGPU/AMDGPU.td
  lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  lib/Target/AMDGPU/AMDGPUSubtarget.h
  lib/Target/ARM/ARM.td
  lib/Target/ARM/ARMSubtarget.cpp
  lib/Target/ARM/ARMSubtarget.h
  lib/Target/BPF/BPF.td
  lib/Target/BPF/BPFSubtarget.cpp
  lib/Target/BPF/BPFSubtarget.h
  lib/Target/Hexagon/Hexagon.td
  lib/Target/Hexagon/HexagonSubtarget.cpp
  lib/Target/Hexagon/HexagonSubtarget.h
  lib/Target/MSP430/MSP430.td
  lib/Target/MSP430/MSP430Subtarget.cpp
  lib/Target/MSP430/MSP430Subtarget.h
  lib/Target/Mips/Mips.td
  lib/Target/Mips/MipsSubtarget.cpp
  lib/Target/Mips/MipsSubtarget.h
  lib/Target/NVPTX/NVPTX.td
  lib/Target/NVPTX/NVPTXSubtarget.cpp
  lib/Target/NVPTX/NVPTXSubtarget.h
  lib/Target/PowerPC/PPC.td
  lib/Target/PowerPC/PPCSubtarget.cpp
  lib/Target/PowerPC/PPCSubtarget.h
  lib/Target/Sparc/Sparc.td
  lib/Target/Sparc/SparcSubtarget.cpp
  lib/Target/Sparc/SparcSubtarget.h
  lib/Target/SystemZ/SystemZProcessors.td
  lib/Target/SystemZ/SystemZSubtarget.cpp
  lib/Target/SystemZ/SystemZSubtarget.h
  lib/Target/WebAssembly/WebAssembly.td
  lib/Target/WebAssembly/WebAssemblySubtarget.cpp
  lib/Target/WebAssembly/WebAssemblySubtarget.h
  lib/Target/X86/X86.td
  lib/Target/X86/X86FrameLowering.cpp
  lib/Target/X86/X86Subtarget.cpp
  lib/Target/X86/X86Subtarget.h
  lib/Target/XCore/XCore.td
  lib/Target/XCore/XCoreSubtarget.cpp
  lib/Target/XCore/XCoreSubtarget.h
  test/CodeGen/Generic/ForceStackAlign.ll
  test/CodeGen/X86/dynamic-allocas-VLAs.ll
  test/CodeGen/X86/force-align-stack-alloca.ll
  test/CodeGen/X86/force-align-stack.ll
  test/CodeGen/X86/inline-asm-sp-clobber-memcpy.ll
  test/CodeGen/X86/movtopush.ll
  test/CodeGen/X86/pr11468.ll
  test/CodeGen/X86/stack-align-memcpy.ll
  test/CodeGen/X86/unaligned-spill-folding.ll
  test/CodeGen/X86/x86-64-baseptr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11814.31464.patch
Type: text/x-patch
Size: 37522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150806/3fa47c99/attachment.bin>


More information about the llvm-commits mailing list