This is an archive of the discontinued LLVM Phabricator instance.

PR47099: Split <intrin0.h> out of <intrin.h>.
Needs ReviewPublic

Authored by rsmith on Aug 10 2020, 5:50 PM.

Details

Reviewers
hans
BillyONeal
Summary

This aims to be compatible with Visual C++'s <intrin0.h>, but not
exactly match it. The contents of <intrin0.h> are a subset of <intrin.h>
that provide the parts that the STL needs without pulling in all of
<immintrin.h>. We don't want to hardcode exactly which things are in
<intrin0.h>, as that changes over time depending on the needs of the
STL, so instead include all the MS-specific functions, and none of the
<immintrin.h> functions except for the ones that we know the MS STL
needs -- specifically, _tzcnt_u*.

Diff Detail

Event Timeline

rsmith created this revision.Aug 10 2020, 5:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2020, 5:50 PM
rsmith requested review of this revision.Aug 10 2020, 5:50 PM