- Feb 28, 2013
-
-
Argyrios Kyrtzidis authored
[PathV2] In llvm::sys::fs::unique_file, make sure it doesn't fall into an infinite loop by constantly trying to create the parent path. This can happen if the path is a relative filename and the current directory was removed. Thanks to Daniel D. for the hint in fixing it. llvm-svn: 176226
-
- Feb 26, 2013
-
-
Roman Divacky authored
llvm-svn: 176130
-
- Feb 21, 2013
-
-
Eli Bendersky authored
to lib/DebugInfo, with dumping in llvm-dwarfdump. This patch adds initial ability to parse and dump CFA instructions contained in entries. To keep it manageable, the patch omits some more advanced capabilities (accounted in TODOs): * Parsing of instructions with BLOCK arguments (expression lists) * Dumping of actual instruction arguments (currently only names are dumped). This is quite tricky since the dumper has to effectively "interpret" the instructions. llvm-svn: 175820
-
David Blaikie authored
This implementation of NoneType/None does have some holes but I haven't found one that doesn't - open to improvement. llvm-svn: 175696
-
Pedro Artigas authored
missed before but probably what was intended. llvm-svn: 175687
-
- Feb 20, 2013
-
-
Erik Verbruggen authored
llvm-svn: 175682
-
Dan Gohman authored
llvm-svn: 175651
-
Krzysztof Parzyszek authored
llvm-svn: 175650
-
Dan Gohman authored
llvm-svn: 175648
-
Krzysztof Parzyszek authored
loads. On FreeBSD, add PROT_READ page protection flag before flushing cache. llvm-svn: 175646
-
Jakub Staszak authored
require call cpp file anyway, so we wouldn't gain anything by keeping them inline. llvm-svn: 175579
-
- Feb 19, 2013
-
-
Dan Gohman authored
which uses it. This is not ideal, but it ought to at least restore the behavior to what it was before. llvm-svn: 175571
-
Dan Gohman authored
character devices. llvm-svn: 175549
-
Dan Gohman authored
/dev/stdin as an input when stdin is connected to a tty, for example. No test, because it's difficult to write a reasonably portable test for this. /dev/stdin isn't a character device when stdin is redirected from a file or connected to a pipe. llvm-svn: 175542
-
Alexey Samsonov authored
Fix initialization-order bug in llvm::Support::TimeValue. TimeValue::now() is explicitly called during module initialization of lib/Support/Process.cpp. It reads the field of global object PosixZeroTime, which is not guaranteed to be initialized at this point. Found by AddressSanitizer with -fsanitize=init-order option. llvm-svn: 175509
-
- Feb 15, 2013
-
-
Benjamin Kramer authored
llvm-svn: 175264
-
- Feb 14, 2013
-
-
Evgeniy Stepanov authored
llvm-svn: 175156
-
- Feb 12, 2013
-
-
Guy Benyei authored
Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration. llvm-svn: 175006
-
- Feb 04, 2013
-
-
Evgeniy Stepanov authored
This change lets us bootstrap LLVM/Clang under ASan and MSan. It contains fixes for 2 issues: - X86JIT reads return address from stack, which MSan does not know is initialized. - bugpoint tests run binaries with RLIMIT_AS. This does not work with certain Sanitizers. We are no longer including config.h in Compiler.h with this change. llvm-svn: 174306
-
- Jan 31, 2013
-
-
Tim Northover authored
This patch adds support for AArch64 (ARM's 64-bit architecture) to LLVM in the "experimental" category. Currently, it won't be built unless requested explicitly. This initial commit should have support for: + Assembly of all scalar (i.e. non-NEON, non-Crypto) instructions (except the late addition CRC instructions). + CodeGen features required for C++03 and C99. + Compilation for the "small" memory model: code+static data < 4GB. + Absolute and position-independent code. + GNU-style (i.e. "__thread") TLS. + Debugging information. The principal omission, currently, is performance tuning. This patch excludes the NEON support also reviewed due to an outbreak of batshit insanity in our legal department. That will be committed soon bringing the changes to precisely what has been approved. Further reviews would be gratefully received. llvm-svn: 174054
-
Evgeniy Stepanov authored
This change adds MemorySanitizer annotations to BumpPtrAllocator to improve report quality. llvm-svn: 174051
-
- Jan 30, 2013
-
-
Dmitri Gribenko authored
This is required to use them in TableGen. llvm-svn: 173923
-
- Jan 28, 2013
-
-
Edwin Vane authored
Remove the use of the 't' length modifier to avoid a gcc warning. Based on usage, 32 bits of precision is good enough for printing a stack offset for a stack trace. 't' length modifier isn't in C++03 but it *is* in C++11. Added a FIXME to reintroduce once LLVM makes the switch to C++11. Reviewer: gribozavr llvm-svn: 173711
-
- Jan 25, 2013
-
-
Benjamin Kramer authored
Fixes PR15054. llvm-svn: 173459
-
Andrew Trick authored
llvm-svn: 173431
-
- Jan 22, 2013
-
-
Eli Bendersky authored
Add the x32 environment kind to the triple, and separate the concept of pointer size and callee save stack slot size, since they're not equal on x32. llvm-svn: 173175
-
Tim Northover authored
Previously we tried to infer it from the bit width size, with an added IsIEEE argument for the PPC/IEEE 128-bit case, which had a default value. This default value allowed bugs to creep in, where it was inappropriate. llvm-svn: 173138
-
- Jan 18, 2013
-
-
Jordan Rose authored
This is duplicated in a couple places in the codebase. Adopt this in APFloat. llvm-svn: 172851
-
- Jan 16, 2013
-
-
Peter Collingbourne authored
In r143502, we renamed getHostTriple() to getDefaultTargetTriple() as part of work to allow the user to supply a different default target triple at configure time. This change also affected the JIT. However, it is inappropriate to use the default target triple in the JIT in most circumstances because this will not necessarily match the current architecture used by the process, leading to illegal instruction and other such errors at run time. Introduce the getProcessTriple() function for use in the JIT and its clients, and cause the JIT to use it. On architectures with a single bitness, the host and process triples are identical. On other architectures, the host triple represents the architecture of the host CPU, while the process triple represents the architecture used by the host CPU to interpret machine code within the current process. For example, when executing 32-bit code on a 64-bit Linux machine, the host triple may be 'x86_64-unknown-linux-gnu', while the process triple may be 'i386-unknown-linux-gnu'. This fixes JIT for the 32-on-64-bit (and vice versa) build on non-Apple platforms. Differential Revision: http://llvm-reviews.chandlerc.com/D254 llvm-svn: 172627
-
- Jan 14, 2013
-
-
Timur Iskhodzhanov authored
llvm-svn: 172411
-
- Jan 13, 2013
-
-
Dmitri Gribenko authored
llvm-svn: 172358
-
- Jan 11, 2013
-
-
Jordan Rose authored
Right now, only OS X has a way to determine the column width of a string (PR14910). Until we have a good way to deal with this, we just won't print carets, source ranges, or fixits for SMDiagnostic if the source line has multibyte characters in it. llvm-svn: 172164
-
- Jan 10, 2013
-
-
Jordan Rose authored
Like Clang's FixItHint, SMFixIt represents an insertion, replacement, or removal of source text. One or more fix-its can be emitted as part of a diagnostic, and will be printed below the source range line to show the user how they can fix their code. Currently, the only client of SMFixIt is clang-tblgen; thus, the tests for this behavior live in clang/test/TableGen/tg-fixits.td. If/when SMFixIt is adopted within LLVM itself, those tests should be moved to the LLVM suite. llvm-svn: 172086
-
Douglas Gregor authored
gone, check for the actual file we care about. llvm-svn: 172033
-
Douglas Gregor authored
failing to create the unique file because the path doesn't exist, don't fail if someone else manages to create the path before we do. llvm-svn: 172032
-
- Jan 09, 2013
-
-
Argyrios Kyrtzidis authored
Move the internal PrintStackTrace function that is used for llvm::sys::PrintStackTraceOnErrorSignal(), into a new function llvm::sys::PrintStackTrace, so that it's available to clients for logging purposes. llvm-svn: 171989
-
- Jan 08, 2013
-
-
Nick Kledzik authored
Stop using BumpPtrAllocator for HNodes because they have fields (vector, map) which require HNode destructors to be run. llvm-svn: 171896
-
Eric Christopher authored
make sure that vector types do work. llvm-svn: 171833
-
Lenny Maiorani authored
llvm-svn: 171829
-
Eric Christopher authored
llvm-svn: 171821
-