summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* [lit] Add a basic discovery test.Daniel Dunbar2013-01-319-0/+41
| | | | llvm-svn: 174001
* [lit] Add a script for checking test coverage.Daniel Dunbar2013-01-313-0/+63
| | | | llvm-svn: 174000
* [lit] Add a test suite for lit itself.Daniel Dunbar2013-01-312-0/+41
| | | | llvm-svn: 173999
* stripAndComputeConstantOffsets is only called on pointers; check thisDan Gohman2013-01-311-10/+1
| | | | | | with an assert instead of failing and requiring callers to check for failure. llvm-svn: 173998
* Rewrite this test properly with a FileCheck instead of grepsEli Bendersky2013-01-311-8/+10
| | | | llvm-svn: 173997
* Fix ConstantFold's folding of icmp instructions to recognize that,Dan Gohman2013-01-312-6/+28
| | | | | | | for example, a one-past-the-end pointer from one global variable may be equal to the base pointer of another global variable. llvm-svn: 173995
* Added a unit test for r173983 that verifies that Target.isiOS() works correctly.Michael Gottesman2013-01-301-0/+30
| | | | | | | As a bonus I put in some extra checks to make sure that we are identifying the machine word of various Mac OS X/iOS targets appropriately. llvm-svn: 173994
* PPC QPX requires a 32-byte aligned stackHal Finkel2013-01-303-1/+31
| | | | | | | On systems which support the QPX vector instructions, the stack must be 32-byte aligned. llvm-svn: 173993
* Remove addRetAttributes and addFnAttributes, which aren't useful abstractions.Bill Wendling2013-01-304-23/+13
| | | | llvm-svn: 173992
* Convert typeIncompatible to return an AttributeSet.Bill Wendling2013-01-305-24/+33
| | | | | | | There are still places which treat the Attribute object as a collection of attributes. I'm systematically removing them. llvm-svn: 173990
* Forgot the test case before.Evan Cheng2013-01-301-0/+40
| | | | llvm-svn: 173988
* Restrict sin/cos optimization to 64-bit only for now. 32-bit is a bit messy ↵Evan Cheng2013-01-302-10/+14
| | | | | | and less critical. llvm-svn: 173987
* Doxygenified some comments in IRBuilder.h.Michael Gottesman2013-01-301-8/+9
| | | | llvm-svn: 173986
* Removed CreateFPExtOrFPTrunc for now until I have the time to get in my ↵Michael Gottesman2013-01-301-14/+0
| | | | | | | | | | vector convert patch. What I thought was going to be a quick thing has extended out a little bit in time *sigh*. So after some thought in order to not cruft up the tree I am removing this for now since it is the right thing to do. llvm-svn: 173985
* Initialize hasQPX in PPCSubtargetHal Finkel2013-01-301-0/+1
| | | | | | This should have gone in with r173973. llvm-svn: 173984
* Encapsulate testing that we have an iOS Triple in Triple.h in the method isiOSMichael Gottesman2013-01-301-1/+6
| | | | | | | so we follow the convention that all other platforms follow by having an is* test method. llvm-svn: 173983
* Remove redundant code.Bill Wendling2013-01-301-20/+2
| | | | | | | It was creating a new AttrBuilder when we could just fill in the AttrBuilder we're building. llvm-svn: 173975
* ...in light of recent activity related to llvm.memcpy flags. I want toAndrew Trick2013-01-301-0/+5
| | | | | | | | | | | | | | | prevent an llvm developer from mistakenly thinking that just because the intrinsic has volatile flags that volatile operations can be converted to or folded into them. Platforms may rely on volatile loads and stores of natively supported data width to be executed as single instruction. When compiling C, this expectation likely holds for l-values of volatile primitive types with native hardware support, but not necessarily for aggregate types. The frontend upholds these expectations, which are not specified in the IR. llvm-svn: 173974
* Add definitions for the PPC a2q core marked as having QPX availableHal Finkel2013-01-303-0/+19
| | | | | | | | This is the first commit of a large series which will add support for the QPX vector instruction set to the PowerPC backend. This instruction set is used on the IBM Blue Gene/Q supercomputers. llvm-svn: 173973
* Remove a mention of TargetInstrDescriptor, which no longer exists in the codeEli Bendersky2013-01-301-6/+4
| | | | llvm-svn: 173971
* [docs] Guide prospective TableGen backend writers.Sean Silva2013-01-301-0/+4
| | | | | | | Boilerplate is often the hardest part of getting started with these kinds of things, so throw them a bone. llvm-svn: 173969
* Use the number of 'slots' in the AttributeSetImpl being 0 to indicate that ↵Bill Wendling2013-01-301-1/+1
| | | | | | the AttributeSet is empty. llvm-svn: 173962
* Clean up whitespace and indentation a bitEli Bendersky2013-01-302-9/+5
| | | | llvm-svn: 173960
* Linker: correctly link in dbg.declareManman Ren2013-01-303-2/+145
| | | | | | | | | | | | | | | | Given source IR: call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !14), !dbg !15 we used to generate call void @llvm.dbg.declare(metadata !27, metadata !28), !dbg !29 !27 = metadata !{null} With this patch, we will correctly generate call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !27), !dbg !28 Looking up %argc.addr in ValueMap will return null, since %argc.addr is already correctly set up, we can use identity mapping. llvm-svn: 173946
* Add a special ARM trap encoding for NaCl.Eli Bendersky2013-01-3010-10/+105
| | | | | | | | More details in this thread: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130128/163783.html Patch by JF Bastien llvm-svn: 173943
* Add missing header and test cases for r173939.Logan Chien2013-01-305-0/+323
| | | | llvm-svn: 173941
* Override virtual function for ARM EH directives.Logan Chien2013-01-301-2/+216
| | | | llvm-svn: 173939
* LLDB uses ConvertUTF16toUTF8, remove #ifdefDmitri Gribenko2013-01-301-2/+0
| | | | llvm-svn: 173936
* Move UTF conversion routines from clang/lib/Basic to llvm/lib/SupportDmitri Gribenko2013-01-304-0/+879
| | | | | | This is required to use them in TableGen. llvm-svn: 173923
* Documentation: Updating the data layout default specifications toPatrik Hagglund2013-01-301-6/+4
| | | | | | | | correspond to the code. Patch by Stephen McGruer. llvm-svn: 173914
* [lit] Make GoogleTest test runner correctly discover tests in the source rootAlexey Samsonov2013-01-301-15/+23
| | | | llvm-svn: 173907
* Attempt to fix dragonegg. Use the number of slots to determine if the ↵Bill Wendling2013-01-301-1/+1
| | | | | | AttributeSet has attributes or not. llvm-svn: 173902
* InstCombine: canonicalize sext-and --> selectNadav Rotem2013-01-304-14/+52
| | | | | | | | sext-not-and --> select. Patch by Muhammad Tauqir Ahmad. llvm-svn: 173901
* build: regenerate configureSaleem Abdulrasool2013-01-301-3/+90
| | | | | | | Regenerate configure script for new option to make the buildbots happy. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> llvm-svn: 173893
* build: add --with-python optionSaleem Abdulrasool2013-01-305-6/+36
| | | | | | | | | | | This adds a new --with-python option to allow configuration of the python binary for building. If not specified, $PATH will be searched for common python binary names (python, python2, python3). If specified, and the path is not executable, it will attempt to search $PATH. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> Reviewed-by: Eric Christopher <echristo@gmail.com>, Daniel Dunbar <daniel@zuster.org> llvm-svn: 173890
* Removing initializer for the field removed in r173887David Blaikie2013-01-301-1/+1
| | | | llvm-svn: 173888
* Remove unused variable (introduced in r173884) to clear clang -Werror buildDavid Blaikie2013-01-301-2/+0
| | | | llvm-svn: 173887
* Forgot to add new file to CMakeListsJack Carter2013-01-301-0/+1
| | | | llvm-svn: 173886
* This patch implements runtime ARM specificJack Carter2013-01-305-2/+43
| | | | | | | | setting of ELF header e_flags. Contributer: Jack Carter llvm-svn: 173885
* This patch implements runtime Mips specificJack Carter2013-01-307-3/+168
| | | | | | | | setting of ELF header e_flags. Contributer: Jack Carter llvm-svn: 173884
* This patch reworks how llvm targets set Jack Carter2013-01-308-35/+19
| | | | | | | | | | | | | | | | | | | | | | | | and update ELF header e_flags. Currently gathering information such as symbol, section and data is done by collecting it in an MCAssembler object. From MCAssembler and MCAsmLayout objects ELFObjectWriter::WriteObject() forms and streams out the ELF object file. This patch just adds a few members to the MCAssember class to store and access the e_flag settings. It allows for runtime additions to the e_flag by assembler directives. The standalone assembler can get to MCAssembler from getParser().getStreamer().getAssembler(). This patch is the generic infrastructure and will be followed by patches for ARM and Mips for their target specific use. Contributer: Jack Carter llvm-svn: 173882
* [autoconf]: Fix description in HAVE_CRASHREPORTER_INFO.NAKAMURA Takumi2013-01-303-4/+4
| | | | | | | http://llvm-reviews.chandlerc.com/D332 Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> llvm-svn: 173879
* [autoconf] Fix m4 quoting for newer autotoolsNAKAMURA Takumi2013-01-304-111/+191
| | | | | | | | | This simply fixes up quoting of macro invocations to appease newer versions of autotools. http://llvm-reviews.chandlerc.com/D332 Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> llvm-svn: 173878
* [autoconf] Fix 80+ and quoting.NAKAMURA Takumi2013-01-302-8/+15
| | | | | | | | | Additional quoting for safety and satisfying newer autotools. Fix a couple of 80 column violations. http://llvm-reviews.chandlerc.com/D333 Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> llvm-svn: 173877
* [mips] Test case for r173862.Akira Hatanaka2013-01-302-0/+164
| | | | | | Patch by Sasa Stankovic. llvm-svn: 173863
* [mips] Lower EH_RETURN.Akira Hatanaka2013-01-3010-2/+184
| | | | | | Patch by Sasa Stankovic. llvm-svn: 173862
* [lit] Add some TODO notes to myself.Daniel Dunbar2013-01-301-0/+17
| | | | llvm-svn: 173857
* Adding simple cast cost to ARMRenato Golin2013-01-293-2/+160
| | | | | | | | | | | Changing ARMBaseTargetMachine to return ARMTargetLowering intead of the generic one (similar to x86 code). Tests showing which instructions were added to cast when necessary or cost zero when not. Downcast to 16 bits are not lowered in NEON, so costs are not there yet. llvm-svn: 173849
* Remove unused variable (unused since r173839)Dmitri Gribenko2013-01-291-4/+1
| | | | llvm-svn: 173847
* Documentation: add empty lines so that lists are properly recognizedDmitri Gribenko2013-01-291-0/+2
| | | | llvm-svn: 173845
OpenPOWER on IntegriCloud