Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | remove one form of EmitString, just use EmitBytes instead. We must | Chris Lattner | 2010-01-23 | 4 | -40/+27 | |
| | | | | | | | be careful to add a \0 at the end though, because EmitString didn't do this. llvm-svn: 94277 | |||||
* | teach MCAsmStreamer::EmitBytes to use .ascii and .asciz | Chris Lattner | 2010-01-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 94259 | |||||
* | Enable pre-regalloc scheduling load clustering by default. | Evan Cheng | 2010-01-22 | 1 | -7/+1 | |
| | | | | llvm-svn: 94255 | |||||
* | move "EOL" from asmprinter to dwarfprinter. It should eventually | Chris Lattner | 2010-01-22 | 5 | -117/+117 | |
| | | | | | | be completely eliminated, but today is not that day. llvm-svn: 94253 | |||||
* | remove uses of EOL. | Chris Lattner | 2010-01-22 | 1 | -6/+2 | |
| | | | | llvm-svn: 94252 | |||||
* | add a new EmitCFAByte method and use it. | Chris Lattner | 2010-01-22 | 2 | -14/+23 | |
| | | | | llvm-svn: 94251 | |||||
* | move uleb printing from asmprinter to dwarfprinter, mcize, | Chris Lattner | 2010-01-22 | 7 | -124/+83 | |
| | | | | | | cleanup and eliminate a bunch more uses of "EOL". llvm-svn: 94250 | |||||
* | move sleb printing out of asmprinter into dwarf printer, make clients | Chris Lattner | 2010-01-22 | 6 | -48/+45 | |
| | | | | | | handle the comment better, MCize the non-.sleb case. llvm-svn: 94244 | |||||
* | Remove MetadataBase class because it is not adding significant value. | Devang Patel | 2010-01-22 | 1 | -2/+1 | |
| | | | | llvm-svn: 94243 | |||||
* | Ignore DEBUG_VALUE when building live intervals; | Dale Johannesen | 2010-01-22 | 2 | -4/+11 | |
| | | | | | | | this makes the code work transparently the same whether they're there or not. llvm-svn: 94240 | |||||
* | add a new DwarfPrinter::EmitEncodingByte method which handles | Chris Lattner | 2010-01-22 | 4 | -66/+59 | |
| | | | | | | | | | | | | | | pretty printing encoding comments and eliminates redundancy on the client side. We now get pretty dwarf like this again: .byte 255 ## @LPStart Encoding = omit .byte 0 ## @TType Encoding = absptr .byte 0x28 ## @TType base offset .byte 3 ## Call site Encoding = udata4 .byte 0x1a ## Call site table size ... llvm-svn: 94239 | |||||
* | rename the dwarf class to DwarfPrinter. This matches the filename | Chris Lattner | 2010-01-22 | 8 | -50/+52 | |
| | | | | | | and much more accurately describes what it is all about. llvm-svn: 94233 | |||||
* | fix indentation | Chris Lattner | 2010-01-22 | 1 | -128/+117 | |
| | | | | llvm-svn: 94232 | |||||
* | inline away the trivial AsmPrinter::EOL() method. | Chris Lattner | 2010-01-22 | 7 | -47/+35 | |
| | | | | llvm-svn: 94230 | |||||
* | inline AsmPrinter::PrintHex into its two trivial callers. | Chris Lattner | 2010-01-22 | 1 | -9/+4 | |
| | | | | llvm-svn: 94228 | |||||
* | change this to be a static function instead of a method on asmprinter. | Chris Lattner | 2010-01-22 | 1 | -66/+68 | |
| | | | | llvm-svn: 94227 | |||||
* | make the loop comment printer print out a much better structured | Chris Lattner | 2010-01-22 | 1 | -15/+23 | |
| | | | | | | | | | | | | | output. An example: .align 4, 0x90 LBB1_5: ## %while.cond3 ## Parent Loop BB1_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB1_8 Depth 3 ## Child Loop BB1_6 Depth 3 llvm-svn: 94225 | |||||
* | For blocks that are not loop headers, just print their loop depth and header BB. | Chris Lattner | 2010-01-22 | 1 | -13/+16 | |
| | | | | | | | | | | | | | | | | | | | | | | For loop headers, print Inner loop along with the other stuff so it doesn't take an extra line. We now get stuff like this: LBB1_4: ## %land.end ## in Loop: Header=BB1_1 Depth=1 notb %al testb $1, %al jne LBB1_8 and: LBB1_6: ## %while.cond7 ## Inner Loop Header: Depth=3 ## Inside Loop BB1_5 Depth 2 ## Inside Loop BB1_1 Depth 1 which still isn't great for loop headers, but is much less verbose. llvm-svn: 94221 | |||||
* | reenable the label loop comments and switch them to use the formatted | Chris Lattner | 2010-01-22 | 1 | -67/+40 | |
| | | | | | | | comment emission stuff. I'm going to rewrite this though because the current output doesn't make sense. llvm-svn: 94215 | |||||
* | Convert some more random-comment-printing stuff to use | Chris Lattner | 2010-01-22 | 1 | -33/+30 | |
| | | | | | | | AddComment and GetCommentOS. Add a blank line between globals (even in non-verbose mode) to make the assembly more readable. llvm-svn: 94202 | |||||
* | add a new MCAsmStreamer::GetCommentOS method to simplify stuff | Chris Lattner | 2010-01-22 | 1 | -6/+2 | |
| | | | | | | that doesn't want to use twines. llvm-svn: 94199 | |||||
* | rename addComment -> AddComment for consistency. | Chris Lattner | 2010-01-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 94190 | |||||
* | Revert r94066, which was the patch which added a Verifier pass after | Dan Gohman | 2010-01-22 | 1 | -4/+0 | |
| | | | | | | | LoopStrengthReduce, as it's causing too much trouble (even with the old LoopStrengthReduce code). llvm-svn: 94172 | |||||
* | Add the ability for MCStreamer to emit comments on the same line as directives. | Chris Lattner | 2010-01-22 | 1 | -2/+5 | |
| | | | | | | | | | | | | Switch over the asm-verbose comment for double values to use it. We now get: _x: .long 343597384 ## double 1.231200e+02 .long 1079953326 For example, note that the comment is on the same line as the .long. Woo. llvm-svn: 94166 | |||||
* | pass "-fasm-verbose" into createAsmStreamer. | Chris Lattner | 2010-01-22 | 1 | -6/+12 | |
| | | | | llvm-svn: 94165 | |||||
* | Stop building RTTI information for *most* llvm libraries. Notable | Chris Lattner | 2010-01-22 | 3 | -3/+6 | |
| | | | | | | | | | | | missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. llvm-svn: 94164 | |||||
* | Teach pre-regalloc scheduler to schedule loads from nearby addresses. It may ↵ | Evan Cheng | 2010-01-22 | 2 | -0/+134 | |
| | | | | | | improve cache locality. This is controlled by -cluster-loads for now. llvm-svn: 94148 | |||||
* | Trim unneeded includes. | Evan Cheng | 2010-01-21 | 3 | -3/+0 | |
| | | | | llvm-svn: 94105 | |||||
* | back this out for now. Growing Function is not good. | Jim Grosbach | 2010-01-21 | 4 | -20/+2 | |
| | | | | llvm-svn: 94097 | |||||
* | Run the verifier after LSR, to help catch use-before-def errors before | Dan Gohman | 2010-01-21 | 1 | -0/+4 | |
| | | | | | | they reach codegen. llvm-svn: 94066 | |||||
* | Make sure that landing pad entries in the EH call site table are in the proper | Jim Grosbach | 2010-01-21 | 4 | -2/+20 | |
| | | | | | | order for SjLj style exception handling. llvm-svn: 94055 | |||||
* | SjLj EH introduces can introduce an additional edge to a landing pad and pad | Jim Grosbach | 2010-01-20 | 1 | -0/+13 | |
| | | | | | | normalization needs to take this into account. llvm-svn: 94046 | |||||
* | make findDebugLoc a class method | Dale Johannesen | 2010-01-20 | 1 | -9/+11 | |
| | | | | llvm-svn: 94032 | |||||
* | When XDEBUG is enabled, check for SelectionDAG cycles at some key | David Greene | 2010-01-20 | 1 | -1/+35 | |
| | | | | | | | points. This will help us find future problems like the one described in PR6019. llvm-svn: 94019 | |||||
* | don't send null pointers through the constantexpr codepath unneededly. | Chris Lattner | 2010-01-20 | 1 | -0/+6 | |
| | | | | llvm-svn: 94010 | |||||
* | eliminate some uses of AsmPrinter::EmitIntXXX | Chris Lattner | 2010-01-20 | 3 | -20/+19 | |
| | | | | llvm-svn: 93996 | |||||
* | inline and radically simplify printDataDirective. It will eventually | Chris Lattner | 2010-01-20 | 1 | -45/+18 | |
| | | | | | | go completely away. llvm-svn: 93994 | |||||
* | emit basic block labels with mcstreamer. | Chris Lattner | 2010-01-20 | 1 | -8/+4 | |
| | | | | llvm-svn: 93993 | |||||
* | emit integer and fp zeros as (e.g.) .byte 0 instead of .space 1, | Chris Lattner | 2010-01-20 | 1 | -15/+12 | |
| | | | | | | for tidiness. llvm-svn: 93992 | |||||
* | signficant cleanups to EmitGlobalConstant (including streamerization | Chris Lattner | 2010-01-20 | 1 | -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 | |||||
* | switch ConstantFP emission to use MCStreamer, significantly | Chris Lattner | 2010-01-20 | 1 | -34/+18 | |
| | | | | | | simplifying the code. llvm-svn: 93988 | |||||
* | make mcasmstreamer handle expanding 8 byte integer constants to | Chris Lattner | 2010-01-20 | 1 | -18/+4 | |
| | | | | | | | 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 Lattner | 2010-01-20 | 1 | -1/+2 | |
| | | | | llvm-svn: 93986 | |||||
* | If a instruction belongs to another function (and not current function) as ↵ | Devang Patel | 2010-01-20 | 1 | -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 Greene | 2010-01-20 | 1 | -0/+12 | |
| | | | | llvm-svn: 93960 | |||||
* | Move findDebugLoc somewhere more central. Fix | Dale Johannesen | 2010-01-20 | 1 | -0/+17 | |
| | | | | | | | 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 code | Dan Gohman | 2010-01-19 | 1 | -0/+20 | |
| | | | | | | that SCEVExpander can produce when running on behalf of LSR. llvm-svn: 93949 | |||||
* | simplify the rest of fp constant printing. | Chris Lattner | 2010-01-19 | 1 | -108/+34 | |
| | | | | llvm-svn: 93929 | |||||
* | simplify the code for printing x86 long double, don't do work | Chris Lattner | 2010-01-19 | 1 | -75/+22 | |
| | | | | | | for -fverbose-asm unless it's on. llvm-svn: 93926 | |||||
* | Identify predicate and optional-def operands when printing machine | Jakob Stoklund Olesen | 2010-01-19 | 1 | -0/+7 | |
| | | | | | | instructions. llvm-svn: 93925 |