This is an archive of the discontinued LLVM Phabricator instance.

Add noread_thread_id attribute to intrinsics
AbandonedPublic

Authored by ChuanqiXu on Aug 22 2022, 10:50 PM.

Details

Summary

Successor of D132352

This revision adds noread_thread_id attribute to intrinsics, including:
(1) DefaultAttributeIntrinsics
(2) memset, memcpy, ...
(3) debugging intrinsics

Also the patch removes llvm.threadlocal.address(ptr) and llvm.thread.pointer() from DefaultAttributeIntrinsics since they may access the thread identification.

I am not 100% sure I added noread_thread_id attribute for all the proper intrinsics. But I think it is not bad to add them in an iterative fashion.

Diff Detail