- Jan 28, 2010
-
-
Chris Lattner authored
llvm-svn: 94732
-
Jim Grosbach authored
This allows code gen and the exception table writer to cooperate to make sure landing pads are associated with the correct invoke locations. llvm-svn: 94726
-
Chris Lattner authored
runOnMachineFunction, and switch PPC to use EmitFunctionBody. The two ppc asmprinters now don't heave to define runOnMachineFunction. llvm-svn: 94722
-
Chris Lattner authored
"0" is nice and target independent. llvm-svn: 94718
-
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
-
Chris Lattner authored
Overload it in the ARM backend to do nothing, since is does insane constant pool emission. llvm-svn: 94708
-
Chris Lattner authored
constify EmitLinkage. llvm-svn: 94705
-
- Jan 27, 2010
-
-
Chris Lattner authored
which allows targets to override function entry label emission. Use it to convert linux/ppc to use EmitFunctionHeader(). llvm-svn: 94667
-
Chris Lattner authored
llvm-svn: 94624
-
Chris Lattner authored
change is that we now use ".linkonce discard" for global variables instead of ".linkonce samesize". These should be the same, just less strict. If anyone is interested in mcizing MCSection for COFF targets, this should be easy to fix. llvm-svn: 94623
-
Chris Lattner authored
llvm-svn: 94621
-
Chris Lattner authored
llvm-svn: 94620
-
Chris Lattner authored
llvm-svn: 94616
-
Chris Lattner authored
logic up from X86 into the common code. The other targets will hopefully start using this soon. llvm-svn: 94614
-
Chris Lattner authored
is constified. llvm-svn: 94613
-
- Jan 26, 2010
-
-
Chris Lattner authored
assignments. .set x, a-b is the same as: x = a-b llvm-svn: 94596
-
Devang Patel authored
llvm-svn: 94593
-
Devang Patel authored
llvm-svn: 94587
-
Chris Lattner authored
Default HasSetDirective to true, since most targets have it. The targets that claim to not have it probably do, or it is spelled differently. These include Blackfin, Mips, Alpha, and PIC16. All of these except pic16 are normal ELF targets, so they almost certainly have it. llvm-svn: 94585
-
Chris Lattner authored
that has it. llvm-svn: 94581
-
Chris Lattner authored
subsumed by TargetLowering::getJumpTableEncoding(). Change uses of it to be more specific. llvm-svn: 94529
-
Chris Lattner authored
inline it into its only caller, allowing us to simplify it and hoist bits out of the loop. llvm-svn: 94528
-
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
use it to implement the default TargetLowering::getPICJumpTableRelocBaseExpr llvm-svn: 94523
-
Chris Lattner authored
EK_LabelDifference32 kind and the target has .set support. Simplify X86AsmPrinter::printPICJumpTableSetLabel to make use of recent helpers. llvm-svn: 94518
-
Chris Lattner authored
make it private and non-virtual. It handles the non-pic case too, so just use it, simplifying EmitJumpTableInfo. llvm-svn: 94517
-
Chris Lattner authored
the AsmPrinter::GetMBBSymbol. llvm-svn: 94515
-
Chris Lattner authored
MachineFunctionAnalysis dole them out, instead of having AsmPrinter do both. Have the AsmPrinter::SetupMachineFunction method set the 'AsmPrinter::MF' variable. llvm-svn: 94509
-
Chris Lattner authored
jump table entries. llvm-svn: 94505
-
Chris Lattner authored
instead of magic variables. llvm-svn: 94500
-
Chris Lattner authored
1. MachineJumpTableInfo is now created lazily for a function the first time it actually makes a jump table instead of for every function. 2. The encoding of jump table entries is now described by the MachineJumpTableInfo::JTEntryKind enum. This enum is determined by the TLI::getJumpTableEncoding() hook, instead of by lots of code scattered throughout the compiler that "knows" that jump table entries are always 32-bits in pic mode (for example). 3. The size and alignment of jump table entries is now calculated based on their kind, instead of at machinefunction creation time. Future work includes using the EntryKind in more places in the compiler, eliminating other logic that "knows" the layout of jump tables in various situations. llvm-svn: 94470
-
- Jan 25, 2010
-
-
Chris Lattner authored
llvm-svn: 94464
-
Chris Lattner authored
llvm-svn: 94452
-
Chris Lattner authored
llvm-svn: 94450
-
Chris Lattner authored
llvm-svn: 94449
-
Chris Lattner authored
make it clear what it is, instead of how it is used. llvm-svn: 94448
-
Chris Lattner authored
and MCize the non-pic case. Now printPICJumpTableEntry really is just about printing PIC entries. llvm-svn: 94446
-
Chris Lattner authored
llvm-svn: 94445
-
Chris Lattner authored
rename it to avoid shadowing. llvm-svn: 94440
-
Chris Lattner authored
normal form of .file would fail if the filename had a weird character in it. llvm-svn: 94437
-