This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Implement __builtin_thread_pointer
ClosedPublic

Authored by zatrazz on Jul 27 2015, 12:47 PM.

Details

Summary

This path add the aarch64 lowering of __builtin_thread_pointer. It uses
the already implemented AArch64ISD::THREAD_POINTER used in TLS generation.

Diff Detail

Event Timeline

zatrazz updated this revision to Diff 30722.Jul 27 2015, 12:47 PM
zatrazz retitled this revision from to [AArch64] Implement __builtin_thread_pointer.
zatrazz updated this object.
zatrazz added a subscriber: llvm-commits.
rengolin accepted this revision.Jul 27 2015, 12:57 PM
rengolin edited edge metadata.

This looks surprisingly simple. LGTM. Thanks!

test/CodeGen/AArch64/arm64-builtins-linux.ll
1

better to use "aarch64", since "arm64" is an alias.

This revision is now accepted and ready to land.Jul 27 2015, 12:57 PM
zatrazz added inline comments.Jul 28 2015, 5:18 AM
test/CodeGen/AArch64/arm64-builtins-linux.ll
1

right, I will change that.

zatrazz closed this revision.Jul 28 2015, 6:10 AM