- Feb 18, 2013
-
-
Benjamin Kramer authored
llvm-svn: 175401
-
Benjamin Kramer authored
No functionality change. llvm-svn: 175400
-
Edwin Vane authored
If a cast expression (NullToPointer) is detected in a function-like macro parameter, we should use the spelling location instead of the expansion location. Using SourceManager::getFileLoc() fixes this problem. Also added testcases for this bug. Fixes: PR15279 Author: Tareq A Siraj <tareq.a.siraj@intel.com> Reviewer: klimek llvm-svn: 175399
-
Duncan Sands authored
Maxeiner. llvm-svn: 175398
-
- Feb 17, 2013
-
-
Hal Finkel authored
This fixes PR15289. This bug was introduced (recently) in r175215; collecting all std::vector references for candidate pairs to delete at once is invalid because subsequent lookups in the owning DenseMap could invalidate the references. bugpoint was able to reduce a useful test case. Unfortunately, because whether or not this asserts depends on memory layout, this test case will sometimes appear to produce valid output. Nevertheless, running under valgrind will reveal the error. llvm-svn: 175397
-
Dmitri Gribenko authored
by matching the function name first llvm-svn: 175395
-
Benjamin Kramer authored
GCC warns about the attribute being ignored if it occurs after void*. There seems to be some kind of incompatibility between clang and gcc here, but I can't fathom who's right. void* LLVM_LIBRARY_VISIBILITY foo(); // clang: hidden, gcc: default LLVM_LIBRARY_VISIBILITY void *bar(); // clang: hidden, gcc: hidden void LLVM_LIBRARY_VISIBILITY qux(); // clang: hidden, gcc: hidden llvm-svn: 175394
-
Cameron Zwarich authored
arguably better than forward iterators for this use case, they are confusing and there are some implementation problems with reverse iterators and MI bundles. llvm-svn: 175393
-
Lang Hames authored
Thanks Chandler. :) llvm-svn: 175392
-
James Dennett authored
at the start of the doc comment. llvm-svn: 175391
-
James Dennett authored
automatic link generation for "file:", as it's not used as a URL here. llvm-svn: 175390
-
Lang Hames authored
bitfield related issues. The original commit broke Takumi's builder. The bug was caused by bitfield sizes being determined by their underlying type, rather than the field info. A similar issue with bitfield alignments showed up on closer testing. Both have been fixed in this patch. llvm-svn: 175389
-
Saleem Abdulrasool authored
Signed-off-by:Saleem Abdulrasool <compnerd@compnerd.org> llvm-svn: 175387
-
Saleem Abdulrasool authored
An ivar ofset cannot be marked as invariant load in all cases. The ivar offset is a lazily initialised constant, which is dependent on an objc_msgSend invocation to perform a fixup of the offset. If the load is being performed on a method implemented by the class then this load can safely be marked as an inviarant because a message must have been passed to the class at some point, forcing the ivar offset to be resolved. An additional heuristic that can be used to identify an invariant load would be if the ivar offset base is a parameter to an objc method. However, without the parameters available at hand, this is currently not possible. Reviewed-by:
John McCall <rjmccall@apple.com> Signed-off-by:
Saleem Abdulrasool <compnerd@compnerd.org> llvm-svn: 175386
-
Cameron Zwarich authored
llvm-svn: 175385
-
Dmitri Gribenko authored
While there, explicitly declare functions to remove warnings. llvm-svn: 175384
-
Cameron Zwarich authored
MachineBasicBlock::SplitCriticalEdge. Since this is an iterator rather than an instr_iterator, the isBundled() check only passes if getFirstTerminator() returned end() and the garbage memory happens to lean that way. Multiple successors can be present without any terminator instructions in the case of exception handling with a fallthrough. llvm-svn: 175383
-
Cameron Zwarich authored
terminators that actually have register uses when splitting critical edges. This commit also introduces a method repairIntervalsInRange() on LiveIntervals, which allows for repairing LiveIntervals in a small range after an arbitrary target hook modifies, inserts, and removes instructions. It's pretty limited right now, but I hope to extend it to support all of the things that are done by the convertToThreeAddress() target hooks. llvm-svn: 175382
-
Bill Wendling authored
(or (bool?A:B),(bool?C:D)) --> (bool?(or A,C):(or B,D)) By the time the OR is visited, both the SELECTs have been visited and not optimized and the OR itself hasn't been transformed so we do this transform in the hopes that the new ORs will be optimized. The transform is explicitly disabled for vector-selects until "codegen matures to handle them better". Patch by Muhammad Tauqir! llvm-svn: 175380 -
Reed Kotler authored
llvm-svn: 175379
-
rdar://problem/13121056Greg Clayton authored
Fixed a crasher when the ConnectionFileDescriptor was used in a process with over FD_SETSIZE (1024) files open. It would corrupt the stack and cause the stack checker to assert and kill the program. The final fix was to "#define _DARWIN_UNLIMITED_SELECT" at the top of the one and only file that uses select () in the LLDB codebase and then make an array of "fd_set" objects so they can handle more than 1024 file descriptors. The new code can handle as many file descriptors as a process can create. llvm-svn: 175378 -
Greg Clayton authored
Added a kqueue class which isn't being used yet, but was part of trying to work around the limitations with the unix select() call and how it is limited to FD_SETSIZE file descriptors. Also added a TimeSpecTimeout class which can be used with any calls that take a "struct timespec *" as an argument. It is used by the KQueue class. Also updated some project settings. llvm-svn: 175377
-
Dmitri Gribenko authored
Patch by Alexander Zinenko. llvm-svn: 175376
-
Dmitri Gribenko authored
llvm-svn: 175375
-
Dmitri Gribenko authored
llvm-svn: 175374
-
Benjamin Kramer authored
llvm-svn: 175373
-
Benjamin Kramer authored
llvm-svn: 175372
-
Renato Golin authored
llvm-svn: 175371
-
Benjamin Kramer authored
Avoids malloc and is a lot denser. We lose iteration over target independent attributes, but that's a strange interface anyways and didn't have any users outside of AttrBuilder. llvm-svn: 175370
-
Reed Kotler authored
as well as 16/32 bit variants to do and so I want this to look nice when I do it. I've been experimenting with this. No new test cases are needed. llvm-svn: 175369
-
Benjamin Kramer authored
This avoids unnecessary copies. No functionality change. llvm-svn: 175367
-
Benjamin Kramer authored
No functionality change. llvm-svn: 175366
-
Jakub Staszak authored
llvm-svn: 175365
-
Jakub Staszak authored
No functionality change. llvm-svn: 175364
-
NAKAMURA Takumi authored
llvm-svn: 175363
-
- Feb 16, 2013
-
-
Jakub Staszak authored
updateScheduledPressure method. llvm-svn: 175362
-
NAKAMURA Takumi authored
llvm-svn: 175361
-
Benjamin Kramer authored
GNU as rejects them and there are configure scripts in the wild that check if the assembler rejects ".align 3" to determine whether the alignment is in bytes or powers of two. llvm-svn: 175360
-
Jakub Staszak authored
llvm-svn: 175359
-
Jakub Staszak authored
llvm-svn: 175358
-