[PATCH] Implement __builtin_stack_pointer

Renato Golin renato.golin at linaro.org
Tue Mar 25 10:16:11 PDT 2014


Hi joerg, jddupas, rsmith,

Discussion here:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-October/066325.html

We're only implementing the lowering for x86/ARM/AArch64, other back-ends will fail. How to protect against that kind of error? What about architectures without reserved stack pointers?

Fixes PR19243.

Patch by Behan Webster (plus a few test changes).

http://llvm-reviews.chandlerc.com/D3184

Files:
  docs/LangRef.rst
  include/llvm/CodeGen/ISDOpcodes.h
  include/llvm/IR/Intrinsics.td
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  lib/Target/AArch64/AArch64ISelLowering.cpp
  lib/Target/AArch64/AArch64ISelLowering.h
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/ARM/ARMISelLowering.h
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  test/CodeGen/AArch64/stackpointer.ll
  test/CodeGen/ARM/stackpointer.ll
  test/CodeGen/X86/stackpointer.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3184.1.patch
Type: text/x-patch
Size: 10891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140325/fcc94d15/attachment.bin>


More information about the llvm-commits mailing list