[PATCH] D19569: [Mips] Add support for llvm.thread.pointer intrinsic.

Simon Dardis via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 08:43:27 PDT 2016


sdardis accepted this revision.
sdardis added a reviewer: sdardis.
sdardis added a comment.
This revision is now accepted and ready to land.

LGTM with nit addressed.

Thanks.


================
Comment at: test/CodeGen/Mips/thread-pointer.ll:9
@@ +8,3 @@
+define i8* @thread_pointer() {
+; CHECK: rdhwr
+  %1 = tail call i8* @llvm.thread.pointer()
----------------
Nit: can you expand this to 'rdhwr $3, $29'? TLS for MIPS by convention loads the thread pointer into $3.


Repository:
  rL LLVM

http://reviews.llvm.org/D19569





More information about the llvm-commits mailing list