This adds builtin_cpu_init which will emit a call to cpu_indicator_init in libgcc or compiler-rt.
This is needed to support builtin_cpu_supports/builtin_cpu_is in an ifunc resolver.
Paths
| Differential D36336
[X86] Add support for __builtin_cpu_init ClosedPublic Authored by craig.topper on Aug 4 2017, 12:35 PM.
Details Summary This adds builtin_cpu_init which will emit a call to cpu_indicator_init in libgcc or compiler-rt. This is needed to support builtin_cpu_supports/builtin_cpu_is in an ifunc resolver.
Diff Detail
Event TimelineComment Actions One inline comment, but go ahead and commit after fixing that up.
This revision is now accepted and ready to land.Aug 27 2017, 10:08 PM Closed by commit rL311874: [X86] Add support for __builtin_cpu_init (authored by ctopper). · Explain WhyAug 27 2017, 10:46 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 112851 cfe/trunk/include/clang/Basic/BuiltinsX86.def
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
cfe/trunk/test/CodeGen/builtin-cpu-supports.c
|