[PATCH] D22254: [ARM, AArch64] Adds builtins to get current SP and PC

Mandeep Singh Grang via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 12 11:41:59 PDT 2016

mgrang added a comment.

Hi Tim/Renato,

On a similar note, I have a patch which adds the breakpoint intrinsic (for ARM and Thumb):

Could you please let me know if this is something which the community would like to support. I can then push my patch.

Here are two other intrinsics which I wanted to implement:
enable_irq: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0472m/chr1359124996163.html
disable_irq: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0472m/chr1359125001077.html

The use case for these intrinsics is a customer who makes calls to __builtin_arm_breakpoint (and others) in their code base. Currently they compile with ARMCC, but LLVM does not have these intrinsics. So porting the code to build with LLVM becomes a hassle.
To facilitate customers to switch to LLVM we wanted to implement these intrinsics.



More information about the cfe-commits mailing list