[PATCH] Implement __builtin_stack_pointer

Behan Webster behanw at converseincode.com
Tue Mar 25 13:05:36 PDT 2014


Thanks, but I'm not the author. Mark Charlebois wrote the __builtin_stack_pointer patch for clang and LLVM

Behan

Sent from my Mobile Computer which is also a phone

> On Mar 25, 2014, at 10:16 AM, Renato Golin <renato.golin at linaro.org> wrote:
> 
> 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
> <D3184.1.patch>




More information about the llvm-commits mailing list