search for: reax

Displaying 6 results from an estimated 6 matches for "reax".

Did you mean: read
2013 Apr 17
3
[LLVMdev] Patch to compile LLVM with MSVC 2010
...ufPtr = Buffer+21; Index: lib/Support/Host.cpp===================================================================--- lib/Support/Host.cpp (revision 179701)+++ lib/Support/Host.cpp (working copy)@@ -119,7 +119,7 @@ // there is no easy way to conditionally compile based on the assembler used. int rEAX, rEDX; __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0));-#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219+#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER > 160040219 unsigned long long rEAX = _xgetbv(_X...
2013 Apr 18
0
[LLVMdev] Patch to compile LLVM with MSVC 2010
...t.cpp > =================================================================== > --- lib/Support/Host.cpp (revision 179701) > +++ lib/Support/Host.cpp (working copy) > @@ -119,7 +119,7 @@ > // there is no easy way to conditionally compile based on the assembler > used. > int rEAX, rEDX; > __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0)); > -#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 > +#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER > 160040219 > unsigned lon...
2013 Apr 18
2
[LLVMdev] Patch to compile LLVM with MSVC 2010
...================================================ > > --- lib/Support/Host.cpp (revision 179701) > > +++ lib/Support/Host.cpp (working copy) > > @@ -119,7 +119,7 @@ > > // there is no easy way to conditionally compile based on the assembler > > used. > > int rEAX, rEDX; > > __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0)); > > -#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 > > +#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER > 160040219 >...
2013 Nov 23
0
[LLVMdev] [PATCH] Detect Haswell subarchitecture (i.e. using -march=native)
.../X86/X86Subtarget.cpp | 7 ++- 2 files changed, 96 insertions(+), 7 deletions(-) diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index 380df6b..6e9a5c9 100644 --- a/lib/Support/Host.cpp +++ b/lib/Support/Host.cpp @@ -95,6 +95,75 @@ static bool GetX86CpuIDAndInfo(unsigned value, unsigned *rEAX, unsigned *rEBX, #endif } +/// GetX86CpuIDAndInfoEx - Execute the specified cpuid with subleaf and return the +/// 4 values in the specified arguments. If we can't run cpuid on the host, +/// return true. +bool GetX86CpuIDAndInfoEx(unsigned value, unsigned subleaf, unsigned *rEAX, +...
2013 Apr 18
0
[LLVMdev] Patch to compile LLVM with MSVC 2010
...====================================================== > > --- lib/Support/Host.cpp (revision 179701) > > +++ lib/Support/Host.cpp (working copy) > > @@ -119,7 +119,7 @@ > > // there is no easy way to conditionally compile based on the assembler > > used. > > int rEAX, rEDX; > > __asm__ (".byte 0x0f, 0x01, 0xd0" : "=a" (rEAX), "=d" (rEDX) : "c" (0)); > > -#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 > > +#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER > 160040219 > &gt...
2013 Nov 23
2
[LLVMdev] [PATCH] Detect Haswell subarchitecture (i.e. using -march=native)
I agree with Tim, you need to implement a GetCpuIDAndInfoEx function in Host.cpp and pass the correct value to ecx. Also you need to verify that 7 is a valid leaf because an invalid leaf is defined to return the highest supported leaf on that processor. So if a processor supports say leaf 6 and not leaf 7, then an access leaf 7 will return the data from leaf 6 causing unrelated bits to be