[lldb-dev] [PATCH] Detect Haswell subarchitecture (i.e. using -march=native)

Adam Strzelecki ono at java.pl
Thu Sep 12 08:13:27 PDT 2013


Excuse me, wrong mailing list :) Should have drunk some coffee before posting.
-- 
Adam Strzelecki | nanoant.com | twitter.com/nanoant

Wiadomość napisana przez Adam Strzelecki <ono at java.pl> w dniu 12 wrz 2013, o godz. 11:30:

> Hello,
> 
> This is my first patch on this list, however I've already submitted several trough bug tracking system. Since it probably needs some review I am submitting it here.
> 
> The main intent of this patch is to detect "core-avx2" platform on Haswell i7 CPUs when running -march=native. Currently it detects it as generic x86_64.
> 
> lib/Support/Host.cpp:
> * Haswell is detected for CPUID Family 6 Model 60
> * Similar to Ivy and Sandy Bridge we check for AVX2 since some Haswell Pentiums are SSE4.x only
> * I have marked HasAVX2 as volatile, since otherwise it gets magically zeroed when compiling with clang with clang
> 
> lib/Target/X86/X86Subtarget.cpp:
> * Also enabling X86::FeatureFastUAMem for Haswell
> 
> Regards,
> -- 
> Adam Strzelecki | nanoant.com | twitter.com/nanoant
> <llvm-detect-haswell.patch>





More information about the lldb-dev mailing list