#
e468f88b |
| 13-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
rearrange MCContext ownership. Before LLVMTargetMachine created it and passing off ownership to AsmPrinter. Now MachineModuleInfo creates it and owns it by value. This allows us to use MCSymbols
rearrange MCContext ownership. Before LLVMTargetMachine created it 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
show more ...
|
#
6d3e92df |
| 11-Mar-2010 |
Richard Osborne <richard@xmos.com> |
Add a new jump table encoding to indicate jump tables entries are inside the function by the target at the point of use.
llvm-svn: 98255
|
#
ac2361a9 |
| 10-Mar-2010 |
Chris Lattner <sabre@nondot.org> |
set the temporary bit on MCSymbols correctly.
llvm-svn: 98124
|
#
7e477677 |
| 19-Feb-2010 |
Charles Davis <cdavis@mines.edu> |
Add support for the 'alignstack' attribute to the x86 backend. Fixes PR5254.
Also, FileCheck'ize a test.
llvm-svn: 96686
|
#
4a618827 |
| 10-Feb-2010 |
Dan Gohman <gohman@apple.com> |
Fix "the the" and similar typos.
llvm-svn: 95781
|
#
c07bd40b |
| 27-Jan-2010 |
Chandler Carruth <chandlerc@gmail.com> |
Silence GCC warnings with asserts turned off. No functionality change.
llvm-svn: 94673
|
#
8a785d7a |
| 26-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
Move getJTISymbol from MachineJumpTableInfo to MachineFunction, which is more convenient, and change getPICJumpTableRelocBaseExpr to take a MachineFunction to match.
Next, move the X86 code that cre
Move getJTISymbol from MachineJumpTableInfo to MachineFunction, 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
show more ...
|
#
273735bc |
| 26-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
add a new MachineJumpTableInfo::getJTISymbol method, use it to implement the default TargetLowering::getPICJumpTableRelocBaseExpr
llvm-svn: 94523
|
#
6715952c |
| 26-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
make MachineFunction keep track of its ID and make MachineFunctionAnalysis dole them out, instead of having AsmPrinter do both. Have the AsmPrinter::SetupMachineFunction method set the 'AsmPrinter:
make MachineFunction keep track of its ID and make MachineFunctionAnalysis dole them out, instead of having AsmPrinter do both. Have the AsmPrinter::SetupMachineFunction method set the 'AsmPrinter::MF' variable.
llvm-svn: 94509
show more ...
|
#
5fc4160e |
| 26-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
Add support for target-specific 32-bit custom-lowered jump table entries.
llvm-svn: 94505
|
#
b6db2c6b |
| 25-Jan-2010 |
Chris Lattner <sabre@nondot.org> |
Rearrange handling of jump tables. Highlights: 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 enc
Rearrange handling of jump tables. Highlights: 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
show more ...
|
#
1083b5fc |
| 19-Jan-2010 |
Devang Patel <dpatel@apple.com> |
Avoid including DebugInfo.h in AsmPrinter.h
llvm-svn: 93864
|
#
c0e17df3 |
| 16-Jan-2010 |
Devang Patel <dpatel@apple.com> |
Replace DebugLocTuple with DILocation.
llvm-svn: 93630
|
#
6671011c |
| 04-Jan-2010 |
David Greene <greened@obbligato.org> |
Change errs() to dbgs().
llvm-svn: 92544
|
#
a48f44d9 |
| 03-Dec-2009 |
Chris Lattner <sabre@nondot.org> |
improve portability to avoid conflicting with std::next in c++'0x. Patch by Howard Hinnant!
llvm-svn: 90365
|
#
dd7f2e79 |
| 30-Nov-2009 |
Tobias Grosser <grosser@fim.uni-passau.de> |
Remove ShortNames from getNodeLabel in DOTGraphTraits
llvm-svn: 90134
|
#
90d33403 |
| 30-Nov-2009 |
Tobias Grosser <grosser@fim.uni-passau.de> |
Instantiate DefaultDOTGraphTraits
llvm-svn: 90133
|
#
ae84426e |
| 14-Nov-2009 |
Jim Grosbach <grosbach@apple.com> |
Do not merge jump tables this early. Branch folding will do any necessary merges, and until then, it's useful to keep the tables separate for ease of manipulation.
llvm-svn: 88806
|
#
9c8609ea |
| 14-Nov-2009 |
Jim Grosbach <grosbach@apple.com> |
Add function to replace a destination MBB in a single jump table
llvm-svn: 88804
|
#
1fbe0544 |
| 12-Nov-2009 |
David Greene <greened@obbligato.org> |
Add a bool flag to StackObjects telling whether they reference spill slots. The AsmPrinter will use this information to determine whether to print a spill/reload comment.
Remove default argument va
Add a bool flag to StackObjects telling whether they reference spill slots. The AsmPrinter will use this information to determine whether to print a spill/reload comment.
Remove default argument values. It's too easy to pass a wrong argument value when multiple arguments have default values. Make everything explicit to trap bugs early.
Update all targets to adhere to the new interfaces..
llvm-svn: 87022
show more ...
|
#
34341e69 |
| 31-Oct-2009 |
Dan Gohman <gohman@apple.com> |
Make -print-machineinstrs more readable. - Be consistent when referring to MachineBasicBlocks: BB#0. - Be consistent when referring to virtual registers: %reg1024. - Be consistent when referring t
Make -print-machineinstrs more readable. - Be consistent when referring to MachineBasicBlocks: BB#0. - Be consistent when referring to virtual registers: %reg1024. - Be consistent when referring to unknown physical registers: %physreg10. - Be consistent when referring to known physical registers: %RAX - Be consistent when referring to register 0: %reg0 - Be consistent when printing alignments: align=16 - Print jump table contents. - Don't print host addresses, in general. - and various other cleanups.
llvm-svn: 85682
show more ...
|
#
97abba5b |
| 31-Oct-2009 |
Dan Gohman <gohman@apple.com> |
Fix 80-column violation.
llvm-svn: 85653
|
#
75d6a4af |
| 28-Oct-2009 |
Dan Gohman <gohman@apple.com> |
Allow constants of different types to share constant pool entries if they have compatible encodings.
llvm-svn: 85359
|
#
974e12b2 |
| 25-Oct-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Remove includes of Support/Compiler.h that are no longer needed after the VISIBILITY_HIDDEN removal.
llvm-svn: 85043
|
#
02d5f77d |
| 25-Oct-2009 |
Nick Lewycky <nicholas@mxc.ca> |
Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces. Chris claims we should never have visibility_hidden inside any .cpp file but that's still not true even after this commit
Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces. Chris claims we should never have visibility_hidden inside any .cpp file but that's still not true even after this commit.
llvm-svn: 85042
show more ...
|