summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* unittests/SupportTests: Fix test. pop modifies the current entry, thus theMichael J. Spencer2011-12-091-5/+2
| | | | | | dontlookhere check must be after it. llvm-svn: 146217
* unittests/SupportTests: Add some outs()'s to debug the issues on some bots.Michael J. Spencer2011-12-091-0/+3
| | | | | | | I have run these tests under many configurations on the exact same OS as the failures, and I can't reproduce them :(. llvm-svn: 146214
* Support/FileSystem: Implement recursive_directory_iterator and makeMichael J. Spencer2011-12-081-0/+51
| | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200
* Fix Windows build, don't try to #include <pthread.h> when we know it's notNick Lewycky2011-11-141-0/+5
| | | | | | available. llvm-svn: 144574
* Add support for tsan annotations (thread sanitizer, a valgrind-based tool).Nick Lewycky2011-11-141-0/+39
| | | | | | | | | | | | These annotations are disabled entirely when either ENABLE_THREADS is off, or building a release build. When enabled, they add calls to functions with no statements to ManagedStatic's getters. Use these annotations to inform tsan that the race used inside ManagedStatic initialization is actually benign. Thanks to Kostya Serebryany for helping write this patch! llvm-svn: 144567
* Implement comparison operators for BranchProbability in a way that can't ↵Benjamin Kramer2011-10-241-0/+9
| | | | | | | | overflow INT64_MAX. Add a test case for the edge case that triggers this. Thanks to Chandler for bringing this to my attention. llvm-svn: 142794
* Add compare operators to BranchProbability and use it to determine if an ↵Benjamin Kramer2011-10-231-0/+20
| | | | | | edge is hot. llvm-svn: 142751
* NULL cannot be portably used as the last argument to a function with ↵Eli Friedman2011-09-281-3/+3
| | | | | | __attribute((sentinel)), even though it usually works. Use (void*)0 instead. PR11002. llvm-svn: 140720
* unittests/Support/DataExtractorTest.cpp: Specify ULL explicitly to a few ↵NAKAMURA Takumi2011-09-131-3/+3
| | | | | | | | constants. It seems i686-cygwin-gcc-4.3 does not accept 64-bit constant without LL. llvm-svn: 139664
* Add the DataExtractor utility class.Benjamin Kramer2011-09-131-0/+111
| | | | | | | | | | It is an endian-aware helper that can read data from a StringRef. It will come in handy for DWARF parsing. This class is inspired by LLDB's DataExtractor, but is stripped down to the bare minimum needed for DWARF. Comes with unit tests! llvm-svn: 139626
* Add test cases for BlockFrequency.Jakub Staszak2011-07-271-0/+56
| | | | llvm-svn: 136244
* land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner2011-07-181-4/+4
| | | | llvm-svn: 135375
* Second attempt at de-constifying LLVM Types in FunctionType::get(),Jay Foad2011-07-121-3/+3
| | | | | | StructType::get() and TargetData::getIntPtrType(). llvm-svn: 134982
* Revert r134893 and r134888 (and related patches in other trees). It was causingBill Wendling2011-07-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | an assert on Darwin llvm-gcc builds. Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.llvm-gcc-i386-darwin9-RA/llvm.src/lib/VMCore/Instructions.cpp, li\ ne 2067. etc. http://smooshlab.apple.com:8013/builders/llvm-gcc-i386-darwin9-RA/builds/2354 --- Reverse-merging r134893 into '.': U include/llvm/Target/TargetData.h U include/llvm/DerivedTypes.h U tools/bugpoint/ExtractFunction.cpp U unittests/Support/TypeBuilderTest.cpp U lib/Target/ARM/ARMGlobalMerge.cpp U lib/Target/TargetData.cpp U lib/VMCore/Constants.cpp U lib/VMCore/Type.cpp U lib/VMCore/Core.cpp U lib/Transforms/Utils/CodeExtractor.cpp U lib/Transforms/Instrumentation/ProfilingUtils.cpp U lib/Transforms/IPO/DeadArgumentElimination.cpp U lib/CodeGen/SjLjEHPrepare.cpp --- Reverse-merging r134888 into '.': G include/llvm/DerivedTypes.h U include/llvm/Support/TypeBuilder.h U include/llvm/Intrinsics.h U unittests/Analysis/ScalarEvolutionTest.cpp U unittests/ExecutionEngine/JIT/JITTest.cpp U unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp U unittests/VMCore/PassManagerTest.cpp G unittests/Support/TypeBuilderTest.cpp U lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp U lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp U lib/VMCore/IRBuilder.cpp G lib/VMCore/Type.cpp U lib/VMCore/Function.cpp G lib/VMCore/Core.cpp U lib/VMCore/Module.cpp U lib/AsmParser/LLParser.cpp U lib/Transforms/Utils/CloneFunction.cpp G lib/Transforms/Utils/CodeExtractor.cpp U lib/Transforms/Utils/InlineFunction.cpp U lib/Transforms/Instrumentation/GCOVProfiling.cpp U lib/Transforms/Scalar/ObjCARC.cpp U lib/Transforms/Scalar/SimplifyLibCalls.cpp U lib/Transforms/Scalar/MemCpyOptimizer.cpp G lib/Transforms/IPO/DeadArgumentElimination.cpp U lib/Transforms/IPO/ArgumentPromotion.cpp U lib/Transforms/InstCombine/InstCombineCompares.cpp U lib/Transforms/InstCombine/InstCombineAndOrXor.cpp U lib/Transforms/InstCombine/InstCombineCalls.cpp U lib/CodeGen/DwarfEHPrepare.cpp U lib/CodeGen/IntrinsicLowering.cpp U lib/Bitcode/Reader/BitcodeReader.cpp llvm-svn: 134949
* De-constify Types in StructType::get() and TargetData::getIntPtrType().Jay Foad2011-07-111-2/+2
| | | | llvm-svn: 134893
* De-constify Types in FunctionType::get().Jay Foad2011-07-111-1/+1
| | | | llvm-svn: 134888
* Fix the implementation of ConstantRange::sub(ConstantRange). Patch by Xi Wang!Nick Lewycky2011-06-221-0/+2
| | | | llvm-svn: 133648
* fix the varargs version of StructType::get to not require an LLVMContext, ↵Chris Lattner2011-06-181-3/+3
| | | | | | | | making usage much cleaner. llvm-svn: 133364
* add some #includes that will soon be needed.Chris Lattner2011-06-161-0/+1
| | | | llvm-svn: 133195
* Add CreateLifetimeStart and CreateLifetimeEnd to the IRBuilder, with plans toNick Lewycky2011-05-211-0/+70
| | | | | | use these soon. llvm-svn: 131812
* Fixes warnings emitted by Visual Studio 2010 compiler.Oscar Fuentes2011-03-011-1/+1
| | | | | | Patch by Erik Olofsson! llvm-svn: 126796
* Adds llvm::sys::path::is_separator() to test whether a char is a path separatorZhanyong Wan2011-02-111-0/+13
| | | | | | on the host OS. Reviewed by dgregor. llvm-svn: 125406
* Unittests/Support/Path: Tweak test.Michael J. Spencer2011-01-151-1/+1
| | | | llvm-svn: 123546
* UnitTests/Path: Add magical tests. This will also test identify_magic.Michael J. Spencer2011-01-061-0/+23
| | | | llvm-svn: 122948
* UnitTests/Path: More ASSERT_NO_ERROR cleanup.Michael J. Spencer2011-01-061-12/+11
| | | | llvm-svn: 122947
* UnitTests/Path: Fix typo, add error number, and enable the directory cleanup ↵Michael J. Spencer2011-01-051-7/+12
| | | | | | code. llvm-svn: 122885
* UnitTests/PathV2: Setup a test fixture to make tracking created file systemMichael J. Spencer2011-01-051-0/+24
| | | | | | entities easier. llvm-svn: 122880
* Support/PathV2: Implement directory iteration on POSIX.Michael J. Spencer2011-01-051-3/+0
| | | | llvm-svn: 122879
* UnitTests/Path: Produce useful diagnostics on error.Michael J. Spencer2011-01-041-17/+25
| | | | llvm-svn: 122812
* Change all self assignments X=X to (void)X, so that we can turn on aJeffrey Yasskin2010-12-231-2/+2
| | | | | | | new gcc warning that complains on self-assignments and self-initializations. llvm-svn: 122458
* Support/PathV2: Change most functions in the path namespace to return their workMichael J. Spencer2010-12-071-20/+18
| | | | | | via their return value instead of an out parameter. llvm-svn: 121149
* PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad2010-12-071-10/+10
| | | | | | | | zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method trunc(), to be const and to return a new value instead of modifying the object in place. llvm-svn: 121120
* Support/PathV2: Remove the error_code return type from all functions in the pathMichael J. Spencer2010-12-071-21/+21
| | | | | | | namespace. None of them return anything except for success anyway. These will be converted to returning their result soon. llvm-svn: 121109
* Support/PathV2: Move make_absolute from path to fs.Michael J. Spencer2010-12-071-1/+1
| | | | llvm-svn: 121108
* Support/FileSystem: Add directory_iterator implementation.Michael J. Spencer2010-12-061-0/+13
| | | | llvm-svn: 120989
* Unittests/Support/PathV2: Add FileSystem tests.Michael J. Spencer2010-12-041-0/+35
| | | | llvm-svn: 120888
* Support/FileSystem: Add remove implementation.Michael J. Spencer2010-12-031-1/+2
| | | | llvm-svn: 120817
* unittests/Support/PathV2: remove(3) requires a terminated string.Benjamin Kramer2010-12-031-3/+2
| | | | llvm-svn: 120803
* Unittests/Support/PathV2: Cleanup and remove output.Michael J. Spencer2010-12-031-44/+27
| | | | llvm-svn: 120785
* unittests/Support/PathV2: Comment out test because some systems are saying thatMichael J. Spencer2010-12-031-1/+2
| | | | | | a file exists when it shouldn't. llvm-svn: 120784
* Support/FileSystem: Add unique_file and exists implementations.Michael J. Spencer2010-12-031-0/+18
| | | | llvm-svn: 120776
* Make valgrind happy.Michael J. Spencer2010-12-011-0/+2
| | | | llvm-svn: 120616
* unittests/Support/PathV2: Fix -pedantic warning.Michael J. Spencer2010-12-011-2/+2
| | | | llvm-svn: 120590
* Support/PathV2: Add is_{absolute,relative} implementation.Michael J. Spencer2010-12-011-0/+2
| | | | llvm-svn: 120560
* Support/PathV2: Add ↵Michael J. Spencer2010-12-011-0/+8
| | | | | | has_{root_path,root_name,root_directory,parent_path,filename,stem,extension} implementation. llvm-svn: 120559
* unittests/Support/PathV2: Make tests much shorter; although harder to ↵Michael J. Spencer2010-12-011-49/+35
| | | | | | | | | understand. I'm going to replace this all anyway with a proper table and separated tests when done. llvm-svn: 120558
* Support/PathV2: Add extension implementation.Michael J. Spencer2010-12-011-2/+12
| | | | llvm-svn: 120550
* Support/PathV2: Add stem implementation.Michael J. Spencer2010-12-011-0/+7
| | | | llvm-svn: 120547
* Support/PathV2: Add filename implementation.Michael J. Spencer2010-12-011-0/+3
| | | | llvm-svn: 120546
* Support/PathV2: Add native implementation.Michael J. Spencer2010-12-011-0/+3
| | | | llvm-svn: 120539
OpenPOWER on IntegriCloud