summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix tests.Evan Cheng2009-08-152-2/+2
| | | | llvm-svn: 79086
* Turn on if-conversion for thumb2.Evan Cheng2009-08-1512-51/+246
| | | | llvm-svn: 79084
* update for rename.Chris Lattner2009-08-151-2/+2
| | | | llvm-svn: 79082
* rename PIC16Section.h -> MCSectionPIC16.h for consistency withChris Lattner2009-08-153-2/+2
| | | | | | the class it defines. llvm-svn: 79081
* cmake likes its explicit list of files to build.Chris Lattner2009-08-151-0/+1
| | | | llvm-svn: 79080
* use XCore-specific section with xcore specific cp/dp flags to restore Chris Lattner2009-08-153-16/+26
| | | | | | | | support for globals going into the appropriate sections with the flags. This hopefully finishes unbreaking the previous behavior that I broke before. llvm-svn: 79079
* If ELF subtargets don't want to support 4/8/16-byte mergable sections, allow Chris Lattner2009-08-151-3/+3
| | | | | | them to null out the default section pointers. llvm-svn: 79078
* add support for target-specific ELF section flags, add a new MCSectionXCoreChris Lattner2009-08-154-11/+124
| | | | | | | class which represents the XCore cp/dp section flags. No functionality change yet. llvm-svn: 79077
* Add an additional C++ hardcoded search path.Eli Friedman2009-08-151-0/+3
| | | | llvm-svn: 79075
* Make test more precise.Eli Friedman2009-08-151-4/+2
| | | | llvm-svn: 79074
* Make test a bit more precise.Eli Friedman2009-08-151-1/+1
| | | | llvm-svn: 79073
* Extend the ProgramPoint to include the context information LocationContext,Zhongxing Xu2009-08-1510-98/+139
| | | | | | | which is either a stack frame context of the function or a local scope context. llvm-svn: 79072
* Fix for PR4721: adjust CodeGen and ASTContext so that we have a Eli Friedman2009-08-154-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | | consistent model for handling size expressions for VLAs. The model is essentially as follows: VLA types own their associated expression. In some cases, we need to create multiple VLA types to represent a given VLA (for canonical types, or qualifiers on array types, or type merging). If we need to create multiple types based off of the same VLA declaration, we use the new refcounting functionality so they can all own the expression. The VLASizeMap in CodeGenFunction then uses the size expression to identify the group of VLA types based off of the same original declaration. I'm not particularly attached to the VLA types owning the expression, but we're stuck with at least until someone comes up with a way to walk the VLA expressions for a declaration. I did the parallel fix in ASTContext for DependentSizedArrayType, but I haven't really looked closely at it, so there might still be issues there. I'll clean up the code duplication in ASTContext in a followup commit. llvm-svn: 79071
* Disable all recognition of main() in -ffreestanding. Addresses bug #4720.John McCall2009-08-155-7/+17
| | | | llvm-svn: 79070
* Simplify a few more things, eliminating a few more dependencies onDan Gohman2009-08-152-3/+1
| | | | | | "the current basic block". llvm-svn: 79069
* Simplify this code to not depend as much on CurMBB.Dan Gohman2009-08-151-16/+15
| | | | llvm-svn: 79068
* Do not use frame register to reference fixed stack objects if the function ↵Evan Cheng2009-08-152-13/+14
| | | | | | is frameless. llvm-svn: 79067
* Always check to see if raw_fd_ostream's file descriptor is attached toDan Gohman2009-08-151-13/+16
| | | | | | a terminal, not just when it's STDOUT_FILENO. llvm-svn: 79066
* Add support for column computation on unbuffered streams.Dan Gohman2009-08-151-15/+38
| | | | llvm-svn: 79065
* Move FormattedStream's write_impl out of line.Dan Gohman2009-08-152-5/+7
| | | | llvm-svn: 79064
* Remove an unnecessary #include.Dan Gohman2009-08-151-1/+0
| | | | llvm-svn: 79063
* switch DominanceFrontier::splitBlock to use a smallvector forChris Lattner2009-08-151-2/+2
| | | | | | the pred list instead of a vector, saving a boat load of malloc/free's. llvm-svn: 79062
* On x86-64, for a varargs function, don't store the xmm registers toDan Gohman2009-08-154-18/+146
| | | | | | | the register save area if %al is 0. This avoids touching xmm regsiters when they aren't actually used. llvm-svn: 79061
* Change handling of attribute 'malloc' to only accept the attribute on functionTed Kremenek2009-08-154-24/+18
| | | | | | | | | | declarations (and not function pointers). This is consistent with GCC. Accepting this attribute on function pointers means that the attribute should be treated as a type qualifier, which apparently is not what GCC does. We obviously can change this later should we desire to enhance the 'malloc' attribute in this way. llvm-svn: 79060
* minor cleanups for VLA stuff.Chris Lattner2009-08-151-13/+12
| | | | llvm-svn: 79059
* use GetVLASize instead of accessing VLASizeMap directly, this gets an assert if Chris Lattner2009-08-141-1/+1
| | | | | | VLASize isn't populated for the type yet. llvm-svn: 79057
* lit: flush stdout in no-fancy-progress-bar mode as well.Benjamin Kramer2009-08-141-0/+2
| | | | llvm-svn: 79056
* Add more attribute 'malloc' test cases involving function pointers.Ted Kremenek2009-08-142-0/+4
| | | | llvm-svn: 79055
* Per Eli Friedman's feedback, handle attribute 'malloc' being applied toTed Kremenek2009-08-142-8/+10
| | | | | | declarations of function pointers. llvm-svn: 79053
* objc2's foreach statement's selector type can beFariborz Jahanian2009-08-142-1/+13
| | | | | | a block pointer too. llvm-svn: 79050
* Do not completely skip subrange info for a zero sized array.Devang Patel2009-08-141-6/+5
| | | | llvm-svn: 79044
* Do now overflow while calulating upper bound for zero sized array.Devang Patel2009-08-141-2/+3
| | | | llvm-svn: 79043
* This test case does not need to include 'stdlib.h'.Ted Kremenek2009-08-141-2/+0
| | | | llvm-svn: 79042
* Use 'dyn_cast' instead of a check for a function declaration followed by aTed Kremenek2009-08-141-2/+3
| | | | | | 'cast'. llvm-svn: 79041
* Improve Sema's handling of attribute 'malloc' to reject the attribute whenTed Kremenek2009-08-142-18/+40
| | | | | | | | | | | attaching to Objective-C methods (which mirrors GCC's behavior) and to allow the return type of the function to be an Objective-C pointer or Block pointer (which GCC also accepts). Along the way, add 'const' to some of the pointer arguments of various utility functions... llvm-svn: 79040
* Leaf functions which do not save CSRs can be frameless even with ↵Evan Cheng2009-08-143-1/+16
| | | | | | -disable-fp-elim. llvm-svn: 79039
* CMake: Updated library dependence info.Oscar Fuentes2009-08-141-1/+2
| | | | llvm-svn: 79038
* Add sse4.2 string/text processing intrinsics. We'll select these later.Eric Christopher2009-08-141-0/+67
| | | | llvm-svn: 79037
* Whitespace cleanup.Eric Christopher2009-08-142-18/+18
| | | | llvm-svn: 79036
* ir-gen for generation of trvial copy constructorFariborz Jahanian2009-08-142-1/+27
| | | | | | call. llvm-svn: 79034
* Allow targets to specify their choice of calling conventions perAnton Korobeynikov2009-08-147-6/+44
| | | | | | | | | | libcall. Take advantage of this in the ARM backend to rectify broken choice of CC when hard float is in effect. PIC16 may want to see if it could be of use in MakePIC16Libcall, which works unchanged. Patch by Sandeep! llvm-svn: 79033
* Add Thumb2 lsr hooks.Evan Cheng2009-08-142-36/+106
| | | | llvm-svn: 79032
* llvm-mc: Fix bugs where bytes were unintentionally being printed as signed.Daniel Dunbar2009-08-142-2/+3
| | | | | | | - We now print all of 403.gcc cleanly (llvm-mc -> 'as' as diffed to 'as'), minus two 'rep;movsl' instructions (which I missed before). llvm-svn: 79031
* CMake: Corrected variable check.Oscar Fuentes2009-08-141-1/+1
| | | | llvm-svn: 79030
* *try* to use a better name to describe how common symbols are marked on the ↵Bruno Cardoso Lopes2009-08-143-5/+9
| | | | | | elf object file. llvm-svn: 79029
* Add doxygen comments.Owen Anderson2009-08-141-0/+8
| | | | llvm-svn: 79027
* 80 col violation.Evan Cheng2009-08-141-1/+2
| | | | llvm-svn: 79026
* llvm-mc: When handling a .set, make sure to print subsequent references to theDaniel Dunbar2009-08-142-4/+17
| | | | | | | | symbol as the symbol name itself, not the expression it was defined to. These have different semantics due to the quirky .set behavior (which absolutizes an expression that would otherwise be treated as a relocation). llvm-svn: 79025
* Cleanup the mess in msp430 target registration and hopefully unbreak the buildAnton Korobeynikov2009-08-142-5/+10
| | | | llvm-svn: 79024
* Revert r78424.Argyrios Kyrtzidis2009-08-141-7/+4
| | | | | | In order for the changes in r78424 to work properly, cast_retty<X,Y> should return an object instead of a reference, and it's not clear that this approach has real advantages. llvm-svn: 79023
OpenPOWER on IntegriCloud