summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a couple ridiculous copy-paste errors. rdar://9914773 .Eli Friedman2011-08-092-12/+45
| | | | llvm-svn: 137160
* Add a C interface to PassManagerBuilder. It is missing the addExtensionRafael Espindola2011-08-091-0/+80
| | | | | | | functionality since in the C api a pass is created and added to a pass manager in a single call. llvm-svn: 137159
* Don't truncate MachO addresses.Jim Grosbach2011-08-091-1/+1
| | | | | | | | | | | | | | Assigned symbol addresses get truncated to 32-bits, even on 64-bit platforms. That's obviously bogus. For example, .globl _foo .equ _foo, 0x987654321ULL rdar://9922863 llvm-svn: 137158
* Fixed a potential crash in Process.cpp when weSean Callanan2011-08-091-2/+3
| | | | | | used a log unchecked. llvm-svn: 137157
* ARM Disassembler: sign extend branch immediates.Benjamin Kramer2011-08-092-2/+5
| | | | | | Not sure about BLXi, but this is what the old disassembler did. llvm-svn: 137156
* Silence an false-positive warning.Owen Anderson2011-08-091-1/+1
| | | | llvm-svn: 137154
* Don't generate the old-style disassembler in CMake builds either.Owen Anderson2011-08-091-1/+0
| | | | llvm-svn: 137153
* The new ARM disassembler disassembles "bx lr" as a special BX_ret ↵Benjamin Kramer2011-08-091-10/+0
| | | | | | instruction so target specific analysis isn't needed anymore. llvm-svn: 137151
* Don't continue generating the old-style decoder file.Owen Anderson2011-08-091-3/+2
| | | | llvm-svn: 137150
* Typo in the test case for i386.Jim Ingham2011-08-091-1/+1
| | | | llvm-svn: 137149
* ARM fix typo in pre-indexed store lowering.Jim Grosbach2011-08-091-1/+1
| | | | | | rdar://9915869 llvm-svn: 137148
* Attempt to fix CMake build.Owen Anderson2011-08-091-0/+1
| | | | llvm-svn: 137147
* Tighten Thumb1 branch predicate decoding.Owen Anderson2011-08-092-1/+3
| | | | llvm-svn: 137146
* First draft of the practical guide to atomics.Eli Friedman2011-08-091-0/+295
| | | | | | This is mostly descriptive of the intended state once atomic load and store have landed. llvm-svn: 137145
* Replace the existing ARM disassembler with a new one based on the ↵Owen Anderson2011-08-0959-7261/+2477
| | | | | | | | | | FixedLenDecoderEmitter. This new disassembler can correctly decode all the testcases that the old one did, though some "expected failure" testcases are XFAIL'd for now because it is not (yet) as strict in operand checking as the old one was. llvm-svn: 137144
* When unloading a library, pass the old complete version of the library to ↵Jim Ingham2011-08-091-1/+3
| | | | | | | | | UnloadImageLoadAddress, since that one is completely filled in. The one we make up from the event doesn't have section info since the library has already been unloaded by the time we get to it. llvm-svn: 137143
* Fixed the Objective-C "self" test case, whichSean Callanan2011-08-091-3/+4
| | | | | | | | | | was behaving erratically because it didn't have a return statement in -[A init]. Also made minor cosmetic changes to that test case. llvm-svn: 137142
* Silence clang warning.Johnny Chen2011-08-091-1/+2
| | | | llvm-svn: 137141
* Simplify lang/objc/self/Makefile, plus it's wrong. :-)Johnny Chen2011-08-092-8/+8
| | | | | | | For Makefile.rules, the modification of CFLAGS (addition of -arch $(ARCH) for Darwin) needs to come before the consuming of CFLAGS, not after. llvm-svn: 137140
* Put Darwin-specific code inside an __APPLE__ ifdef.Bob Wilson2011-08-091-0/+2
| | | | llvm-svn: 137137
* Fix a crash while running the test suite. Need to check the (LogSP)log ↵Johnny Chen2011-08-091-3/+6
| | | | | | shared pointer before using it. llvm-svn: 137136
* Revert r137134. It breaks some code as Eli pointed out.Bill Wendling2011-08-092-12/+1
| | | | llvm-svn: 137135
* Print out the variable declaration only if it is a declaration. Otherwise, aBill Wendling2011-08-092-1/+12
| | | | | | | 'static' variable will be emitted twice. PR10081 llvm-svn: 137134
* Inflate register classes after coalescing.Jakob Stoklund Olesen2011-08-093-5/+42
| | | | | | | | | | | | | | | | | | | | | | | Coalescing can remove copy-like instructions with sub-register operands that constrained the register class. Examples are: x86: GR32_ABCD:sub_8bit_hi -> GR32 arm: DPR_VFP2:ssub0 -> DPR Recompute the register class of any virtual registers that are used by less instructions after coalescing. This affects code generation for the Cortex-A8 where we use NEON instructions for f32 operations, c.f. fp_convert.ll: vadd.f32 d16, d1, d0 vcvt.s32.f32 d0, d16 The register allocator is now free to use d16 for the temporary, and that comes first in the allocation order because it doesn't interfere with any s-registers. llvm-svn: 137133
* Revert bad change. (It may look equivalent, but it isn't.)Eli Friedman2011-08-091-1/+1
| | | | llvm-svn: 137132
* Fixed a problem where the HasAVX() code inSean Callanan2011-08-093-16/+20
| | | | | | | | debugserver did not back up %ebx/%rbx, even though it was being clobbered by the CPUID instruction. llvm-svn: 137131
* Thread Safety: Added basic argument parsing for all new attributes.Caitlin Sadowski2011-08-097-163/+738
| | | | | | | | | | | | This patch special cases the parser for thread safety attributes so that all attribute arguments are put in the argument list (instead of a special parameter) since arguments may not otherwise resolve correctly without two-token lookahead. This patch also adds checks to make sure that attribute arguments are lockable objects. llvm-svn: 137130
* Add a negative self.expect() to verify that the bug has been fixed.Johnny Chen2011-08-091-0/+2
| | | | | | rdar://problem/9747668 llvm-svn: 137129
* Reapply a more appropriate solution than in r137114. AVX supportsBruno Cardoso Lopes2011-08-092-0/+22
| | | | | | | v4f64 = sitofp v4i32. This fix PR10559. Also add support for v4i32 = fptosi v4f64. llvm-svn: 137128
* Revert r137114Bruno Cardoso Lopes2011-08-092-28/+1
| | | | llvm-svn: 137127
* Cleanup; no functionality change.Eli Friedman2011-08-093-10/+4
| | | | llvm-svn: 137126
* PTX: Add initial support for device function callsJustin Holewinski2011-08-097-3/+158
| | | | | | - Calls are supported on SM 2.0+ for function with no return values llvm-svn: 137125
* Move the creation of the record type for the state of Objective-C fastDouglas Gregor2011-08-098-70/+52
| | | | | | | | enumerations from the ASTContext into CodeGen, so that we don't need to serialize it to AST files. This appears to be the last of the low-hanging fruit for SpecialTypes. llvm-svn: 137124
* Move CalculateRegClass to MRI::recomputeRegClass.Jakob Stoklund Olesen2011-08-095-39/+47
| | | | | | | | This function doesn't have anything to do with spill weights, and MRI already has functions for manipulating the register class of a virtual register. llvm-svn: 137123
* Don't serialize the block descriptor or block extended descriptorDouglas Gregor2011-08-095-44/+8
| | | | | | | types to AST files; they're only used by debug info generation anyway, and shouldn't ever exist in the AST anyway. llvm-svn: 137122
* Move the construction of the RecordDecl representing the runtimeDouglas Gregor2011-08-097-70/+56
| | | | | | | | layout of a constant NSString from the ASTContext over to CodeGen, since this is solely CodeGen's responsibility. Eliminates one of the unnecessary "special" types that we serialize. llvm-svn: 137121
* Migrate the serialization of ASTContext's AutoDeduceTy andDouglas Gregor2011-08-095-19/+28
| | | | | | | AutoRRefDeductTy from the "special types" block to predefined types. The latter behaves better when loading multiple AST files. llvm-svn: 137120
* First cut at exception handling; missing dependent exceptions. Next step: testsMarshall Clow2011-08-091-7/+224
| | | | llvm-svn: 137118
* Place back previous order of add_subdirectory()'s to reflect build depedencies.Ted Kremenek2011-08-091-2/+2
| | | | llvm-svn: 137117
* Emitting ARM build attributes and values as ULEB, rather than char.Renato Golin2011-08-091-11/+67
| | | | llvm-svn: 137115
* Handle sitofp between v4f64 <- v4i32. Fix PR10559Bruno Cardoso Lopes2011-08-092-1/+28
| | | | llvm-svn: 137114
* The "bool HasAVX()" function doesn't backup and restore theGreg Clayton2011-08-092-0/+14
| | | | | | | | cpu registers it uses and it crashes the release version of debugserver. We just get lucky in Debug builds. Until this is fixed I am disabling AVX detection to avoid the crashes. llvm-svn: 137113
* Added some logging and did some member renaming.Greg Clayton2011-08-093-46/+66
| | | | llvm-svn: 137112
* Recognize the UNAME_RELEASE environment variable to match Darwin's uname.Bob Wilson2011-08-091-0/+6
| | | | | | | | When this variable is set, "uname -r" will return its value instead of the real OS version. Make this affect LLVM's triple for consistency. <rdar://problem/9919167> llvm-svn: 137111
* Add libsupport to list of libraries to link into diagtoolTed Kremenek2011-08-091-0/+4
| | | | llvm-svn: 137110
* Add 'diagtool' to the 'tools/' directory. diagtool is a new tool (WIP) for ↵Ted Kremenek2011-08-098-1/+316
| | | | | | | | | | | | analyzing and working with clang diagnostics. Some interesting stats from 'diagtool list-warnings' on the current version of clang: Percentage of warnings with flags: 48.79% Number of unique flags: 148 Average number of diagnostics per flag: 2.041 llvm-svn: 137109
* Provide diag_iterator for iterating over the built-in diagnostic IDs/names ↵Ted Kremenek2011-08-092-0/+48
| | | | | | in the internal table of DiagnosticIDs. llvm-svn: 137108
* Sort CMakeLists.txt.Ted Kremenek2011-08-091-2/+2
| | | | llvm-svn: 137107
* LoopUnroll looks like it has some stale code. Remove it to prove my sanity ↵Andrew Trick2011-08-091-6/+1
| | | | | | and avoid further confusion. llvm-svn: 137106
* Add support for avx vector fextendBruno Cardoso Lopes2011-08-092-1/+12
| | | | llvm-svn: 137105
OpenPOWER on IntegriCloud