summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* don't send null pointers through the constantexpr codepath unneededly.Chris Lattner2010-01-201-0/+6
| | | | llvm-svn: 94010
* reduce redundant are's.Chris Lattner2010-01-202-2/+2
| | | | llvm-svn: 94008
* Move per-function inline threshold calculation to a method.Jakob Stoklund Olesen2010-01-201-14/+12
| | | | | | | No functional change except the forgotten test for InlineLimit.getNumOccurrences() == 0 in the CurrentThreshold2 calculation. llvm-svn: 94007
* use getGlobalDirective(), don't hardcode .globl. PR6093Chris Lattner2010-01-201-13/+13
| | | | llvm-svn: 94006
* Fix an infinite recursion problem. dbgs() should return errs() inDavid Greene2010-01-201-2/+2
| | | | | | release mode. llvm-svn: 94001
* eliminate some uses of AsmPrinter::EmitIntXXXChris Lattner2010-01-203-20/+19
| | | | llvm-svn: 93996
* Backout r93990Victor Hernandez2010-01-201-9/+4
| | | | llvm-svn: 93995
* inline and radically simplify printDataDirective. It will eventuallyChris Lattner2010-01-202-46/+24
| | | | | | go completely away. llvm-svn: 93994
* emit basic block labels with mcstreamer.Chris Lattner2010-01-201-8/+4
| | | | llvm-svn: 93993
* emit integer and fp zeros as (e.g.) .byte 0 instead of .space 1,Chris Lattner2010-01-201-15/+12
| | | | | | for tidiness. llvm-svn: 93992
* signficant cleanups to EmitGlobalConstant (including streamerization Chris Lattner2010-01-201-103/+67
| | | | | | | | of int initializers), change some methods to be static functions, use raw_ostream::write_hex instead of a smallstring dance with APValue::toStringUnsigned(S, 16). llvm-svn: 93991
* Fix/strengthen verification of llvm.dbg.declareVictor Hernandez2010-01-201-4/+9
| | | | llvm-svn: 93990
* Switch Elts from vector to SmallVectorVictor Hernandez2010-01-201-2/+1
| | | | llvm-svn: 93989
* switch ConstantFP emission to use MCStreamer, significantly Chris Lattner2010-01-201-34/+18
| | | | | | simplifying the code. llvm-svn: 93988
* make mcasmstreamer handle expanding 8 byte integer constants to Chris Lattner2010-01-202-21/+16
| | | | | | | 4-byte constants if .quad isn't supported. Switch a bunch of methods used by the dwarf writer to use OutStreamer.EmitIntValue. llvm-svn: 93987
* give createAsmStreamer an 'isLittleEndian' argument.Chris Lattner2010-01-202-4/+10
| | | | llvm-svn: 93986
* revert 93934, removing the MCAsmInfo endianness bit. I can'tChris Lattner2010-01-2018-56/+28
| | | | | | | stomache MCAsmInfo having this, and I found a better solution to this layering issue. llvm-svn: 93985
* Fix if/else brackets; getFunctionForValue() is to be called for non-metadata ↵Victor Hernandez2010-01-201-1/+3
| | | | | | values llvm-svn: 93984
* Fix the conditions to unambiguously show the logic they represent. This is theChandler Carruth2010-01-201-3/+3
| | | | | | | logic enforced in the test case as well, so hopefully it is correct. Please review Victor. llvm-svn: 93980
* Map operands of all function-local metadata, not just metadata passed to ↵Victor Hernandez2010-01-201-19/+13
| | | | | | llvm.dbg.declare intrinsics llvm-svn: 93979
* Avoid unnecessary Elts arrayVictor Hernandez2010-01-201-4/+2
| | | | llvm-svn: 93978
* Refactor common parts of MDNode::getFunction() and assertLocalFunction() ↵Victor Hernandez2010-01-202-34/+24
| | | | | | into getFunctionForValue() llvm-svn: 93977
* If a instruction belongs to another function (and not current function) as ↵Devang Patel2010-01-201-4/+12
| | | | | | per debug info attached with the instruction then ignore the dangling lexical scope of this instruction. Such scopes are unreachable. llvm-svn: 93967
* Add some asserts to check SelectionDAG problems earlier.David Greene2010-01-201-0/+12
| | | | llvm-svn: 93960
* Move findDebugLoc somewhere more central. FixDale Johannesen2010-01-203-21/+19
| | | | | | | more cases where debug declarations affect debug line info. llvm-svn: 93953
* Fold (add x, shl(0 - y, n)) -> sub(x, shl(y, n)), to simplify some codeDan Gohman2010-01-191-0/+20
| | | | | | that SCEVExpander can produce when running on behalf of LSR. llvm-svn: 93949
* Wrap some comments to 80 columns.Bob Wilson2010-01-191-2/+4
| | | | llvm-svn: 93940
* Fix a case where debug_value was perturbing theDale Johannesen2010-01-191-4/+19
| | | | | | line number info. llvm-svn: 93937
* When doing address-mode sinking, expand the base register first, ratherDan Gohman2010-01-191-12/+17
| | | | | | | | | | | | than the scaled register. This makes it more likely that subsequent AddrModeMatcher queries will match the new address the same way as the old, instead of accidentally matching what had been the base register as the new scaled register, and then failing to match the scaled register. This fixes some problems with address-mode sinking multiple muls into a block, which will be a lot more common with some upcoming LoopStrengthReduction changes. llvm-svn: 93935
* give MCAsmInfo a 'has little endian' bit. This is unfortunate, butChris Lattner2010-01-1918-28/+56
| | | | | | | | | I really want clients of the streamer to be able to say "emit this 64-bit integer" and have it get broken down right by the streamer. I may change this in the future, we'll see how it works out. llvm-svn: 93934
* Add a comment and tidy up some whitespace.Dan Gohman2010-01-191-2/+2
| | | | llvm-svn: 93932
* Fix a typo and an 80-column violation in comments.Dan Gohman2010-01-191-3/+3
| | | | llvm-svn: 93931
* Give ScalarEvolution access to the DominatorTree. It'll need thisDan Gohman2010-01-191-0/+2
| | | | | | to make more intellegent AddRec folding decisions. llvm-svn: 93930
* simplify the rest of fp constant printing.Chris Lattner2010-01-191-108/+34
| | | | llvm-svn: 93929
* simplify the code for printing x86 long double, don't do workChris Lattner2010-01-191-75/+22
| | | | | | for -fverbose-asm unless it's on. llvm-svn: 93926
* Identify predicate and optional-def operands when printing machineJakob Stoklund Olesen2010-01-191-0/+7
| | | | | | instructions. llvm-svn: 93925
* add a new EmitIntValue method that MCStreamer impls can optionally defineChris Lattner2010-01-192-6/+36
| | | | | | and that clients can use. llvm-svn: 93923
* Add a new helper function to IVUsers for returning the "canonical"Dan Gohman2010-01-191-0/+13
| | | | | | | | form of an expression. This is the expression without the post-increment adjustment made, which is useful in determining which registers will be used by the expansion. llvm-svn: 93921
* eliminate AsmPrinter::EmitZeros: just use MCStreamer directly.Chris Lattner2010-01-192-18/+9
| | | | llvm-svn: 93918
* Promoted the getTok() method to MCAsmParser so thatSean Callanan2010-01-193-41/+45
| | | | | | | the two token accessor functions are declared consistently. Modified the clients of MCAsmParser to reflect this change. llvm-svn: 93916
* Stubs for getHostCPUFeatures API. This implements part of PR5389.Xerxes Ranby2010-01-191-0/+4
| | | | llvm-svn: 93913
* Remove predicates when changing an add into an unpredicable mov.Jakob Stoklund Olesen2010-01-192-5/+13
| | | | | | | Since the mov is executed unconditionally, make sure that the add didn't have any predicate. llvm-svn: 93909
* Update CMake list.Benjamin Kramer2010-01-191-1/+0
| | | | llvm-svn: 93905
* Add some new debugging APIs to print out "raw" SelectionDAGs to makeDavid Greene2010-01-192-29/+25
| | | | | | understanding CannotYTetSelect and other errors easier. llvm-svn: 93901
* Propagated the parser-side Lex function's declaration toSean Callanan2010-01-192-45/+45
| | | | | | | MCAsmParser, and changed the target-specific AsmParsers to use it. llvm-svn: 93900
* Fix a bug introduced on r92564 where the name "Node" was alreadyBruno Cardoso Lopes2010-01-191-2/+2
| | | | | | in use by Mips. llvm-svn: 93897
* Generalize mcasmstreamer data emission APIs to take an address spaceChris Lattner2010-01-197-48/+50
| | | | | | identifier. There is no way to work around it. llvm-svn: 93896
* Do not extend extension results beyond the use of a PHI instruction at the ↵Evan Cheng2010-01-191-0/+12
| | | | | | start of a use block. A PHI use is expected to kill its source values. llvm-svn: 93895
* refactor code to be static functions instead of methods on AsmPrinter.Chris Lattner2010-01-191-47/+39
| | | | | | This fixes some bugs handling address spaces. llvm-svn: 93891
* mcstreamerize AsmPrinter::EmitZeros, at least when emitting to the Chris Lattner2010-01-192-8/+8
| | | | | | default address space. llvm-svn: 93890
OpenPOWER on IntegriCloud