- Jul 20, 2010
-
-
Chris Lattner authored
of AsmPrinter and InstLowering into libx86 and out of the asmprinter subdirectory. Now X86/AsmPrinter just depends on MC stuff, not all of codegen and LLVM IR. llvm-svn: 108782
-
- May 11, 2010
-
-
Duncan Sands authored
to LLVM_LIBRARY_VISIBILITY and introduce LLVM_GLOBAL_VISIBILITY, which is the opposite, for future use by dragonegg. llvm-svn: 103495
-
- Apr 28, 2010
-
-
Devang Patel authored
llvm-svn: 102486
-
- Apr 05, 2010
-
-
Chris Lattner authored
llvm-svn: 100377
-
Chris Lattner authored
llvm-svn: 100376
-
- Apr 04, 2010
-
-
Chris Lattner authored
"asm printering" happens through MCStreamer. This also Streamerizes PIC16 debug info, which escaped my attention. This removes a leak from LLVMTargetMachine of the 'legacy' output stream. llvm-svn: 100327
-
Chris Lattner authored
llvm-svn: 100315
-
Chris Lattner authored
raw_ostream to print to. llvm-svn: 100313
-
Chris Lattner authored
llvm-svn: 100311
-
- Mar 13, 2010
-
-
Chris Lattner authored
and passing off ownership to AsmPrinter. Now MachineModuleInfo creates it and owns it by value. This allows us to use MCSymbols more consistently throughout the rest of the code generator, and simplifies a bit of code. This also allows MachineFunction to keep an MCContext reference handy, and cleans up the TargetRegistry interfaces for AsmPrinters. llvm-svn: 98450
-
Chris Lattner authored
targets. This is a temporary hack for the .o file writer that Daniel wants :) llvm-svn: 98413
-
- Mar 12, 2010
-
-
Chris Lattner authored
it to be non-virtual and soon disappear. llvm-svn: 98387
-
- Feb 12, 2010
-
-
Anton Korobeynikov authored
This should fix alot of problems we saw so far, e.g. PRs 5851 & 2936 llvm-svn: 95980
-
- Feb 03, 2010
-
-
Chris Lattner authored
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
-
Chris Lattner authored
mccontext instead of having AsmPrinter do it. This allows other types of MCStreamer's to be passed in. llvm-svn: 95155
-
- Jan 28, 2010
-
-
Chris Lattner authored
Move the X86 implementation of function body emission up to AsmPrinter::EmitFunctionBody, which works by calling the virtual EmitInstruction method. llvm-svn: 94716
-
- Jan 27, 2010
-
-
Chris Lattner authored
logic up from X86 into the common code. The other targets will hopefully start using this soon. llvm-svn: 94614
-
- Jan 26, 2010
-
-
Chris Lattner authored
which is more convenient, and change getPICJumpTableRelocBaseExpr to take a MachineFunction to match. Next, move the X86 code that create a PICBase symbol to X86TargetLowering::getPICBaseSymbol from X86MCInstLower::GetPICBaseSymbol, which was an asmprinter specific library. This eliminates a 'gross hack', and allows us to implement X86ISelLowering::getPICJumpTableRelocBaseExpr which now calls it. This in turn allows us to eliminate the X86AsmPrinter::printPICJumpTableSetLabel method, which was the only overload of printPICJumpTableSetLabel. llvm-svn: 94526
-
Chris Lattner authored
jump table entry kind, instead of overloading AsmPrinter::printPICJumpTableEntry. This has a pretty horrible and inefficient FIXME around how @GOTOFF is currently smashed into the mcsymbol name, but otherwise this is much cleaner. llvm-svn: 94516
-
- Jan 25, 2010
-
-
Chris Lattner authored
rename it to avoid shadowing. llvm-svn: 94440
-
- Jan 19, 2010
-
-
Chris Lattner authored
doing global variable classification anymore) and hookized, sink almost all target targets global variable emission code into AsmPrinter and out of each target. Some notes: 1. PIC16 does completely custom and crazy stuff, so it is not changed. 2. XCore has some custom handling for extra directives. I'll look at it next. 3. This switches linux/ppc to use .globl instead of .global. If .globl is actually wrong, let me know and I'll fix it. 4. This makes linux/ppc get a lot of random cases right which were obviously wrong before, it is probably now a bit healthier. 5. Blackfin will probably start getting .comm and other things that it didn't before. If this is undesirable, it should explicitly opt out of these things by clearing the relevant fields of MCAsmInfo. This leads to a nice diffstat: 14 files changed, 127 insertions(+), 830 deletions(-) llvm-svn: 93858
-
- Sep 24, 2009
-
-
Chris Lattner authored
llvm-svn: 82716
-
- Sep 20, 2009
-
-
Chris Lattner authored
llvm-svn: 82394
-
Chris Lattner authored
llvm-svn: 82391
-
Chris Lattner authored
transcode from AT&T to intel syntax with "llvm-mc foo.s -output-asm-variant=1" llvm-svn: 82385
-
Chris Lattner authored
Make dllexport directives come out in determinstic order. llvm-svn: 82381
-
- Sep 18, 2009
-
-
Chris Lattner authored
getSymbolForDwarfGlobalReference is smart enough to know that it needs to register the stub it references with MachineModuleInfoMachO, so that it gets emitted at the end of the file. Move stub emission from X86ATTAsmPrinter::doFinalization to the new X86ATTAsmPrinter::EmitEndOfAsmFile asmprinter hook. The important thing here is that EmitEndOfAsmFile is called *after* the ehframes are emitted, so we get all the stubs. This allows us to remove a gross hack from the asmprinter where it would "just know" that it needed to output stubs for personality functions. Now this is all driven from a consistent interface. The testcase change is just reordering the expected output now that the stubs come out after the ehframe instead of before. This also unblocks other changes that Bill wants to make. llvm-svn: 82269
-
- Sep 16, 2009
-
-
Chris Lattner authored
and use MachineModuleInfoMachO instead. llvm-svn: 82022
-
Chris Lattner authored
llvm-svn: 82020
-
Chris Lattner authored
stuff common across all macho targets. llvm-svn: 82018
-
Chris Lattner authored
we have MCInstPrinter. llvm-svn: 82006
-
- Sep 13, 2009
-
-
Chris Lattner authored
class into its own X86ATTInstPrinter class. The inst printer now has just one dependence on the code generator (TRI). llvm-svn: 81703
-
- Sep 12, 2009
-
-
Chris Lattner authored
being embedded into X86ATTAsmPrinter). This still depends heavily on X86ATTAsmPrinter, but this is a step in the right direction. llvm-svn: 81627
-
Chris Lattner authored
operand printing crapola cannot be removed yet because it is used by the inline asm print stuff. llvm-svn: 81626
-
- Sep 11, 2009
-
-
Chris Lattner authored
llvm-svn: 81514
-
Chris Lattner authored
densemap instead of StringMap to match FnStubs. llvm-svn: 81513
-
Chris Lattner authored
more efficient SmallPtrSet<MCSymbol*>. This eliminates string craziness and fixes CodeGen/X86/darwin-quote.ll with the new asmprinter. Codegen is producing stubs in a nondeterminstic order, but it was doing this before anyway. llvm-svn: 81511
-
Chris Lattner authored
llvm-svn: 81502
-
- Sep 03, 2009
-
-
Chris Lattner authored
all global variable operand flag processing stuff is shared between different operand types. llvm-svn: 80886
-
Chris Lattner authored
from operand" logic. GlobalAddress still todo. llvm-svn: 80884
-