This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Add support for llvm.thread.pointer intrinsic
ClosedPublic

Authored by koriakin on Apr 19 2016, 5:28 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

koriakin retitled this revision from to [PowerPC] Add support for llvm.thread.pointer intrinsic.
koriakin updated this object.
koriakin added reviewers: hfinkel, kbarton.
koriakin set the repository for this revision to rL LLVM.
koriakin added a subscriber: llvm-commits.
kbarton accepted this revision.Apr 25 2016, 12:48 PM
kbarton edited edge metadata.

LGTM.
Could you please add a short comment what this is being used for?

This revision is now accepted and ready to land.Apr 25 2016, 12:48 PM

LGTM.
Could you please add a short comment what this is being used for?

Alright, I'll add:

// Reads the thread pointer register, used for __builtin_thread_pointer.

Before the IntrinsicID check.

I don't have any particular use case for this builtin in mind on PowerPC - I added the SystemZ version for use in sanitizers, and it's already supported by ARM/AArch64, so I'm submitting versions for other arches for parity.

This revision was automatically updated to reflect the committed changes.