This is an archive of the discontinued LLVM Phabricator instance.

Support __seg_fs and __seg_gs on x86
ClosedPublic

Authored by jfb on Jul 12 2019, 4:04 PM.

Details

Summary

GCC supports named address spaces macros:

https://gcc.gnu.org/onlinedocs/gcc/Named-Address-Spaces.html

clang does as well with address spaces:

https://clang.llvm.org/docs/LanguageExtensions.html#memory-references-to-specified-segments

Add the __seg_fs and __seg_gs macros for compatibility with GCC.

rdar://problem/52944935

Event Timeline

jfb created this revision.Jul 12 2019, 4:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2019, 4:04 PM
jfb edited the summary of this revision. (Show Details)
jfb added a subscriber: erichkeane.
jfb updated this revision to Diff 209645.Jul 12 2019, 4:54 PM
  • Fix test order
This revision is now accepted and ready to land.Jul 12 2019, 11:54 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2019, 11:34 AM