- Jan 27, 2010
-
-
Evan Cheng authored
Target independent isel should always pass along the "tail call" property. Change target hook LowerCall's parameter "isTailCall" into a refernce. If the target decides it's impossible to honor the tail call request, it should set isTailCall to false to make target independent isel happy. llvm-svn: 94626
-
Evan Cheng authored
llvm-svn: 94625
-
Evan Cheng authored
llvm-svn: 94617
-
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
llvm-svn: 94612
-
Evan Cheng authored
llvm-svn: 94610
-
- Jan 26, 2010
-
-
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
-
Evan Cheng authored
llvm-svn: 94583
-
Evan Cheng authored
llvm-svn: 94570
-
Dan Gohman authored
llvm-svn: 94560
-
Dan Gohman authored
llvm-svn: 94558
-
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
EK_LabelDifference32 kind and the target has .set support. Simplify X86AsmPrinter::printPICJumpTableSetLabel to make use of recent helpers. llvm-svn: 94518
-
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
-
Chris Lattner authored
the AsmPrinter::GetMBBSymbol. llvm-svn: 94515
-
Chris Lattner authored
AsmPrinter::SetupMachineFunction sets it. Note that systemz and msp430 didn't. Yay for reduced inconsistency! :) llvm-svn: 94510
-
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
-
Daniel Dunbar authored
llvm-svn: 94502
-
Evan Cheng authored
llvm-svn: 94490
-
Dale Johannesen authored
llvm-svn: 94489
-
Sean Callanan authored
TargetAsmLexer. llvm-svn: 94482
-
Dale Johannesen authored
dbg.declare's we currently generate go through both register allocators without perturbing the results. llvm-svn: 94480
-
Sean Callanan authored
llvm-svn: 94479
-
Dale Johannesen authored
llvm-svn: 94477
-
Chris Lattner authored
entries with @GOTOFF whih is EK_GPRel32BlockAddress. llvm-svn: 94474
-
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
-
Sean Callanan authored
TargetAsmLexer. Dialect-specific lexing code will be placed in the functions LexTokenATT() and LexTokenIntel(). llvm-svn: 94456
-
Chris Lattner authored
llvm-svn: 94449
-
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
even on x86-32/elf which uses a GOT. llvm-svn: 94439
-
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
Previously we would just silently miscompile code that used aligned common's, now at least you'll get a build error. tiger-ppc already triggered the build error because it didn't have a version of this logic. llvm-svn: 94412
-
- Jan 24, 2010
-
-
Chris Lattner authored
llvm-svn: 94378
-
Chris Lattner authored
movw $8, (_cost_table_-L97$pb)+66(%eax) After the parens, we could still have a binop. llvm-svn: 94345
-
Mon P Wang authored
the alignment allows. Fixed a bug where we didn't use a vector load/store for PR5626. llvm-svn: 94338
-
- Jan 23, 2010
-
-
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
-