summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/EmitAssembly.cpp
Commit message (Collapse)AuthorAgeFilesLines
* * Don't access TargetData directlyChris Lattner2002-12-281-8/+10
| | | | | | * Changes because frame info is not in MachineFunction directly anymore llvm-svn: 5171
* Fix misleading indentationChris Lattner2002-11-171-3/+2
| | | | llvm-svn: 4730
* Remove a nasty little semi-colon someone introduced whichVikram S. Adve2002-11-061-1/+1
| | | | | | prevented any machine instrs from being printed! llvm-svn: 4557
* In getID(), don't call getValidSymbolName to mangle external names!Vikram S. Adve2002-10-301-4/+7
| | | | llvm-svn: 4451
* *** empty log message ***Chris Lattner2002-10-291-2/+2
| | | | llvm-svn: 4390
* Rewrote uses of deprecated `MachineFunction::get(BasicBlock *BB)'.Misha Brukman2002-10-281-9/+7
| | | | llvm-svn: 4352
* Rename the redundant MachineOperand::getOperandType() to ↵Chris Lattner2002-10-281-1/+1
| | | | | | MachineOperand::getType() llvm-svn: 4331
* *** empty log message ***Chris Lattner2002-10-281-1/+0
| | | | llvm-svn: 4323
* Rename MachineCodeForBasicBlock to MachineBasicBlockChris Lattner2002-10-281-4/+4
| | | | llvm-svn: 4318
* Changed `MachineCodeForMethod' to `MachineFunction'.Misha Brukman2002-10-281-2/+2
| | | | llvm-svn: 4301
* Make sure to escape \'s when they are outputChris Lattner2002-10-151-0/+2
| | | | llvm-svn: 4179
* Allow emission of names that start with an underscore. This is needed toChris Lattner2002-10-141-14/+10
| | | | | | | | | interface with code that uses symbols in the ansi-c protected namespace. In most cases this comes from system header files, such as stdio.h. In particular, without this change, a reference to the __iob symbol is mangled into ll_iob, which is not resolved by libc. llvm-svn: 4165
* Several major fixes, particularly in emitting constant aggregates:Vikram S. Adve2002-10-131-59/+104
| | | | | | | | | | | | (1) Padding bytes between structure fields (for alignment) were never being emitted into the constant pool so the layout did not match! (2) In printing constants, structures containing structures or arrays were never handled. (3) Support new model for external/uninitialized/initialized globals. Uninitialized globals are no longer emitted since they are external. Initialized globals may go either in .bss or in .data. llvm-svn: 4134
* Don't print out global names unnecesssarily. Also, expose passVikram S. Adve2002-09-161-3/+4
| | | | | | constructors so passes can be inserted by TargetMachine.cpp. llvm-svn: 3742
* Again, including Module makes Function unnecessary.Misha Brukman2002-09-141-2/+0
| | | | llvm-svn: 3714
* -- Bug fix: use byte offsets not typed offsets in output assembly!Vikram S. Adve2002-09-051-19/+24
| | | | | | | -- Add support for ConstantExpr constants (only cast and add operators so far) -- Avoid generating label Bbss.bss, which sometimes came out twice. llvm-svn: 3578
* Change code to not use the copyOperands method added to User. It's nowChris Lattner2002-08-221-7/+9
| | | | | | more efficient to boot. llvm-svn: 3453
* Add AsmPrinter::ConstantExprToString, which writes out a ConstantExprVikram S. Adve2002-08-221-1/+74
| | | | | | as an expression. llvm-svn: 3442
* This case JUST handles constantpointer nulls, not all pointers.Chris Lattner2002-08-201-3/+1
| | | | llvm-svn: 3402
* Merge three loops into one.Chris Lattner2002-08-071-23/+18
| | | | llvm-svn: 3259
* *** empty log message ***Chris Lattner2002-07-241-6/+6
| | | | llvm-svn: 3056
* * Make global variables with external linkage get emitted correctlyChris Lattner2002-07-161-13/+14
| | | | | | | * Do NOT add a prefix to global variables that are external * Add newline after emitting a constpointerref llvm-svn: 2925
* Add support to print %hh, %hm, %lm, or %lo in an operand field.Vikram S. Adve2002-07-101-14/+30
| | | | llvm-svn: 2857
* Added support for printing constant global references toVikram S. Adve2002-07-091-4/+10
| | | | | | assembly. llvm-svn: 2842
* BA no longer has the unused CC operand.Vikram S. Adve2002-07-081-2/+3
| | | | llvm-svn: 2837
* MEGAPATCH checkin.Chris Lattner2002-06-251-32/+32
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2778
* Fix Constness problemsChris Lattner2002-06-051-13/+13
| | | | llvm-svn: 2761
* Numerous bug fixes:Vikram S. Adve2002-05-191-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | -- correct sign extensions for integer casts and for shift-by-constant instructions generated for integer multiply -- passing FP arguments to functions with more than 6 arguments -- passing FP arguments to varargs functions -- passing FP arguments to functions with no prototypes -- incorrect stack frame size when padding a section -- folding getelementptr operations with mixed array and struct indexes -- use uint64_t instead of uint for constant offsets in mem operands -- incorrect coloring for CC registers (both int and FP): interferences were being completely ignored for int CC and were considered but no spills were marked for fp CC! Also some code improvements: -- better interface to generating machine instr for common cases (many places still need to be updated to use this interface) -- annotations on MachineInstr to communicate information from one codegen phase to another (now used to pass information about CALL/JMPLCALL operands from selection to register allocation) -- all sizes and offests in class TargetData are uint64_t instead of uint llvm-svn: 2640
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-291-2/+0
| | | | llvm-svn: 2397
* Add new optional getPassName() virtual function that a Pass can overrideChris Lattner2002-04-291-0/+6
| | | | | | to make debugging output a lot nicer. llvm-svn: 2395
* Tighten up the AnalysisUsage of lots of passes, primarily to correctly ↵Chris Lattner2002-04-281-1/+9
| | | | | | indicate whether or not they invalidate the CFGA llvm-svn: 2386
* Add #include that was removed from TargetMachine.hChris Lattner2002-04-281-0/+1
| | | | llvm-svn: 2381
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-5/+5
| | | | llvm-svn: 2378
* Simplify codeChris Lattner2002-04-281-15/+5
| | | | | | Remove unneccesary getID variant for module's llvm-svn: 2353
* * Rename MethodPass class to FunctionPassChris Lattner2002-04-271-7/+7
| | | | | | | | | | | | | | | - Rename runOnMethod to runOnFunction * Transform getAnalysisUsageInfo into getAnalysisUsage - Method is now const - It now takes one AnalysisUsage object to fill in instead of 3 vectors to fill in - Pass's now specify which other passes they _preserve_ not which ones they modify (be conservative!) - A pass can specify that it preserves all analyses (because it never modifies the underlying program) * s/Method/Function/g in other random places as well llvm-svn: 2333
* * getAsString requires that the input array is string compatible, soChris Lattner2002-04-181-33/+32
| | | | | | | assert it. * Use WriteAsOperand instead of getStringValue for constants llvm-svn: 2296
* Handle the FP format problem, where outputed FP constants were not preciseChris Lattner2002-04-111-7/+24
| | | | | | enough. This fixes compilation of the health benchmark. llvm-svn: 2228
* Use new higher level isFloatingPoint() functionChris Lattner2002-04-091-1/+1
| | | | llvm-svn: 2191
* * Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.hChris Lattner2002-04-071-4/+4
| | | | | | | because the slot calculator is already part of the VMCore library. * Rename incorporateMethod and purgeMethod to *Function llvm-svn: 2154
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-35/+34
| | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144
* Minor cleanup in printing constants. I think this included a bugVikram S. Adve2002-03-311-32/+14
| | | | | | | fix related to putting a read-write variable in a read-only section, but I'm not sure now. llvm-svn: 2073
* Handling of global names was severely broken when converting to 2 passes.Vikram S. Adve2002-03-181-28/+61
| | | | | | | Different labels were generated for the same name in different passes. Use an annotation to hold a fixed table of names. llvm-svn: 1891
* Fix include error.Vikram S. Adve2002-03-031-1/+1
| | | | llvm-svn: 1819
* Clean up std namespace issuesChris Lattner2002-02-241-1/+3
| | | | | | Silence warning llvm-svn: 1790
* EmitAssembly doesn't need an UltraSparc, it can do with any TargetMachineChris Lattner2002-02-041-4/+4
| | | | llvm-svn: 1680
* Convert assembly emission over to a two pass approach.Chris Lattner2002-02-031-172/+217
| | | | llvm-svn: 1662
* * prune #includesChris Lattner2002-02-031-25/+18
| | | | | | * Implement permethod output of machine code to assembly llvm-svn: 1652
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-34/+34
| | | | llvm-svn: 1503
* Remove unsized array supportChris Lattner2001-12-141-8/+0
| | | | llvm-svn: 1461
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-041-2/+2
| | | | | | | Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() llvm-svn: 1408
OpenPOWER on IntegriCloud