summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* [Win] Put ChangeStdinToBinary ChangeStdoutToBinary ChangeStderrToBinary in sys.Rafael Espindola2013-06-121-3/+3
| | | | llvm-svn: 183868
* s/Void/void.Rafael Espindola2013-06-121-1/+1
| | | | llvm-svn: 183866
* Attempt at fixing the windows build.Rafael Espindola2013-06-121-34/+35
| | | | llvm-svn: 183865
* Remove the program class.Rafael Espindola2013-06-126-46/+40
| | | | | | | It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just those two functions and make Execute and Wait implementations details. llvm-svn: 183864
* Don't use PathV1 in CommandLine.cpp.Rafael Espindola2013-06-121-22/+10
| | | | | | No functionality change. llvm-svn: 183842
* Inline Path::isBitcodeFile into only use and remove it.Rafael Espindola2013-06-121-8/+0
| | | | llvm-svn: 183840
* Remove Path::getMagicNumber.Rafael Espindola2013-06-122-39/+0
| | | | llvm-svn: 183839
* Remove Path::hasMagicNumber.Rafael Espindola2013-06-121-7/+0
| | | | llvm-svn: 183838
* Remove Path::isAbsolute.Rafael Espindola2013-06-122-26/+0
| | | | llvm-svn: 183836
* Remove Path::isAbsolute().Rafael Espindola2013-06-122-22/+0
| | | | llvm-svn: 183835
* Remove Path::getSuffix.Rafael Espindola2013-06-122-33/+0
| | | | llvm-svn: 183833
* Remove sys::CopyFile.Rafael Espindola2013-06-122-58/+0
| | | | llvm-svn: 183831
* Fix 'gcc -flto' builds for unittest binaries (undefined reference toPatrik Hagglund2013-06-121-1/+0
| | | | | | | | | `typeinfo for llvm::cl::GenericOptionValue'). Remove an "anchor" method for an abstract class. (This does not increase the number of vtables.) llvm-svn: 183830
* Remove the old file memory mapping functions.Rafael Espindola2013-06-123-30/+1
| | | | llvm-svn: 183828
* Remove Path::createFileOnDisk.Rafael Espindola2013-06-122-22/+0
| | | | llvm-svn: 183827
* Remove Path::makeExecutableOnDisk.Rafael Espindola2013-06-122-11/+0
| | | | llvm-svn: 183826
* Move PathV2.h to Path.hRafael Espindola2013-06-111-1/+1
| | | | | | | Most clients have already been moved from Path V1 to V2. The ones using V1 now include PathV1.h explicitly. llvm-svn: 183801
* Make host ARM CPU feature detection independent of the vendorTobias Grosser2013-06-111-30/+20
| | | | | | | | | | | | For ARM on linux we use /proc/cpuinfo to detect the host CPU's features. Linux derives these values without ever looking at the vendor of the specific CPU implementation. Hence, it adds little value, if we parse the output of /proc/cpuinfo only for certain vendors. This patch enables us to derive the correct feature flags e.g. for Qualcomm CPUs. llvm-svn: 183790
* Include PathV1.h in files that use it.Rafael Espindola2013-06-112-0/+2
| | | | | | This is preparation for replacing Path.h with PathV2.h. llvm-svn: 183782
* Remove Path::getDirname.Rafael Espindola2013-06-113-49/+0
| | | | llvm-svn: 183780
* Remove Path::getBasename.Rafael Espindola2013-06-112-32/+0
| | | | llvm-svn: 183779
* Remove Path::getLast.Rafael Espindola2013-06-112-39/+0
| | | | llvm-svn: 183778
* Remove GetDLLSuffix.Rafael Espindola2013-06-111-4/+0
| | | | llvm-svn: 183777
* Remove GetRootDirectory.Rafael Espindola2013-06-112-15/+0
| | | | llvm-svn: 183775
* Remove GetUserHomeDirectory.Rafael Espindola2013-06-112-23/+0
| | | | llvm-svn: 183773
* Remove GetSystemLibraryPaths.Rafael Espindola2013-06-113-64/+0
| | | | llvm-svn: 183770
* Remove Path::GetBitcodeLibraryPaths.Rafael Espindola2013-06-112-34/+0
| | | | llvm-svn: 183765
* Remove unused FindLibrary function.Rafael Espindola2013-06-111-17/+0
| | | | llvm-svn: 183764
* Remove sys::identifyFileType.Rafael Espindola2013-06-111-117/+0
| | | | llvm-svn: 183763
* Port r183666 to identify_magic.Rafael Espindola2013-06-111-2/+3
| | | | | | | | | | | | | It will be tested in the next commit which moves another user to identify_magic. Original message: Fix an out of bounds array access. We were looking at Magic[5] without checking Length. Since this path would not return unless Length >= 18 anyway, just move the >= 18 check up. llvm-svn: 183753
* Fix variable name.Rafael Espindola2013-06-111-29/+29
| | | | llvm-svn: 183752
* Add a missing 'e'.Rafael Espindola2013-06-101-1/+1
| | | | llvm-svn: 183692
* Pass a StringRef to sys::identifyFileType.Rafael Espindola2013-06-101-6/+6
| | | | llvm-svn: 183669
* Fix an out of bounds array access.Rafael Espindola2013-06-101-2/+3
| | | | | | | We were looking at Magic[5] without checking Length. Since this path would not return unless Length >= 18 anyway, just move the >= 18 check up. llvm-svn: 183666
* Update for current naming conventions.Rafael Espindola2013-06-101-30/+31
| | | | | | I will change identifyFileType to use a StringRef in the next patch. llvm-svn: 183664
* sys::process::get_id() now returns the process ID instead of a process ↵Aaron Ballman2013-06-081-1/+1
| | | | | | handle on Windows. Patch thanks to Kim Gräsman! llvm-svn: 183621
* Introduce needsCleanup() for APFloat and APInt.Manuel Klimek2013-06-031-1/+1
| | | | | | | | | This is needed in clang so one can check if the object needs the destructor called after its memory was freed. This is useful when creating many APInt/APFloat objects with placement new, where the overhead of tracking the pointers for cleanup is significant. llvm-svn: 183100
* APInt: Simplify code. No functionality change.Benjamin Kramer2013-06-011-36/+2
| | | | llvm-svn: 183073
* APFloat: Use isDenormal instead of hand-rolled code to check for denormals.Benjamin Kramer2013-06-011-1/+1
| | | | llvm-svn: 183072
* Add support for adding the contents of a StringRef to the MD5 hash.Eric Christopher2013-05-311-0/+8
| | | | llvm-svn: 183054
* Convert more unsigned char -> uint8_t.Eric Christopher2013-05-311-1/+1
| | | | llvm-svn: 183053
* Fix comment.Eric Christopher2013-05-311-1/+1
| | | | llvm-svn: 183052
* Move "unsigned char" -> "uint8_t".Eric Christopher2013-05-311-8/+8
| | | | llvm-svn: 183051
* Implement IEEE-754R 2008 nextUp/nextDown functions in the guise of the ↵Michael Gottesman2013-05-301-20/+228
| | | | | | | | function APFloat::next(bool nextDown). rdar://13852078 llvm-svn: 182945
* [APInt] Implement tcDecrement as a counterpart to tcIncrement. This is for ↵Michael Gottesman2013-05-281-0/+14
| | | | | | | | use in APFloat IEEE-754R 2008 nextUp/nextDown function. rdar://13852078 llvm-svn: 182801
* ArrayRef-ize MD5 and clean up a few variable names.Eric Christopher2013-05-241-20/+32
| | | | | | | Add a stringize method to make dumping a bit easier, and add a testcase exercising a few different paths. llvm-svn: 182692
* Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros.Michael J. Spencer2013-05-241-5/+5
| | | | llvm-svn: 182680
* Remove the Copied parameter from MemoryObject::readBytes.Benjamin Kramer2013-05-243-21/+7
| | | | | | | | | | There was exactly one caller using this API right, the others were relying on specific behavior of the default implementation. Since it's too hard to use it right just remove it and standardize on the default behavior. Defines away PR16132. llvm-svn: 182636
* MC: Disassembled CFG reconstruction.Ahmed Bougacha2013-05-242-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch builds on some existing code to do CFG reconstruction from a disassembled binary: - MCModule represents the binary, and has a list of MCAtoms. - MCAtom represents either disassembled instructions (MCTextAtom), or contiguous data (MCDataAtom), and covers a specific range of addresses. - MCBasicBlock and MCFunction form the reconstructed CFG. An MCBB is backed by an MCTextAtom, and has the usual successors/predecessors. - MCObjectDisassembler creates a module from an ObjectFile using a disassembler. It first builds an atom for each section. It can also construct the CFG, and this splits the text atoms into basic blocks. MCModule and MCAtom were only sketched out; MCFunction and MCBB were implemented under the experimental "-cfg" llvm-objdump -macho option. This cleans them up for further use; llvm-objdump -d -cfg now generates graphviz files for each function found in the binary. In the future, MCObjectDisassembler may be the right place to do "intelligent" disassembly: for example, handling constant islands is just a matter of splitting the atom, using information that may be available in the ObjectFile. Also, better initial atom formation than just using sections is possible using symbols (and things like Mach-O's function_starts load command). This brings two minor regressions in llvm-objdump -macho -cfg: - The printing of a relocation's referenced symbol. - An annotation on loop BBs, i.e., which are their own successor. Relocation printing is replaced by the MCSymbolizer; the basic CFG annotation will be superseded by more related functionality. llvm-svn: 182628
* Add cmake bits for md5.Eric Christopher2013-05-211-0/+1
| | | | llvm-svn: 182349
OpenPOWER on IntegriCloud