summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix X86FastISel's output for x86-32 PIC constant pool addresses.Dan Gohman2008-09-302-6/+17
| | | | llvm-svn: 56829
* Move the GlobalBaseReg field out of X86ISelDAGToDAG.cppDan Gohman2008-09-305-43/+36
| | | | | | | | and X86FastISel.cpp into X86MachineFunction.h, so that it can be shared, instead of having each selector keep track of its own. llvm-svn: 56825
* Disable all x87 usage, including f32 and f64 when the subtargetDan Gohman2008-09-301-6/+17
| | | | | | doesn't have SSE(2), with X86FastISel. llvm-svn: 56823
* Remove misuse of ReplaceNodeResults for atomics withDale Johannesen2008-09-293-23/+24
| | | | | | valid types. No functional change. llvm-svn: 56808
* Fix FastISel to not initialize the PIC-base register multiple timesDan Gohman2008-09-291-60/+65
| | | | | | in functions with PIC references from more than one basic block. llvm-svn: 56807
* Fix an over-pessimization about GlobalVariable addresses in X86FastISel.Dan Gohman2008-09-291-1/+1
| | | | llvm-svn: 56802
* Support inreg, zext and sext as return value attributes.Devang Patel2008-09-294-1701/+1737
| | | | llvm-svn: 56801
* Fix PR2835. Do not change the width of a volatile load.Evan Cheng2008-09-291-2/+18
| | | | llvm-svn: 56792
* Speed up these passes when the callgraph hasDuncan Sands2008-09-292-4/+16
| | | | | | | huge simply connected components. Suggested by Chris. llvm-svn: 56787
* remove redundant test (mayBeOverriden() includes hasLinkOnceLinkage)Nuno Lopes2008-09-291-1/+1
| | | | llvm-svn: 56786
* Tweak some comments.Duncan Sands2008-09-291-4/+6
| | | | llvm-svn: 56784
* Rename isWeakForLinker to mayBeOverridden. Use itDuncan Sands2008-09-2915-27/+31
| | | | | | | instead of hasWeakLinkage in a bunch of optimization passes. llvm-svn: 56782
* Re-apply 56683 with fixes.Evan Cheng2008-09-275-10/+16
| | | | llvm-svn: 56748
* Unbreak build. Daniel Dunbar2008-09-271-1/+2
| | | | llvm-svn: 56727
* Implement function notes as function attributes. Devang Patel2008-09-2612-128/+35
| | | | llvm-svn: 56716
* Generated files for warning fix.Dale Johannesen2008-09-262-115/+171
| | | | llvm-svn: 56715
* Fix a compiler warning.Dale Johannesen2008-09-261-1/+0
| | | | llvm-svn: 56714
* Implement "punpckldq %xmm0, $xmm0" as "pshufd $0x50, %xmm0, %xmm" unless ↵Evan Cheng2008-09-263-5/+37
| | | | | | optimizing for code size. llvm-svn: 56711
* Now Attributes are divided in three groupsDevang Patel2008-09-2614-64/+268
| | | | | | | | | | | | | - return attributes - inreg, zext and sext - parameter attributes - function attributes - nounwind, readonly, readnone, noreturn Return attributes use 0 as the index. Function attributes use ~0U as the index. This patch requires corresponding changes in llvm-gcc and clang. llvm-svn: 56704
* Temporarily reverting r56683. This is causing a failure during the build of ↵Bill Wendling2008-09-269-25/+13
| | | | | | | | | | | | | | | | | llvm-gcc: /Volumes/Gir/devel/llvm/clean/llvm-gcc.obj/./gcc/xgcc -B/Volumes/Gir/devel/llvm/clean/llvm-gcc.obj/./gcc/ -B/Volumes/Gir/devel/llvm/clean/llvm-gcc.install/i386-apple-darwin9.5.0/bin/ -B/Volumes/Gir/devel/llvm/clean/llvm-gcc.install/i386-apple-darwin9.5.0/lib/ -isystem /Volumes/Gir/devel/llvm/clean/llvm-gcc.install/i386-apple-darwin9.5.0/include -isystem /Volumes/Gir/devel/llvm/clean/llvm-gcc.install/i386-apple-darwin9.5.0/sys-include -mmacosx-version-min=10.4 -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../llvm-gcc.src/gcc -I../../llvm-gcc.src/gcc/. -I../../llvm-gcc.src/gcc/../include -I./../intl -I../../llvm-gcc.src/gcc/../libcpp/include -I../../llvm-gcc.src/gcc/../libdecnumber -I../libdecnumber -I/Volumes/Gir/devel/llvm/clean/llvm.obj/include -I/Volumes/Gir/devel/llvm/clean/llvm.src/include -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c ../../llvm-gcc.src/gcc/unwind-dw2-fde-darwin.c -o libgcc/./unwind-dw2-fde-darwin.o Assertion failed: (TargetRegisterInfo::isVirtualRegister(regA) && TargetRegisterInfo::isVirtualRegister(regB) && "cannot update physical register live information"), function runOnMachineFunction, file /Volumes/Gir/devel/llvm/clean/llvm.src/lib/CodeGen/TwoAddressInstructionPass.cpp, line 311. ../../llvm-gcc.src/gcc/unwind-dw2.c:1527: internal compiler error: Abort trap Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://developer.apple.com/bugreporter> for instructions. {standard input}:3521:non-relocatable subtraction expression, "_dwarf_reg_size_table" minus "L20$pb" {standard input}:3521:symbol: "_dwarf_reg_size_table" can't be undefined in a subtraction expression {standard input}:3520:non-relocatable subtraction expression, "_dwarf_reg_size_table" minus "L20$pb" ... llvm-svn: 56703
* Fix missing whitespace in the printing of function notes.Dan Gohman2008-09-261-3/+3
| | | | llvm-svn: 56702
* Rename ConstantSDNode's getSignExtended to getSExtValue, forDan Gohman2008-09-268-27/+27
| | | | | | | consistancy with ConstantInt, and re-implement it in terms of ConstantInt's getSExtValue. llvm-svn: 56700
* Mark lea fi# as being really rematerializable.Dan Gohman2008-09-261-2/+3
| | | | llvm-svn: 56698
* unpckhps requires sse1, punpckhdq requires sse2.Evan Cheng2008-09-261-4/+4
| | | | llvm-svn: 56697
* Fix X86FastISel's address folding to check displacementDan Gohman2008-09-261-5/+12
| | | | | | values for overflow. llvm-svn: 56686
* Fix @llvm.frameaddress codegen. FP elimination optimization should be ↵Evan Cheng2008-09-269-13/+25
| | | | | | disabled when frame address is desired. Also add support for depth > 0. llvm-svn: 56683
* CMake: Builds all examples. Corrected name of CBackend target.Oscar Fuentes2008-09-261-1/+1
| | | | llvm-svn: 56682
* Generated files for previous patch.Dale Johannesen2008-09-263-1823/+1800
| | | | llvm-svn: 56679
* Another file I forgot.Dale Johannesen2008-09-261-1/+0
| | | | llvm-svn: 56678
* Add "inreg" field to CallSDNode (doesn't increaseDale Johannesen2008-09-2616-47/+37
| | | | | | | | | its size). Adjust various lowering functions to pass this info through from CallInst. Use it to implement sseregparm returns on X86. Remove X86_ssecall calling convention. llvm-svn: 56677
* Factor out the code for determining when symblic addressesDan Gohman2008-09-264-17/+50
| | | | | | | | | require RIP-relative addressing and use it to fix a bug in X86FastISel in x86-64 PIC mode, where it was trying to use base/index registers with RIP-relative addresses. This fixes a bunch of x86-64 testsuite failures. llvm-svn: 56676
* Avoid spilling EBP / RBP twice in the prologue.Evan Cheng2008-09-261-8/+18
| | | | llvm-svn: 56675
* We don't need to insert copies for implicit_def's.Owen Anderson2008-09-261-1/+5
| | | | llvm-svn: 56674
* X86 address displacement field must be interpreted as a 32-bit value.Evan Cheng2008-09-261-3/+4
| | | | llvm-svn: 56665
* CMake: Builds all targets.Oscar Fuentes2008-09-2613-42/+226
| | | | llvm-svn: 56641
* Disable support for x86_f80 in X86FastISel. Supporting it wouldDan Gohman2008-09-261-9/+6
| | | | | | require more work. llvm-svn: 56637
* If we have a function with an unreachable statement such that the ending debugBill Wendling2008-09-264-10/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | information is in an unreachable block, then it's possible that the high/low pc values won't be set for the dwarf information. E.g., this function: void abort(void) __attribute__((__noreturn__)); void dead_beef(void) __attribute__ ((noreturn)); int *b; void dead_beef(void) { *b=0xdeadbeef; abort(); } has a call to "@llvm.dbg.region.end" only in the unreachable block: define void @dead_beef() noreturn nounwind { entry: call void @llvm.dbg.func.start(...) call void @llvm.dbg.stoppoint(...) ... call void @abort( ) noreturn nounwind unreachable return: ; No predecessors! call void @llvm.dbg.stoppoint(...) call void @llvm.dbg.region.end(...) ret void } The dwarf information emitted is something like: 0x00000084: TAG_subprogram [5] AT_name( "dead_beef" ) AT_external( 0x01 ) AT_prototyped( 0x01 ) AT_decl_file( 0x01 ) AT_decl_line( 0x08 ) Note that this is *not* the best fix for this problem, but a band-aid for an gaping wound. This code needs to be changed when we revamp our debugging information. llvm-svn: 56628
* Prefer movlhps over punpcklqdq, etc. in more cases.Evan Cheng2008-09-251-5/+5
| | | | llvm-svn: 56627
* Fix a bug in which address displacements were being added to theDan Gohman2008-09-251-1/+9
| | | | | | load from the stub, instead of the result of the load from the stub. llvm-svn: 56626
* Make pointer parameter const for isUsedInBasicBlock.Bill Wendling2008-09-251-1/+1
| | | | llvm-svn: 56625
* Large mechanical patch.Devang Patel2008-09-2544-1007/+1007
| | | | | | | | | | | | | | | s/ParamAttr/Attribute/g s/PAList/AttrList/g s/FnAttributeWithIndex/AttributeWithIndex/g s/FnAttr/Attribute/g This sets the stage - to implement function notes as function attributes and - to distinguish between function attributes and return value attributes. This requires corresponding changes in llvm-gcc and clang. llvm-svn: 56622
* Reapply 56585:56589 with proper fix for some gcc versionsAnton Korobeynikov2008-09-259-183/+221
| | | | llvm-svn: 56621
* With sse3 and when the source is a load or has multiple uses, favors movddup ↵Evan Cheng2008-09-253-17/+97
| | | | | | over shuffp*, pshufd, etc. Without sse3 or when the source is from a register, make use of movlhps llvm-svn: 56620
* Accept 'inreg' attribute on x86 functions asDale Johannesen2008-09-252-6/+15
| | | | | | | | meaning sse_regparm (i.e. float/double values go in XMM0 instead of ST0). Update documentation to reflect reality. llvm-svn: 56619
* Avoid a spurious extra space character when printing empty structs.Dan Gohman2008-09-251-3/+4
| | | | llvm-svn: 56616
* Support for i1 XOR in FastISel. It is actually safe becauseDan Gohman2008-09-251-2/+3
| | | | | | i1 operands are assumed to already by zero-extended. llvm-svn: 56615
* Don't print fast-isel debug messages by default. Thanks Chris!Dan Gohman2008-09-251-3/+6
| | | | llvm-svn: 56614
* Don't forget the newline in debug output.Dan Gohman2008-09-251-1/+1
| | | | llvm-svn: 56613
* FastISel support for debug info.Dan Gohman2008-09-253-3/+117
| | | | llvm-svn: 56610
* bug 2812: Segmentation fault on a big emdiam processor.Richard Pennington2008-09-251-1/+1
| | | | llvm-svn: 56609
OpenPOWER on IntegriCloud