summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move MachineMemOperand's constructor out of line, to avoid aDan Gohman2008-07-072-4/+12
| | | | | | #include dependency on Support/MathExtras.h in the header file. llvm-svn: 53200
* Simplify this use of BuildMI. This is also in preparation forDan Gohman2008-07-071-3/+1
| | | | | | pool-allocating MachineInstrs. llvm-svn: 53198
* Use of operator* is redundant and confusing here.Dan Gohman2008-07-071-1/+1
| | | | llvm-svn: 53197
* Minor const-correctness fixes.Dan Gohman2008-07-072-2/+2
| | | | llvm-svn: 53196
* Shrink MachineMemOperand by storing the alignment in log formDan Gohman2008-07-071-6/+7
| | | | | | and rearranging the fields. llvm-svn: 53195
* Assert that all MachineInstrs update PhysRegUseDefLists inDan Gohman2008-07-071-0/+3
| | | | | | their cleanup code. llvm-svn: 53194
* Fix two serious LSR bugs.Evan Cheng2008-07-072-37/+136
| | | | | | | 1. LSR runOnLoop is always returning false regardless if any transformation is made. 2. AddUsersIfInteresting can create new instructions that are added to DeadInsts. But there is a later early exit which prevents them from being freed. llvm-svn: 53193
* fixed 32-bit fp_to_sint patternBruno Cardoso Lopes2008-07-072-10/+14
| | | | llvm-svn: 53192
* Updated latest checker build.Ted Kremenek2008-07-071-1/+1
| | | | llvm-svn: 53191
* Make ilist noncopyable too.Dan Gohman2008-07-071-0/+6
| | | | llvm-svn: 53190
* Don't use std::advance just to increment or decrement by one.Dan Gohman2008-07-071-4/+2
| | | | llvm-svn: 53189
* Make BumpPtrAllocator noncopyable.Dan Gohman2008-07-071-0/+3
| | | | llvm-svn: 53188
* Add a space between * and /* to help simple-minded lexers.Dan Gohman2008-07-071-1/+1
| | | | llvm-svn: 53187
* In a report-XXXXX.html, make the title include the name of the file with the ↵Ted Kremenek2008-07-074-10/+20
| | | | | | | | bug. Patch by Jean-Daniel Dupas! http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002166.html llvm-svn: 53184
* Remove most of the uses of SDOperandPtr, usually replacing it with aDan Gohman2008-07-073-61/+96
| | | | | | | | | | | | | | simple const SDOperand*, which is what's usually needed. For AddNodeIDOperands, which is small, just duplicate the function to accept an SDUse*. For SelectionDAG::getNode - Add an overload that accepts SDUse* that copies the operands into a temporary SDOperand array, but also has special-case checks for 0 through 3 operands to avoid the copy in the common cases. llvm-svn: 53183
* Remove uses of "llvm/Support/Debug.h" from LLVM include files, whichDan Gohman2008-07-073-3/+2
| | | | | | all happened be unnecessary. llvm-svn: 53182
* Remove unnecessary static_casts.Dan Gohman2008-07-071-2/+2
| | | | llvm-svn: 53181
* Remove an unnecessary reinterpret_cast.Dan Gohman2008-07-071-1/+1
| | | | llvm-svn: 53180
* Add explicit keywords.Dan Gohman2008-07-0716-26/+26
| | | | llvm-svn: 53179
* Use empty() instead of size().Dan Gohman2008-07-071-1/+1
| | | | llvm-svn: 53178
* Make DenseMap's insert return a pair, to more closely resemble std::map.Dan Gohman2008-07-077-27/+39
| | | | llvm-svn: 53177
* Mark the "Bug Type" column as being initially sorted (display the sort ding) ↵Ted Kremenek2008-07-071-1/+1
| | | | | | so that users can readily see that the table can be sorted. llvm-svn: 53176
* Output html should have 'class=' before "sorttable_nosort".Ted Kremenek2008-07-071-2/+2
| | | | llvm-svn: 53175
* fix CheckForConstantInitializer() for Compound LiteralsNuno Lopes2008-07-073-3/+11
| | | | | | also fix the correspondent test (it was expecting more errors than it should. please confirm my fix is correct (at least gcc agrees with me) llvm-svn: 53174
* Updated clients of ImmutableMap::SlimFind to use ImmutableMap::lookup instead.Ted Kremenek2008-07-073-51/+41
| | | | llvm-svn: 53172
* Removed ImmutableMap::SlimFind and replaced it with ImmutableMap::lookup. ↵Ted Kremenek2008-07-071-5/+3
| | | | | | The new method does the same thing, except that it returns a pointer to the mapped data type, and not to an internal tree node. llvm-svn: 53171
* add x86 EDI register aliasNuno Lopes2008-07-071-0/+1
| | | | llvm-svn: 53170
* LegalizeSetCCOperands should legalize the result of ExpandLibCall. Patch by ↵Evan Cheng2008-07-071-1/+1
| | | | | | Richard Osborne. llvm-svn: 53169
* Do not emit a "missing -dealloc" warning if a class contains no ivars that ↵Ted Kremenek2008-07-071-3/+19
| | | | | | | | are pointers. This patch aims to address some of the concerns of PR 2517: http://llvm.org/bugs/show_bug.cgi?id=2517 llvm-svn: 53168
* Handle 'lshr' instruction with SCEVUDiv object.Nick Lewycky2008-07-071-2/+14
| | | | | | Comment the xor %x, -1 case. llvm-svn: 53167
* Prevent option name conflict.Bill Wendling2008-07-071-1/+1
| | | | llvm-svn: 53166
* LegalizeTypes soft-float support for stores of aDuncan Sands2008-07-073-2/+24
| | | | | | float value. llvm-svn: 53165
* Add new file to VS projects.Cedric Venet2008-07-062-0/+8
| | | | llvm-svn: 53160
* Add convenient helper for checking whether global is weak in linker senseAnton Korobeynikov2008-07-052-26/+20
| | | | | | having weak or linkonce or common or extweak LLVM linkage. llvm-svn: 53158
* Testcase for PR2463Anton Korobeynikov2008-07-052-0/+32
| | | | llvm-svn: 53157
* Override weak stuff during linking of aliases. This fixes PR2463.Anton Korobeynikov2008-07-051-8/+21
| | | | llvm-svn: 53156
* Testcase for PR2146Anton Korobeynikov2008-07-052-0/+27
| | | | llvm-svn: 53155
* Properly link alias and function decls. This fixes PR2146Anton Korobeynikov2008-07-051-8/+27
| | | | llvm-svn: 53154
* 80colNick Lewycky2008-07-051-1/+1
| | | | llvm-svn: 53153
* Fix missed optimization opportunity when analyzing cast of mul and select.Nick Lewycky2008-07-052-9/+43
| | | | llvm-svn: 53151
* Fixed generating incorrect aligned stores that I backout of r53031Mon P Wang2008-07-053-15/+23
| | | | | | | | that fixed problems in EmitStackConvert where the source and target type have different alignment by creating a stack slot with the max alignment of source and target type. llvm-svn: 53150
* move the linux predefined macro definition to the TargetInfo, where it ↵Nuno Lopes2008-07-052-5/+5
| | | | | | really belongs llvm-svn: 53149
* Several changes to Mips backend, experimental fp support being the mostBruno Cardoso Lopes2008-07-0517-443/+1247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | important. - Cleanup in the Subtarget info with addition of new features, not all support yet, but they allow the future inclusion of features easier. Among new features, we have : Arch family info (mips1, mips2, ...), ABI info (o32, eabi), 64-bit integer and float registers, allegrex vector FPU (VFPU), single float only support. - TargetMachine now detects allegrex core. - Added allegrex (Mips32r2) sext_inreg instructions. - *Added Float Point Instructions*, handling single float only, and aliased accesses for 32-bit FPUs. - Some cleanup in FP instruction formats and FP register classes. - Calling conventions improved to support mips 32-bit EABI. - Added Asm Printer support for fp cond codes. - Added support for sret copy to a return register. - EABI support added into LowerCALL and FORMAL_ARGS. - MipsFunctionInfo now keeps a virtual register per function to track the sret on function entry until function ret. - MipsInstrInfo FP support into methods (isMoveInstr, isLoadFromStackSlot, ...), FP cond codes mapping and initial FP Branch Analysis. - Two new Mips SDNode to handle fp branch and compare instructions : FPBrcond, FPCmp - MipsTargetLowering : handling different FP classes, Allegrex support, sret return copy, no homing location within EABI, non 32-bit stack objects arguments, and asm constraint for float. llvm-svn: 53146
* predefine the macro linux when compiled on a linux system. this fixes the ↵Nuno Lopes2008-07-051-0/+5
| | | | | | build of libtidy llvm-svn: 53145
* llvm-ld doesnt support -O1, -O2, etc options, so dont pass themNuno Lopes2008-07-051-3/+1
| | | | llvm-svn: 53144
* add gentoo stable gcc headers path so that all tests pass here (CPATH isnt ↵Nuno Lopes2008-07-051-0/+4
| | | | | | enough..) llvm-svn: 53143
* Fix warningsSeo Sanghyeon2008-07-052-2/+3
| | | | llvm-svn: 53141
* Remove unused diagnostic.Argyrios Kyrtzidis2008-07-041-2/+0
| | | | llvm-svn: 53140
* Rather than having a different custom legalizationDuncan Sands2008-07-0414-166/+140
| | | | | | | | | | | | hook for each way in which a result type can be legalized (promotion, expansion, softening etc), just use one: ReplaceNodeResults, which returns a node with exactly the same result types as the node passed to it, but presumably with a bunch of custom code behind the scenes. No change if the new LegalizeTypes infrastructure is not turned on. llvm-svn: 53137
* Fixed bugzilla bug# 2489.Sanjiv Gupta2008-07-041-0/+20
| | | | | | This was broken when the GenerateCode function was splitted to use GenerateFunction. llvm-svn: 53136
OpenPOWER on IntegriCloud