summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* don't emit \n's at the start of X86AsmPrinter::runOnMachineFunction,Chris Lattner2010-02-032-1/+2
| | | | | | .o files don't like that. llvm-svn: 95187
* privatize a bunch of methods and move \n printing into them.Chris Lattner2010-02-031-8/+6
| | | | llvm-svn: 95186
* rename printMachineInstruction -> EmitInstructionChris Lattner2010-02-032-8/+3
| | | | llvm-svn: 95184
* Reapply 95050 with a tweak to check the register class.Dale Johannesen2010-02-031-0/+16
| | | | llvm-svn: 95183
* print instructions through the mcstreamer.Chris Lattner2010-02-031-13/+6
| | | | llvm-svn: 95181
* emit instructions through the streamer.Chris Lattner2010-02-031-2/+1
| | | | llvm-svn: 95180
* Finally eliminate printMCInst and send instructions throughChris Lattner2010-02-033-17/+4
| | | | | | | | | | | | | | | | | | | | | | | the streamer. Demo: $ cat t.ll define i32 @test() nounwind { ret i32 42 } $ llc t.ll -o - ... _test: movl $42, %eax ret $ llc t.ll -o t.o -filetype=obj $ otool -tv t.o t.o: (__TEXT,__text) section _test: 00000000 movl $0x0000002a,%eax 00000005 ret llvm-svn: 95179
* rejigger the world so that EmitInstruction prints the \n atChris Lattner2010-02-0312-22/+37
| | | | | | | | the end of the instruction instead of expecting the caller to do it. This currently causes the asm-verbose instruction comments to be on the next line. llvm-svn: 95178
* sink handling of target-independent machine instrs (otherChris Lattner2010-02-038-53/+19
| | | | | | | | than DEBUG_VALUE :( ) into the target indep AsmPrinter.cpp file. This allows elimination of the NO_ASM_WRITER_BOILERPLATE hack among other things. llvm-svn: 95177
* Print FPImm a less kludgy way; APFloat.toString seemsDale Johannesen2010-02-031-6/+3
| | | | | | to have some problems anyway. llvm-svn: 95171
* Fix some comment typos.Bob Wilson2010-02-031-3/+3
| | | | llvm-svn: 95170
* pass an instprinter into the AsmPrinter if it is available.Chris Lattner2010-02-031-3/+7
| | | | llvm-svn: 95168
* make any use of the "O" stream in asmprinter print toChris Lattner2010-02-031-1/+10
| | | | | | | | | stderr if in filetype=obj mode. This is a hack, and will live until dwarf emission and other random stuff that is not yet going through MCStreamer is upgraded. It only impacts filetype=obj mode. llvm-svn: 95166
* Recommit this, looks like it wasn't the cause.Eric Christopher2010-02-032-70/+100
| | | | llvm-svn: 95165
* ByVal frame object size should be that of the byval argument, not the size ↵Evan Cheng2010-02-021-7/+11
| | | | | | of the type which is just a pointer. This is not known to break stuff but is wrong nevertheless. llvm-svn: 95163
* Hook up -filetype=obj through the MachO streamer. Here's a demo:Chris Lattner2010-02-021-6/+13
| | | | | | | | | | | | | $ cat t.ll @g = global i32 42 $ llc t.ll -o t.o -filetype=obj $ nm t.o 00000000 D _g There is still a ton of work left. Instructions are not being encoded yet apparently. llvm-svn: 95162
* As of r79039, we still try to eliminate the frame pointer on leaf functions,Jim Grosbach2010-02-021-1/+1
| | | | | | even when -disable-fp-elim is specified. llvm-svn: 95161
* Revert 95130.Evan Cheng2010-02-0225-30/+34
| | | | llvm-svn: 95160
* Accept floating point immediates in DEBUG_VALUE.Dale Johannesen2010-02-021-1/+11
| | | | llvm-svn: 95159
* AsmParser/X86: Add temporary hack to allow parsing "sal". Eventually we needDaniel Dunbar2010-02-021-2/+8
| | | | | | | some mechanism for specifying alternative syntaxes, but I'm not sure what form that should take yet. llvm-svn: 95158
* use OwningPtr and factor code better.Chris Lattner2010-02-021-19/+21
| | | | llvm-svn: 95156
* refactor code so that LLVMTargetMachine creates the asmstreamer and Chris Lattner2010-02-0216-46/+76
| | | | | | | mccontext instead of having AsmPrinter do it. This allows other types of MCStreamer's to be passed in. llvm-svn: 95155
* Hopefully temporarily revert this.Eric Christopher2010-02-022-100/+70
| | | | llvm-svn: 95154
* simplify getVerboseAsmChris Lattner2010-02-021-6/+6
| | | | llvm-svn: 95153
* move handling of asm-verbose out of AsmPrinter.cpp into ↵Chris Lattner2010-02-022-17/+16
| | | | | | LLVMTargetMachine.cpp with the rest of the command line options. llvm-svn: 95152
* remove dead #include, stupid symlinks.Chris Lattner2010-02-021-1/+0
| | | | llvm-svn: 95150
* Remove a bunch of stuff around the edges of the ELF writer.Chris Lattner2010-02-022-11/+1
| | | | | | | Now the only use of the ELF writer is the JIT, which won't be easy to fix in the short term. :( :( llvm-svn: 95148
* Reformat my last patch slightly.Eric Christopher2010-02-021-4/+4
| | | | llvm-svn: 95147
* tidy some targets.Chris Lattner2010-02-023-6/+0
| | | | llvm-svn: 95146
* Re-add strcmp and known size object size checking optimization.Eric Christopher2010-02-022-12/+41
| | | | | | Passed bootstrap and nightly test run here. llvm-svn: 95145
* remove dead code.Chris Lattner2010-02-024-43/+0
| | | | llvm-svn: 95144
* detemplatize the ppc code emitter.Chris Lattner2010-02-021-37/+21
| | | | llvm-svn: 95142
* remove dead code.Chris Lattner2010-02-024-73/+0
| | | | llvm-svn: 95141
* add a definition for ID.Chris Lattner2010-02-021-0/+3
| | | | llvm-svn: 95140
* detemplatize ARM code emitter.Chris Lattner2010-02-021-111/+57
| | | | llvm-svn: 95138
* MCAsmParser/X86: Represent absolute memory operands as CodeGen does, with scaleDaniel Dunbar2010-02-021-2/+2
| | | | | | == 1. llvm-svn: 95137
* MCCodeEmitter/X86: Handle tied registers better when converting MCInst ->Daniel Dunbar2010-02-021-6/+18
| | | | | | | MCMachineInstr. This also fixes handling of tied registers for MRMSrcMem instructions. llvm-svn: 95136
* MC/Mach-O: Set SOME_INSTRUCTIONS bit for sections.Daniel Dunbar2010-02-022-4/+9
| | | | llvm-svn: 95135
* remove dead code.Chris Lattner2010-02-024-43/+2
| | | | llvm-svn: 95134
* detemplatize alpha code emission, it is now JIT specific.Chris Lattner2010-02-021-32/+13
| | | | llvm-svn: 95133
* eliminate all the dead addSimpleCodeEmitter implementations.Chris Lattner2010-02-0210-155/+0
| | | | | | | eliminate random "code emitter" stuff in Alpha, except for the JIT path. Next up, remove the template cruft. llvm-svn: 95131
* Pass callsite return type to TargetLowering::LowerCall and use that to check ↵Evan Cheng2010-02-0225-34/+30
| | | | | | sibcall eligibility. llvm-svn: 95130
* eliminate FileModel::Model, just use CodeGenFileType. The clientChris Lattner2010-02-024-13/+10
| | | | | | | of the code generator shouldn't care what object format a target uses. llvm-svn: 95124
* remove the remnants of TargetMachOWriterInfo.Chris Lattner2010-02-022-26/+0
| | | | llvm-svn: 95114
* Add a new top-level MachO.h file for manifest constants, fixing Chris Lattner2010-02-021-3/+3
| | | | | | a layering violation from MC -> Target. llvm-svn: 95113
* Added t2BFI (Bitfield Insert) entry for disassembler, with blank pattern field.Johnny Chen2010-02-021-1/+10
| | | | llvm-svn: 95112
* remove PPCMachOWriterInfo.Chris Lattner2010-02-025-214/+1
| | | | llvm-svn: 95111
* eliminate all forms of addPassesToEmitMachineCode exceptChris Lattner2010-02-021-72/+8
| | | | | | | | | the one used by the JIT. Remove all forms of addPassesToEmitFileFinish except the one used by the static code generator. Inline the remaining version of addPassesToEmitFileFinish into its only caller. llvm-svn: 95109
* Test revert 95050; there's a good chance it's causingDale Johannesen2010-02-021-14/+0
| | | | | | buildbot failure. llvm-svn: 95103
* Inline addAssemblyEmitter into its one real caller and deleteChris Lattner2010-02-021-31/+7
| | | | | | | the -print-emitted-asm option. The JIT shouldn't have to pull in the asmprinter. llvm-svn: 95100
OpenPOWER on IntegriCloud