summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Allow targets to specify their choice of calling conventions perAnton Korobeynikov2009-08-146-6/+27
| | | | | | | | | | 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-141-1/+1
| | | | | | | - 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-142-3/+5
| | | | | | elf object file. llvm-svn: 79029
* 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-141-2/+9
| | | | | | | | 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
* Indentation.Evan Cheng2009-08-141-1/+1
| | | | llvm-svn: 79022
* llvm-mc: zerofill shouldn't print quotes around the section,segment.Daniel Dunbar2009-08-141-2/+1
| | | | llvm-svn: 79017
* fix "pc" to be lower case in a target triple, patch by Yonggang LuoChris Lattner2009-08-141-1/+1
| | | | llvm-svn: 79016
* Hopefully unbreak cmake buildsAnton Korobeynikov2009-08-141-3/+2
| | | | llvm-svn: 79015
* Also shrink immediate branches; also more assembler workarounds.Evan Cheng2009-08-142-11/+59
| | | | llvm-svn: 79014
* Give MSP430 a separate asmprinter libAnton Korobeynikov2009-08-144-2/+23
| | | | llvm-svn: 79012
* Properly handle indirect win64 args when they're passed in memoryAnton Korobeynikov2009-08-141-2/+10
| | | | llvm-svn: 79009
* Get the CPP backend into some semblance of working by updating for numerous ↵Owen Anderson2009-08-141-10/+14
| | | | | | | | LLVMContext changes, as well as the StringRef change. llvm-svn: 79006
* Now that all the legal Neon shuffles (or at least the ones that have beenBob Wilson2009-08-141-1/+1
| | | | | | | implemented so far) are recognized during legalization, it is easy to fall back to the default expansion for other shuffles. llvm-svn: 78995
* Create a new ARM-specific DAG node, VDUP, to represent a splat from aBob Wilson2009-08-143-26/+19
| | | | | | | scalar_to_vector. Generate these VDUP nodes during legalization instead of trying to recognize the pattern during selection. llvm-svn: 78994
* During legalization, change Neon vdup_lane operations from shuffles toBob Wilson2009-08-144-61/+33
| | | | | | | | target-specific VDUPLANE nodes. This allows the subreg handling for the quad-register version to be done easily with Pats in the .td file, instead of with custom code in ARMISelDAGToDAG.cpp. llvm-svn: 78993
* CMake: updated list of source files for library MC.Oscar Fuentes2009-08-141-0/+2
| | | | llvm-svn: 78988
* Update llvm-mc / MCAsmStreamer to print the instruction using the actual targetDaniel Dunbar2009-08-142-47/+23
| | | | | | | | | | | specific printer (this only works on x86, for now). - This makes it possible to do some correctness checking of the parsing and matching, since we can compare the results of 'as' on the original input, to those of 'as' on the output from llvm-mc. - In theory, we could now have an easy ATT -> Intel syntax converter. :) llvm-svn: 78986
* Add virtual printMCInst method to AsmPrinter, as a quick way to expose the APIDaniel Dunbar2009-08-142-0/+6
| | | | | | to print one instruction. llvm-svn: 78985
* Add X86 instruction printer support for printing MCValue operands.Daniel Dunbar2009-08-141-0/+8
| | | | llvm-svn: 78984
* Add MCSymbol::{print, dump}Daniel Dunbar2009-08-142-3/+56
| | | | llvm-svn: 78983
* Add MCValue::{print, dump}Daniel Dunbar2009-08-141-0/+30
| | | | llvm-svn: 78982
* llvm-mc: Move MCAsmToken::getLoc() into MC library where it belongs.Daniel Dunbar2009-08-141-0/+5
| | | | llvm-svn: 78980
* Indentation change.Evan Cheng2009-08-141-2/+1
| | | | llvm-svn: 78978
* Shrink ADR and LDR from constantpool late during constantpool island pass.Evan Cheng2009-08-144-16/+79
| | | | llvm-svn: 78970
* New entry.Evan Cheng2009-08-141-0/+3
| | | | llvm-svn: 78968
* Make TargetData optional in GlobalOpt and ArgumentPromotion.Dan Gohman2009-08-142-15/+16
| | | | llvm-svn: 78967
* Make these matching rules more strict so that they don'tDan Gohman2009-08-141-3/+3
| | | | | | accidentally match unrelated things. llvm-svn: 78966
* Expose LLVMContext to llvm-c.Erick Tryzelaar2009-08-141-38/+115
| | | | llvm-svn: 78964
* Fix MCSectionELF::ShouldOmitSectionDirective's matching of .data andDan Gohman2009-08-131-3/+3
| | | | | | | friends so that it doesn't match sections like .data.rel.local, which should not be emitted as section directives. llvm-svn: 78963
* TargetRegistry: Change AsmPrinter constructor to be typed as returning anDaniel Dunbar2009-08-133-8/+9
| | | | | | AsmPrinter instance (instead of just a FunctionPass) llvm-svn: 78962
* llvm-mc: Add dummy MCStreamer implementation, (eventually) for use in profiling.Daniel Dunbar2009-08-132-5/+74
| | | | | | | | - Currently unused. - A few other random comment fixes lumped in. llvm-svn: 78960
* Remove HasCrazyBSS and add a flag in TAI to indicate that '.section' Bruno Cardoso Lopes2009-08-135-12/+17
| | | | | | must be emitted for PowerPC-Linux '.bss' section llvm-svn: 78958
* Actually privatize a IntegerTypes, and fix a few bugs exposed by this.Owen Anderson2009-08-139-60/+93
| | | | llvm-svn: 78955
* When standard output is a terminal, set outs() to be unbuffered, toDan Gohman2009-08-131-1/+11
| | | | | | | | mimic the behavior of stdtout, which is line-buffered when the output is a terminal. This fixes some issues with bugpoint output appearing being printed out of order. llvm-svn: 78953
* Make formatted_raw_ostream restore the buffer settings of theDan Gohman2009-08-131-10/+0
| | | | | | | underlying stream when it is finished, so that clients don't have to do this manually. llvm-svn: 78952
* Take the fast path for any named value and any GlobalValue, which doesn'tDan Gohman2009-08-131-1/+2
| | | | | | | | need TypePrinting despite being a subclass of Constant. This fixes compile-time problems especially visible on 403.gcc when -asm-verbose is enabled. llvm-svn: 78951
* Push LLVMContexts through the IntegerType APIs.Owen Anderson2009-08-13120-1238/+1596
| | | | llvm-svn: 78948
* Remove hack used to strip unwanted chars from section nameBruno Cardoso Lopes2009-08-134-146/+87
| | | | | | | Use MCSectionELF methods as much as possible, removing some ELFWriter methods which are now unused llvm-svn: 78940
* Add a method to return if the ELF section contains only common symbols!Bruno Cardoso Lopes2009-08-131-0/+10
| | | | llvm-svn: 78937
* Fix a compiler warning about comparing signed with unsigned.Dan Gohman2009-08-131-1/+1
| | | | llvm-svn: 78933
* TargetRegistry: Reorganize AsmPrinter construction so that clients pass in theDaniel Dunbar2009-08-133-8/+10
| | | | | | | | | TargetAsmInfo. This eliminates a dependency on TargetMachine.h from TargetRegistry.h, which technically was a layering violation. - Clients probably can only sensibly pass in the same TargetAsmInfo as the TargetMachine has, but there are only limited clients of this API. llvm-svn: 78928
* Add an assert to check copy_to_buffer's precondition.Dan Gohman2009-08-131-0/+2
| | | | llvm-svn: 78926
* Set raw_os_ostream, raw_string_ostream, and raw_svector_ostream to beDan Gohman2009-08-131-12/+0
| | | | | | | | unbuffered. std::ostream does its own buffering, and std::string and SmallVector both have allocation strategies intended to handle frequent appending. llvm-svn: 78924
* Add support to raw_ostream for sizing the buffer according to theDan Gohman2009-08-131-2/+25
| | | | | | | needs of the underlying output mechanism. raw_fd_ostream now uses st_blksize from fstat to determine a buffer size. llvm-svn: 78923
* Reapply pieces of 78914 reverted in 78916, this has been fixed.Daniel Dunbar2009-08-133-19/+15
| | | | llvm-svn: 78921
* Revert 78892 and 78895, these break generating working executables onDaniel Dunbar2009-08-139-30/+27
| | | | | | | | | | | | | | | | | | | | | x86_64-apple-darwin10. --- Reverse-merging r78895 into '.': U test/CodeGen/PowerPC/2008-12-12-EH.ll U lib/Target/DarwinTargetAsmInfo.cpp --- Reverse-merging r78892 into '.': U include/llvm/Target/DarwinTargetAsmInfo.h U lib/Target/X86/X86TargetAsmInfo.cpp U lib/Target/X86/X86TargetAsmInfo.h U lib/Target/ARM/ARMTargetAsmInfo.h U lib/Target/ARM/ARMTargetMachine.cpp U lib/Target/ARM/ARMTargetAsmInfo.cpp U lib/Target/PowerPC/PPCTargetAsmInfo.cpp U lib/Target/PowerPC/PPCTargetAsmInfo.h U lib/Target/PowerPC/PPCTargetMachine.cpp G lib/Target/DarwinTargetAsmInfo.cpp llvm-svn: 78919
OpenPOWER on IntegriCloud