summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Changed Sema::CheckForConstantInitializer to allow global block literals.Steve Naroff2008-10-023-15/+22
| | | | | | This commit also includes some name changes in the blocks rewriter (no functionality change). llvm-svn: 56955
* (LLVM up) Rename IRBuilder::IsNonNull -> IsNotNull.Daniel Dunbar2008-10-021-3/+3
| | | | llvm-svn: 56954
* Rename IRBuilder::IsNonNull -> IsNotNull in response to feedback.Daniel Dunbar2008-10-021-2/+2
| | | | llvm-svn: 56953
* Unbreak build: claim an extra bit for BuiltinID.Daniel Dunbar2008-10-021-2/+2
| | | | llvm-svn: 56952
* Fix a think-o in isSafeToMove. This fixes it from thinking thatDan Gohman2008-10-022-1/+18
| | | | | | volatile memory references are safe to move. llvm-svn: 56948
* Work around an interaction between fast-isel and regalloc=local. TheDan Gohman2008-10-021-1/+5
| | | | | | | | | | | | | | | | | local register allocator's physreg liveness doesn't recognize subregs, so it doesn't know that defs of %ecx that are immediately followed by uses of %cl aren't dead. This comes up due to the way fast-isel emits shift instructions. This is a temporary workaround. Arguably, local regalloc should handle subreg references correctly. On the other hand, perhaps fast-isel should use INSERT_SUBREG instead of just assigning to the most convenient super-register of %cl when lowering shifts. This fixes MultiSource/Benchmarks/MallocBench/espresso, MultiSource/Applications/hexxagon, and others, under -fast. llvm-svn: 56947
* "The original bug was a complaint that _mm_srli_si128 mis-compiled when passedBill Wendling2008-10-022-0/+10
| | | | | | | | | | a constant vector ("{0x123, 0x456}" syntax). The fix is to simplify the _mm_srli_si128 macro, and move the "* 8" from the macro into the compiler back-end. I can't change the existing __builtins because so many people are using them :-(." Patch by Stuart Hastings! llvm-svn: 56944
* (llvm up) If the target triple is unspecified, automatically set theDaniel Dunbar2008-10-021-1/+13
| | | | | | OS version part to that of the host on darwin. llvm-svn: 56943
* Add llvm::sys::{osName,osVersion} for retrieving operating system nameDaniel Dunbar2008-10-024-0/+110
| | | | | | | & version as strings. - Win32 code is untested. llvm-svn: 56942
* Drop code to validate OS part of target triple on darwin, too fragile.Daniel Dunbar2008-10-021-11/+0
| | | | llvm-svn: 56941
* Disable fast-isel for this test, as it doesn't emit the sameDan Gohman2008-10-011-1/+1
| | | | | | number of instructions. llvm-svn: 56940
* Attributes noinline alwaysinline are incompatibleDevang Patel2008-10-013-4/+21
| | | | llvm-svn: 56939
* Enhance NSError** checking with analogous checking for CFErrorRef*.Ted Kremenek2008-10-012-39/+150
| | | | | | Expand checking to include functions, not just methods. llvm-svn: 56938
* Remove OptimizeForSize global. Use function attribute optsize.Devang Patel2008-10-0110-16/+26
| | | | llvm-svn: 56937
* Added SSE4.1 blend intrinsicsMon P Wang2008-10-011-0/+7
| | | | llvm-svn: 56936
* Enable FastISel by default (on x86 and x86-64) with the -fast option.Dan Gohman2008-10-011-4/+16
| | | | llvm-svn: 56930
* add a new form of Type::dump that takes a module for type names,Chris Lattner2008-10-012-0/+13
| | | | | | patch provided by Tomas Lindquist Olsen! llvm-svn: 56929
* Make some implicit conversions explicit, to avoid compiler warnings.Dan Gohman2008-10-012-4/+4
| | | | llvm-svn: 56927
* Split this test and move it into target-specific directories.Dan Gohman2008-10-012-1/+8
| | | | | | | This fixes failures on configurations that don't have one or the other targets enabled. llvm-svn: 56926
* Split x86's ADJCALLSTACK instructions into 32-bit and 64-bit forms.Dan Gohman2008-10-014-14/+45
| | | | | | | | | | | This allows the 64-bit forms to use+def RSP instead of ESP. This doesn't fix any real bugs today, but it is more precise and it makes the debug dumps on x86-64 look more consistent. Also, add some comments describing the CALL instructions' physreg operand uses and defs. llvm-svn: 56925
* Fix typo s/ther/there/Jim Grosbach2008-10-011-1/+1
| | | | llvm-svn: 56924
* Factorize code: remove variants of "strip offDuncan Sands2008-10-017-136/+57
| | | | | | | | | | | pointer bitcasts and GEP's", and centralize the logic in Value::getUnderlyingObject. The difference with stripPointerCasts is that stripPointerCasts only strips GEPs if all indices are zero, while getUnderlyingObject strips GEPs no matter what the indices are. llvm-svn: 56922
* Fold trivial two-operand tokenfactors where the operands are equalDan Gohman2008-10-011-0/+1
| | | | | | immediately. llvm-svn: 56921
* Don't prepend a space character for constants in Value::print.Dan Gohman2008-10-011-1/+1
| | | | llvm-svn: 56920
* Fix typos in comments.Dan Gohman2008-10-011-2/+2
| | | | llvm-svn: 56919
* nounwind-ify this test.Dan Gohman2008-10-011-4/+4
| | | | llvm-svn: 56918
* revert the addition of Preverves(CallGraph), per Duncan's commentsNuno Lopes2008-10-011-2/+0
| | | | llvm-svn: 56917
* Updated checker build.Ted Kremenek2008-10-011-1/+1
| | | | llvm-svn: 56916
* Added test case.Ted Kremenek2008-10-011-0/+11
| | | | llvm-svn: 56915
* Use LVal::IsLValType(T) instead of checking to see if the type is an ↵Ted Kremenek2008-10-011-1/+1
| | | | | | "lvalue" type directly. llvm-svn: 56912
* Mark CALL instructions as having a Use of ESP/RSP.Dan Gohman2008-10-012-3/+5
| | | | llvm-svn: 56911
* Don't leave an output file in the test directory.Dan Gohman2008-10-011-1/+1
| | | | llvm-svn: 56910
* Update checker build.Ted Kremenek2008-10-011-1/+1
| | | | llvm-svn: 56909
* Call ScalarEvolution's deleteValueFromRecords before deleting anDan Gohman2008-10-011-3/+3
| | | | | | instruction, not after. This fixes some uses of free'd memory. llvm-svn: 56908
* ccc: Use CCC_NATIVE=1 by default.Daniel Dunbar2008-10-011-4/+14
| | | | | | | | | | | | | - So far this works fairly well for me for building applications using clang as a gcc substitute. If you are using ccc for a different purpose and this is a problem, speak up! Note you can also use CCC_NATIVE=0 to disable. - Also, turn CCC_ECHO off as default. - Also, pass through -Wl, to linker. llvm-svn: 56904
* NeXT: Update to use CreateRuntimeFunction for the routines it imports.Daniel Dunbar2008-10-012-80/+82
| | | | llvm-svn: 56902
* Moved this option to the front-end.Bill Wendling2008-10-011-1/+0
| | | | llvm-svn: 56901
* Implement the -fno-builtin option in the front-end, not in the back-end.Bill Wendling2008-10-014-30/+20
| | | | llvm-svn: 56900
* Add simple interface for protecting runtime functions from nameDaniel Dunbar2008-10-012-0/+56
| | | | | | | | | | | | | | | | | collisions. - Provide CodeGenModule::CreateRuntimeFunction which guarantees that the function it creates will have the provided name in the final module. This allows the runtime to have its functions protected from declarations of the same name in the source code. - One could argue that this is a reason to abuse the llvm::Module namespace for dealing with function redeclarations. However, that approach seems conceptually flawed to me. This one also happens to be somewhat more efficient. No functionality change. llvm-svn: 56899
* Use explicit target-triples to unbreak this test on non-darwin systems.Dan Gohman2008-10-011-1/+2
| | | | llvm-svn: 56896
* Add a QualType to ConjuredSymbol to represent the type and size of the symbol.Ted Kremenek2008-10-014-10/+21
| | | | | | Use this updated interface when invalidating arguments passed by reference; the type of symbol is of the object passed by reference, not the reference itself. llvm-svn: 56894
* Mark merged-in VNInfo's as being PHIKilled.Owen Anderson2008-09-301-0/+5
| | | | llvm-svn: 56893
* Support -mmacosx-version-minTed Kremenek2008-09-301-1/+2
| | | | llvm-svn: 56892
* Set reproducibility back to "Always"Ted Kremenek2008-09-301-0/+0
| | | | llvm-svn: 56891
* ccc: Add support for another batch of OS X linker options, includingDaniel Dunbar2008-09-301-6/+13
| | | | | | | | | -mmacosx-version-min. One might anticipate that at some point I will just break down and go through the man page. That seems a little too obvious. llvm-svn: 56890
* Fix a simple error in renumbering kill markaers, that took an inordinant ↵Owen Anderson2008-09-301-1/+1
| | | | | | amount of time to track down. llvm-svn: 56889
* Just don't transform this memset into "bzero" if no-builtin is specified.Bill Wendling2008-09-304-20/+22
| | | | llvm-svn: 56888
* add preserversCFG() + preservers(CallGraph)Nuno Lopes2008-09-301-0/+6
| | | | llvm-svn: 56887
* - Initialize "--no-builtin" to "false".Bill Wendling2008-09-302-1/+2
| | | | | | - Testcase for r56885. llvm-svn: 56886
* Add the new `-no-builtin' flag. This flag is meant to mimic the GCCBill Wendling2008-09-306-30/+39
| | | | | | | | | `-fno-builtin' flag. Currently, it's used to replace "memset" with "_bzero" instead of "__bzero" on Darwin10+. This arguably violates the meaning of this flag, but is currently sufficient. The meaning of this flag should become more specific over time. llvm-svn: 56885
OpenPOWER on IntegriCloud