summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/MathExtrasTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* HHVM calling conventions.Maksim Panchenko2015-09-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | HHVM calling convention, hhvmcc, is used by HHVM JIT for functions in translated cache. We currently support LLVM back end to generate code for X86-64 and may support other architectures in the future. In HHVM calling convention any GP register could be used to pass and return values, with the exception of R12 which is reserved for thread-local area and is callee-saved. Other than R12, we always pass RBX and RBP as args, which are our virtual machine's stack pointer and frame pointer respectively. When we enter translation cache via hhvmcc function, we expect the stack to be aligned at 16 bytes, i.e. skewed by 8 bytes as opposed to standard ABI alignment. This affects stack object alignment and stack adjustments for function calls. One extra calling convention, hhvm_ccc, is used to call C++ helpers from HHVM's translation cache. It is almost identical to standard C calling convention with an exception of first argument which is passed in RBP (before we use RDI, RSI, etc.) Differential Revision: http://reviews.llvm.org/D12681 llvm-svn: 248832
* Try to fix the MSVC build.Benjamin Kramer2015-02-121-1/+1
| | | | | | | 0xFFFFFFFFFFFFFFFFLL doesn't fit in a long long so it should have type 'unsigned long long'. MSVC thinks it's a (signed) __int64. llvm-svn: 228950
* MathExtras: Bring Count(Trailing|Leading)Ones and CountPopulation in line ↵Benjamin Kramer2015-02-121-7/+4
| | | | | | | | with countTrailingZeros Update all callers. llvm-svn: 228930
* [Support] Remove Count{Leading,Trailing}Zeros_{32,64}.Michael J. Spencer2013-05-241-16/+12
| | | | llvm-svn: 182690
* [Support][MathExtras] Fix literal type issues.Michael J. Spencer2013-05-241-36/+36
| | | | llvm-svn: 182679
* [Support] Add type generic bit utilities to MathExtras.hMichael J. Spencer2013-05-241-0/+91
| | | | llvm-svn: 182667
* Fixes warnings emitted by Visual Studio 2010 compiler.Oscar Fuentes2011-03-011-1/+1
| | | | | | Patch by Erik Olofsson! llvm-svn: 126796
* Fixed header comment.Misha Brukman2009-08-201-1/+1
| | | | llvm-svn: 79536
* Make the constants fit.Bill Wendling2009-04-011-5/+5
| | | | llvm-svn: 68258
* Added tests for math utility functions; fixed another test's header comment.Misha Brukman2009-04-011-0/+104
llvm-svn: 68249
OpenPOWER on IntegriCloud