summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Minor optimization:Evan Cheng2009-03-013-30/+253
| | | | | | | | | | | Look for situations like this: %reg1024<def> = MOV r1 %reg1025<def> = MOV r0 %reg1026<def> = ADD %reg1024, %reg1025 r0 = MOV %reg1026 Commute the ADD to hopefully eliminate an otherwise unavoidable copy. llvm-svn: 65752
* tweak this to accept asmprinter changes. I have no way to verify this, ↵Chris Lattner2009-03-011-1/+1
| | | | | | | | hopefully the buildbot will work. llvm-svn: 65750
* simplify handling "don't print top level name" processing, so that we getChris Lattner2009-03-012-40/+25
| | | | | | stuff like %A = type { %A*} instead of an upref. llvm-svn: 65748
* Combine PPC's GetConstantBuildVectorBits and isConstantSplat functions to a newBob Wilson2009-03-013-106/+114
| | | | | | method in a BuildVectorSDNode "pseudo-class". llvm-svn: 65747
* Fix a pretty awesome bug that only happened in a strange case with anonymousChris Lattner2009-03-012-8/+19
| | | | | | types. This was reading the uint for the keyword after the token was advanced. llvm-svn: 65743
* walk type symbol table also, so we get:Chris Lattner2009-03-011-2/+10
| | | | | | | | | | | | | type opaque ; type %0 %C = type { %0, %0 } instead of: %C = type { opaque, opaque } when appropriate. llvm-svn: 65742
* adjust for asmprinter change.Chris Lattner2009-03-011-2/+2
| | | | llvm-svn: 65741
* adjust for asmprinter change.Chris Lattner2009-03-011-3/+5
| | | | llvm-svn: 65740
* adjust test to make it more robustChris Lattner2009-03-011-2/+4
| | | | llvm-svn: 65739
* Fix a long-standing bug and misfeature of the disassembler: when dealing with a Chris Lattner2009-03-012-12/+128
| | | | | | | | | | | | | | stripped .bc file, it didn't make any attempt to try to reuse anonymous types. This causes an amazing type explosion due to types getting duplicated everywhere they are referenced and other problems. This also caused correctness issues, because opaque types are unique for each time they are uttered in the file. This means that stripping a .bc file could produce a .ll file that could not be assembled (e.g. 2009-02-28-StripOpaqueName.ll). This patch fixes both of these issues. llvm-svn: 65738
* move type name population out of TypePrinting class into a static Chris Lattner2009-02-282-38/+62
| | | | | | AsmWriter.cpp method. llvm-svn: 65736
* switch to densemap for pointer->word map.Chris Lattner2009-02-281-9/+9
| | | | llvm-svn: 65735
* delete a bunch of duplicated type printing logic, using the type printingChris Lattner2009-02-282-154/+18
| | | | | | stuff in AsmWriter.cpp for Type::getDescription(). llvm-svn: 65734
* make this work when constructed with a null module*Chris Lattner2009-02-281-2/+1
| | | | llvm-svn: 65733
* add description how the ilist_traits<Instruction> worksGabor Greif2009-02-281-2/+13
| | | | llvm-svn: 65732
* the module is not required to exist, allow it to default, giving thisChris Lattner2009-02-281-1/+1
| | | | | | class a nice default ctor. llvm-svn: 65731
* disable copying and assignment.Chris Lattner2009-02-281-0/+2
| | | | llvm-svn: 65730
* expose TypePrinting as a public API.Chris Lattner2009-02-282-23/+42
| | | | llvm-svn: 65729
* one less space, fixes failure with rebuilt llvm-gcc.Chris Lattner2009-02-281-1/+1
| | | | llvm-svn: 65728
* Fix grammaro.Bill Wendling2009-02-281-1/+1
| | | | llvm-svn: 65727
* rename 'Result' to 'OS' in CalcTypeName for consistencyChris Lattner2009-02-281-37/+37
| | | | llvm-svn: 65724
* do not embed the raw_ostream into TypePrinting, pass it as an argument to ↵Chris Lattner2009-02-281-52/+43
| | | | | | print etc. llvm-svn: 65723
* stop calling Type::getDescription().Chris Lattner2009-02-281-12/+15
| | | | llvm-svn: 65722
* simplificationsChris Lattner2009-02-281-6/+8
| | | | llvm-svn: 65721
* Change WriteTypeSymbolic to not put a space out before types, also, removeChris Lattner2009-02-284-27/+20
| | | | | | the old std::ostream version. llvm-svn: 65720
* make CalcTypeName take a stream instead of a string to concat onto,Chris Lattner2009-02-281-55/+49
| | | | | | eliminate redundant opaque handling code. llvm-svn: 65716
* remove a bunch of nearly-duplicated code.Chris Lattner2009-02-281-63/+18
| | | | llvm-svn: 65715
* fix indentation, remove dead integer case.Chris Lattner2009-02-281-64/+59
| | | | llvm-svn: 65714
* pull calcTypeName into TypePrinting class, make its type stackChris Lattner2009-02-281-12/+16
| | | | | | be a smallvector instead of vector. llvm-svn: 65713
* inline method into its only use and simplify the result.Chris Lattner2009-02-281-11/+4
| | | | llvm-svn: 65712
* simplify conditionChris Lattner2009-02-281-7/+10
| | | | llvm-svn: 65711
* start refactoring the .ll printer: introduce a new TypePrinting classChris Lattner2009-02-281-310/+302
| | | | | | and move all related stuff to it. llvm-svn: 65710
* add a stub for Roadsend PHPChris Lattner2009-02-281-0/+12
| | | | llvm-svn: 65705
* don't use the word 'aggregate' with constants, it is confusing.Chris Lattner2009-02-281-5/+7
| | | | llvm-svn: 65702
* don't redescribe bitcast constraints in two places. It is not valid to Chris Lattner2009-02-281-9/+3
| | | | | | bitcast from one aggregate to another. llvm-svn: 65700
* reject 0 element vectors with:Chris Lattner2009-02-281-0/+2
| | | | | | | | | @a = internal constant void bitcast(<0 x i8> <> to void) ^ Fixes PR3685 llvm-svn: 65698
* Update this text for first-class aggregates.Nick Lewycky2009-02-281-3/+4
| | | | llvm-svn: 65697
* Fix typo. Found by William Moss.Bill Wendling2009-02-281-1/+1
| | | | llvm-svn: 65693
* There is a way to specify targets that should succeed. It's the "XTARGET"Bill Wendling2009-02-281-2/+2
| | | | | | keyword. llvm-svn: 65692
* make traits more flexible by splitting out node-related fragmentGabor Greif2009-02-281-6/+14
| | | | llvm-svn: 65690
* Last commit accidentially deleted this code.Evan Cheng2009-02-282-0/+233
| | | | llvm-svn: 65679
* Avoid unused parameter warning.Evan Cheng2009-02-281-1/+1
| | | | llvm-svn: 65670
* Unable to say "TARGET: *-*-darwin*"; falling back to "XFAIL: ↵Stuart Hastings2009-02-281-1/+1
| | | | | | linux,ia64,alpha,sparc". llvm-svn: 65667
* Added another darwin subtargetMon P Wang2009-02-281-0/+4
| | | | llvm-svn: 65662
* Testcase to insure C strings go to the cstringStuart Hastings2009-02-271-0/+11
| | | | | | section. Darwin-specific. llvm-svn: 65655
* It is possible that subprgoram definition is only encoding return value ↵Devang Patel2009-02-271-2/+6
| | | | | | directly, instsad of an DIArray of all argument types. llvm-svn: 65643
* group friendshipGabor Greif2009-02-271-1/+1
| | | | llvm-svn: 65633
* Refactor TLS code and add some tests. The tests and expected results are:Rafael Espindola2009-02-2718-41/+214
| | | | | | | | | | | | | | | | | | | | | pic | declaration | linkage | visibility | !pic | declaration | external | default | tls1.ll tls2.ll | local exec pic | declaration | external | default | tls1-pic.ll tls2-pic.ll | general dynamic !pic | !declaration | external | default | tls3.ll tls4.ll | initial exec pic | !declaration | external | default | tls3-pic.ll tls4-pic.ll | general dynamic !pic | declaration | external | hidden | tls7.ll tls8.ll | local exec pic | declaration | external | hidden | X | local dynamic !pic | !declaration | external | hidden | tls9.ll tls10.ll | local exec pic | !declaration | external | hidden | X | local dynamic !pic | declaration | internal | default | tls5.ll tls6.ll | local exec pic | declaration | internal | default | X | local dynamic The ones marked with an X have not been implemented since local dynamic is not implemented. llvm-svn: 65632
* document ilist_traitsGabor Greif2009-02-271-0/+15
| | | | llvm-svn: 65631
* Expand a bit on iplist. If you are more expert on this class, please review!Gabor Greif2009-02-271-8/+20
| | | | llvm-svn: 65630
OpenPOWER on IntegriCloud