[PATCH] D19054: [SystemZ] Support __builtin_thread_pointer.

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 06:04:42 PDT 2016


uweigand added a comment.

In http://reviews.llvm.org/D19054#399661, @koriakin wrote:

> Yes, I'm preparing a clang patch as well.


Very good, thanks.

> As for making this target-independent: sounds like a good idea (I have a similiar patch for ppc in queue), but aarch64 already has it as target-specific - removing it would be a backwards compatibility break, right?


Well, we'd probably have to continue to accept the aarch64 LLVM IR intrinsic in the back-end to avoid breaking compatibility.  But that would still allow for adding a new target-independent LLVM IR intrinsic, and using that in clang common code to implement `__builtin_thread_pointer` for all platforms ...


Repository:
  rL LLVM

http://reviews.llvm.org/D19054





More information about the llvm-commits mailing list