- 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
-
Chris Lattner authored
llvm-svn: 94436
-
Chris Lattner authored
llvm-svn: 94417
-
Chris Lattner authored
mcstreamer. llvm-svn: 94416
-
- Jan 24, 2010
-
-
Chris Lattner authored
llvm-svn: 94378
-
Chris Lattner authored
llvm-svn: 94370
-
Chris Lattner authored
This fixes FrontendObjC/2009-11-30-Objc-ID.m llvm-svn: 94369
-
- Jan 23, 2010
-
-
Chris Lattner authored
llvm-svn: 94299
-
Chris Lattner authored
a .section. Switch to it with SwitchSection. However, I think that this directive should be safe on any ELF target. If so, we should hoist it up out of the X86 and SystemZ targets. llvm-svn: 94298
-
Chris Lattner authored
llvm-svn: 94295
-
Chris Lattner authored
into a new MCDirectives.h file. llvm-svn: 94294
-
Chris Lattner authored
to MCExpr then emit them through MCStreamer with EmitValue. I think all global variable initializers are now going through mcstreamer. llvm-svn: 94293
-
Chris Lattner authored
llvm-svn: 94290
-
Chris Lattner authored
and some .weak directives. llvm-svn: 94284
-
Chris Lattner authored
llvm-svn: 94282
-
Chris Lattner authored
be careful to add a \0 at the end though, because EmitString didn't do this. llvm-svn: 94277
-