summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
Commit message (Collapse)AuthorAgeFilesLines
...
* Moving SectionMemoryManager into RuntimeDyld and adding unit tests for it.Andrew Kaylor2012-11-275-406/+175
| | | | | | | | The SectionMemoryManager now supports (and requires) applying section-specific page permissions. Clients using this memory manager must call either MCJIT::finalizeObject() or SectionMemoryManager::applyPermissions() before executing JITed code. See r168718 for changes from the previous implementation. llvm-svn: 168721
* Implementing page permission setting in MCJIT unit test SectionMemoryManager.cppAndrew Kaylor2012-11-273-63/+205
| | | | | | This commit is primarily here for the revision history. I'm about to move the SectionMemoryManager into the RuntimeDyld library, but I wanted to check the changes in here so people could see the differences in the updated implementation. llvm-svn: 168718
* Allow using MemoryBuffers with yaml::Stream directly.Sean Silva2012-11-191-0/+34
| | | | | | | | | | The rationale is to get YAML filenames in diagnostics from yaml::Stream::printError -- currently the filename is hard-coded as "YAML" because there's no buffer information available. Patch by Kim Gräsman! llvm-svn: 168341
* Add a new function to ConstantExpr - getAsInstruction. This returns its ↵James Molloy2012-11-171-0/+106
| | | | | | | | Instruction* corollary, which may be useful if a user wishes to transform a ConstantExpr so that one of its operands is no longer constant. llvm-svn: 168262
* Removing utf-8 smart quote and trailing whitespaceJoe Abbey2012-11-171-2/+2
| | | | llvm-svn: 168253
* Suppressing the 'direct base ‘{anonymous}::S1’ inaccessible in ↵Joe Abbey2012-11-171-0/+12
| | | | | | | | ‘{anonymous}::D9’ due to ambiguity' warning. llvm-svn: 168251
* Interface changes to allow RuntimeDyld memory managers to set memory ↵Andrew Kaylor2012-11-153-4/+8
| | | | | | permissions after an object has been loaded. llvm-svn: 168114
* Remove DOS line endings.Jakub Staszak2012-11-141-356/+356
| | | | llvm-svn: 167968
* do not play preprocessor tricks with 'private', use public interfaces ↵Gabor Greif2012-11-121-7/+4
| | | | | | instead; this appeases the VC++ buildbots llvm-svn: 167724
* add unit test for waymarking algorithm (Use::getUser)Gabor Greif2012-11-122-0/+58
| | | | llvm-svn: 167720
* Provide definitions for all functions.Benjamin Kramer2012-11-101-0/+11
| | | | | | | ICC refuses to compile a class in an anonymous namespace if some functions aren't defined. Fixes PR13477. llvm-svn: 167676
* Drop the limitation to IEEE floating point types from the fdiv of pow2 -> ↵Benjamin Kramer2012-11-081-0/+6
| | | | | | | | fmul transform. This is safe for x87 long doubles and ppc double doubles too. llvm-svn: 167582
* MCJIT unit test: add calls to ensure that instruction caches are properly ↵Amara Emerson2012-10-311-0/+5
| | | | | | invalidated before code execution. llvm-svn: 167146
* Port lli bug fix from r166920 to MCJIT unit test.Amara Emerson2012-10-311-3/+11
| | | | llvm-svn: 167145
* Commit access test.Amara Emerson2012-10-311-0/+1
| | | | llvm-svn: 167144
* Disable all old-JIT unit tests on PowerPC.Ulrich Weigand2012-10-312-21/+22
| | | | | | | | These tests were all failing since the old JIT doesn't work for PowerPC (any more), and there are no plans to attempt to fix it again (instead, work focuses on MCJIT). llvm-svn: 167133
* Add IRBuilderBase::getIntPtrTy.Evgeniy Stepanov2012-10-311-0/+12
| | | | llvm-svn: 167111
* Fix isEliminableCastPair to work correctly in the presence of pointersDuncan Sands2012-10-301-0/+37
| | | | | | with different sizes. llvm-svn: 167018
* Implement arithmetic on APFloat with PPCDoubleDouble semantics byUlrich Weigand2012-10-291-0/+36
| | | | | | | | | | | | treating it as if it were an IEEE floating-point type with 106-bit mantissa. This makes compile-time arithmetic on "long double" for PowerPC in clang (in particular parsing of floating point constants) work, and fixes all "long double" related failures in the test suite. llvm-svn: 166951
* Fixed bug in SmallDenseMap where it wouldn't leave enough space for an empty ↵Pete Cooper2012-10-231-0/+33
| | | | | | bucket if the number of values was exactly equal to the small capacity. This led to an infinite loop when finding a non-existent element llvm-svn: 166492
* Use an export list when building JIT unittests. <rdar://problem/12473675>Bob Wilson2012-10-181-0/+7
| | | | | | | | | When building with LTO, the internalize pass is hiding some global symbols that are necessary for the JIT unittests. It seems like that may be a bug in LTO to do that by default, but until that gets fixed, this change makes sure that we export the necessary symbols for the tests to pass. llvm-svn: 166220
* Marked this variable as 'used' so that LTO doesn't get rid of it.Bill Wendling2012-10-171-1/+1
| | | | llvm-svn: 166092
* Fix a bug in the set(I,E)/reset(I,E) methods that I recently added. The ↵Owen Anderson2012-10-161-0/+10
| | | | | | boundary condition for checking if I and E were in the same word were incorrect, and, beyond that, the mask computation was not using a wide enough constant. llvm-svn: 166015
* Add range-based set()/reset() to BitVector. These allow fast ↵Owen Anderson2012-10-151-0/+42
| | | | | | setting/resetting of ranges of bits, particularly useful when dealing with very large BitVector's. llvm-svn: 165984
* Update CMake build.Benjamin Kramer2012-10-141-0/+1
| | | | llvm-svn: 165908
* Fix a typo that made ImmutableMap::getMaxElement() useless.Benjamin Kramer2012-10-141-0/+50
| | | | | | Add a basic unit test for ImmutableMap. Found by inspection. llvm-svn: 165907
* Add powerpc-ibm-aix to Triple. Patch by Kai.Duncan Sands2012-10-121-0/+12
| | | | llvm-svn: 165792
* JITTest.cpp: Use LLVM_ATTRIBUTE_USED, rather than __attribute__ directly!NAKAMURA Takumi2012-10-121-1/+1
| | | | llvm-svn: 165790
* Mark function as 'used' so that LTO doesn't try to get rid of it.Bill Wendling2012-10-121-0/+1
| | | | llvm-svn: 165781
* Revert r165777, "Mark function as 'used' so that LTO doesn't try to get rid ↵NAKAMURA Takumi2012-10-121-1/+1
| | | | | | of it." llvm-svn: 165780
* Mark function as 'used' so that LTO doesn't try to get rid of it.Bill Wendling2012-10-121-1/+1
| | | | llvm-svn: 165777
* Casting.h: Automatically handle isa<Base>(Derived).Sean Silva2012-10-111-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally, all such cases are handled with no dynamic check. All `classof()` of the form class Foo { [...] static bool classof(const Bar *) { return true; } [...] } where Foo is an ancestor of Bar are no longer necessary. Don't write them! Note: The exact test is `is_base_of<Foo, Bar>`, which is non-strict, so that Foo is considered an ancestor of itself. This leads to the following rule of thumb for LLVM-style RTTI: The argument type of `classof()` should be a strict ancestor. For more information about implementing LLVM-style RTTI, see docs/HowToSetUpLLVMStyleRTTI.rst llvm-svn: 165765
* Move TargetData to DataLayout.Micah Villmow2012-10-082-14/+14
| | | | llvm-svn: 165403
* Some regression tests which are testing the old jit and are exercising ↵James Molloy2012-10-081-1/+14
| | | | | | | | functionality which is both known to be broken and not expected to be fixed in the old jit. To remove these from the regression test output, I've marked them XFAIL (for lit tests) and ifdef'd them out (unit tests). These modifications remove the last long-standing regression test failures from the buildbots (though updating the triple to reflect new ubuntu configuration has temporarily caused some new failures). Tested on x86-64 and ARM Linux. Patch by David Tweed! llvm-svn: 165390
* Adding MCJIT and MemoryBuffer unit testsAndrew Kaylor2012-10-0411-1/+869
| | | | | | Patch by Daniel Malea. llvm-svn: 165246
* Use unsigned long long instead of uin64_t for OS where that matters.Nick Kledzik2012-10-031-1/+1
| | | | llvm-svn: 165147
* Don't call getAsUnsignedInteger directly, it fails to compile if uint64_t is ↵Benjamin Kramer2012-10-031-1/+5
| | | | | | | | not "unsigned long long". while there add more test cases. llvm-svn: 165140
* Add getAsUnsignedInteger test case that checks that known bad values are ↵Nick Kledzik2012-10-031-0/+19
| | | | | | rejected llvm-svn: 165136
* Removing dependency on third party library for Intel JIT event support.Andrew Kaylor2012-09-282-3/+4
| | | | | | Patch committed on behalf of Kirill Uhanov llvm-svn: 164831
* Fix of hang during Intel JIT profilingAndrew Kaylor2012-09-261-1/+1
| | | | | | Committed on behalf of Kirill Uhanov llvm-svn: 164736
* Remove unneeded and invalid SetInsertPoint calls from unittest.Benjamin Kramer2012-09-261-8/+0
| | | | | | BB->end() returns a sentinel value that is not a legal insert point. llvm-svn: 164699
* APFloat::roundToIntegral: Special values don't keep the exponent value up to ↵Benjamin Kramer2012-09-261-0/+17
| | | | | | | | date, don't rely on it. Add a couple of unit tests for special floats. Fixes 13929, found by MemorySanitizer. llvm-svn: 164698
* Expansions for u/srem, using the udiv expansion. More unit tests for udiv ↵Michael Ilseman2012-09-261-0/+96
| | | | | | | | and u/srem. Fixed issue with Release build. llvm-svn: 164654
* Revert r164614 to appease the buildbots.Chad Rosier2012-09-251-97/+0
| | | | llvm-svn: 164627
* Expansions for u/srem, using the udiv expansion. More unit tests for udiv ↵Michael Ilseman2012-09-251-0/+97
| | | | | | and u/srem. llvm-svn: 164614
* Unit tests for IntegerDivision. Currently, just a basic sanity check to ↵Michael Ilseman2012-09-252-0/+55
| | | | | | ensure that the code was generated properly. Future work would be finding some way to test the actual result that would be computed. llvm-svn: 164582
* This patch adds memory support functions which will later be used to ↵Andrew Kaylor2012-09-192-0/+357
| | | | | | implement section-specific protection handling in MCJIT. llvm-svn: 164249
* Fix includes of llvm files that used angle brackets.Craig Topper2012-09-152-9/+9
| | | | llvm-svn: 163979
* cmake: Fix file path.Daniel Dunbar2012-09-141-1/+1
| | | | llvm-svn: 163950
* formatted_raw_ostream: Fix a serious bug in tell().Daniel Dunbar2012-09-142-1/+35
| | | | | | | | | - The current_pos function is supposed to return all the written bytes, not the current position of the underlying stream. - This caused tell() to be broken whenever the underlying stream had buffered content. llvm-svn: 163948
OpenPOWER on IntegriCloud