summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* From PR6228:Chris Lattner2010-02-042-1/+2
| | | | | | | | | | | | "Attached patch removes the extra NUL bytes from the output and changes test/Archive/MacOSX.toc from a binary to a text file (removes svn:mime-type=application/octet-stream and adds svn:eol-style=native). I can't figure out how to get SVN to include the new contents of the file in the patch so I'm attaching it separately." Patch by James Abbatiello! llvm-svn: 95292
* Rework constant expr and array handling for objectsize instcombining.Eric Christopher2010-02-042-25/+61
| | | | | | | | | | Fix bugs where we would compute out of bounds as in bounds, and where we couldn't know that the linker could override the size of an array. Add a few new testcases, change existing testcase to use a private global array instead of extern. llvm-svn: 95283
* It's too risky to eliminate sext / zext of call results for tail call ↵Evan Cheng2010-02-041-6/+4
| | | | | | optimization even if the caller / callee attributes completely match. The callee may have been bitcast'ed (or otherwise lied about what it's doing). llvm-svn: 95282
* Change the argument to getIntegerSCEV to be an int64_t, ratherDan Gohman2010-02-042-2/+2
| | | | | | | than int. This will make it more convenient for LSR, which does a lot of things with int64_t offsets. llvm-svn: 95281
* Indirect tail call has to go through a call preserved register since it's ↵Evan Cheng2010-02-041-15/+14
| | | | | | | | after callee register pops. X86 isel lowering is using EAX / R11 and it was somehow adding that to function live out. That prevented the real function return register from being added to the function live out list and bad things happen. This fixes 483.xalancbmk (with tail call opt). llvm-svn: 95280
* Filled in a few new APIs for the enhancedSean Callanan2010-02-044-1/+62
| | | | | | | | disassembly library that provide access to instruction information, and fixed ambiguous wording in the comments for the header. llvm-svn: 95274
* Use a tab instead of space after .type, for consistency.Dan Gohman2010-02-041-1/+1
| | | | llvm-svn: 95272
* Rewrite FP constant handling in DEBUG_VALUE yetDale Johannesen2010-02-041-5/+17
| | | | | | | again, so it more or less handles long double. Restore \n removed in latest MC frenzy. llvm-svn: 95271
* Fix (and test) function-local metadata that occurs before the instruction ↵Victor Hernandez2010-02-042-4/+10
| | | | | | that it refers to; fix is to not enumerate operands of function-local metadata until after all instructions have been enumerated llvm-svn: 95269
* If we're dealing with a zero-length array, don't lower to anyEric Christopher2010-02-032-4/+20
| | | | | | particular size, we just don't know what the length is yet. llvm-svn: 95266
* This test passes now on ppc darwin; if it doesn't passDale Johannesen2010-02-031-1/+1
| | | | | | on some other ppc say something on the list. llvm-svn: 95265
* This test passes now on ppc darwin, so reenable it.Dale Johannesen2010-02-031-3/+0
| | | | llvm-svn: 95264
* Debugging is now reenabled on PPC darwin, so reenableDale Johannesen2010-02-032-6/+1
| | | | | | these tests (they pass). llvm-svn: 95263
* enhance new encoder to support prefixes + RawFrm Chris Lattner2010-02-033-7/+133
| | | | | | | | instructions with no operands. It can now handle define void @test2() nounwind { ret void } llvm-svn: 95261
* set up some infrastructure, some minor cleanups.Chris Lattner2010-02-031-5/+39
| | | | llvm-svn: 95260
* Speculatively disable x86 automatic tail call optimization while we track ↵Evan Cheng2010-02-032-0/+4
| | | | | | down a self-hosting issue. llvm-svn: 95259
* Make test less fragileEvan Cheng2010-02-031-1/+1
| | | | llvm-svn: 95258
* stub out a new X86 encoder, which can be tried withChris Lattner2010-02-035-1/+56
| | | | | | -enable-new-x86-encoder until its stable. llvm-svn: 95256
* rename createX86MCCodeEmitter to more accurately reflect what it creates.Chris Lattner2010-02-033-5/+7
| | | | llvm-svn: 95254
* Added support for X86 instruction prefixes so llvm-mc can assemble them. TheKevin Enderby2010-02-033-6/+120
| | | | | | | | | | Lock prefix, Repeat string operation prefixes and the Segment override prefixes. Also added versions of the move string and store string instructions without the repeat prefixes to X86InstrInfo.td. And finally marked the rep versions of move/store string records in X86InstrInfo.td as isCodeGenOnly = 1 so tblgen is happy building the disassembler files. llvm-svn: 95252
* Emit appropriate expression to find virtual base offset.Devang Patel2010-02-031-1/+20
| | | | llvm-svn: 95242
* Provide interface to identifiy artificial methods.Devang Patel2010-02-033-6/+14
| | | | llvm-svn: 95240
* r94686 changed all ModuleProvider parameters to Modules, which made theJeffrey Yasskin2010-02-032-9/+0
| | | | | | | | 1-argument ExecutionEngine::create(Module*) ambiguous with the signature that used to be ExecutionEngine::create(ModuleProvider*, defaulted_params). Fixed by removing the 1-argument create(). Fixes PR6221. llvm-svn: 95236
* Make docs less specific about their versions, at Chris's suggestion.Jeffrey Yasskin2010-02-031-4/+5
| | | | llvm-svn: 95231
* Add llvm_supports_darwin_and_target to DejaGNU as well, I'd almost forgotten itDaniel Dunbar2010-02-031-0/+10
| | | | | | ever existed. :) llvm-svn: 95230
* Mention the version in the documentation index and link to the 2.6 docs, whichJeffrey Yasskin2010-02-031-2/+5
| | | | | | is what most readers will actually be aiming for. llvm-svn: 95229
* llvm-mc: Add --show-inst option, for showing the MCInst inline with the assemblyDaniel Dunbar2010-02-033-21/+43
| | | | | | output. llvm-svn: 95227
* Add "Author Date Id Revision" svn:keyword properties to these files, asDan Gohman2010-02-0315-15/+15
| | | | | | | is done with the other html files in doc, to hopefully keep strings like "Last modified" current. llvm-svn: 95225
* Adjust the heuristics used to decide when SROA is likely to be profitable.Bob Wilson2010-02-031-18/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SRThreshold value makes perfect sense for checking if an entire aggregate should be promoted to a scalar integer, but it is not so good for splitting an aggregate into its separate elements. A struct may contain a large embedded array along with some scalar fields that would benefit from being split apart by SROA. Even if the total aggregate size is large, it may still be good to perform SROA. Thus, the most important piece of this patch is simply moving the aggregate size comparison vs. SRThreshold so that it guards only the aggregate promotion. We have also been checking the number of elements to decide if an aggregate should be split up. The limit of "SRThreshold/4" seemed rather arbitrary, and I don't think it's very useful to derive this limit from SRThreshold anyway. I've collected some data showing that the current default limit of 32 (since SRThreshold defaults to 128) is a reasonable cutoff for struct types. One thing suggested by the data is that distinguishing between structs and arrays might be useful. There are (obviously) a lot more large arrays than large structs (as measured by the number of elements and not the total size -- a large array inside a struct still counts as a single element given the way we do SROA right now). Out of 8377 arrays where we successfully performed SROA while compiling a large set of benchmarks, only 16 of them had more than 8 elements. And, for those 16 arrays, it's not at all clear that SROA was actually beneficial. So, to offset the compile time cost of investigating more large structs for SROA, the patch lowers the limit on array elements to 8. This fixes Apple Radar 7563690. llvm-svn: 95224
* Repository access test commitGarrison Venn2010-02-031-1/+1
| | | | llvm-svn: 95221
* Remove redundant declaration.Zhongxing Xu2010-02-031-2/+0
| | | | llvm-svn: 95213
* Add constructors.Zhongxing Xu2010-02-031-0/+5
| | | | llvm-svn: 95212
* reapply r95206, this time actually delete the code I'm replacing in the ↵Chris Lattner2010-02-031-9/+23
| | | | | | third stub case. llvm-svn: 95209
* revert r95206, it is apparently causing bootstrap failure on i386-darwin9Chris Lattner2010-02-031-24/+7
| | | | llvm-svn: 95208
* print instruction encodings with the existing comment facilities,Chris Lattner2010-02-031-18/+17
| | | | | | | | | | | | | so that llvm-mc -show-encoding prints like this: hlt ## encoding: [0xf4] instead of like this: hlt # encoding: [0xf4] llvm-svn: 95207
* make the x86 backend emit darwin stubs through mcstreamerChris Lattner2010-02-031-7/+24
| | | | | | instead of textually. llvm-svn: 95206
* make MachineModuleInfoMachO hold non-const MCSymbol*'s insteadChris Lattner2010-02-037-34/+32
| | | | | | | of const ones. non-const ones aren't very useful, because you can't even, say, emit them. llvm-svn: 95205
* change addPassesToEmitFile to return true on failure instead of its input,Chris Lattner2010-02-034-54/+42
| | | | | | | add -filetype=null for performance testing and remove -filetype=dynlib, which isn't planned to be implemented. llvm-svn: 95202
* Revert 94937 and move the noreturn check to codegen.Evan Cheng2010-02-035-20/+25
| | | | llvm-svn: 95198
* Fixed the disassembler so it accepts multipleSean Callanan2010-02-031-28/+20
| | | | | | | instructions on a single line. Also made it a bit more forgiving when it reports errors. llvm-svn: 95197
* Make APInt::countLeadingZerosSlowCase() treat the contents of padding bitsJohn McCall2010-02-032-6/+20
| | | | | | as undefined. Fixes an assertion in APFloat::toString noticed by Dale. llvm-svn: 95196
* Allow all types of callee's to be tail called. But avoid automatic tailcall ↵Evan Cheng2010-02-034-24/+38
| | | | | | if the callee is a result of bitcast to avoid losing necessary zext / sext etc. llvm-svn: 95195
* Reconfigure with autoconf-2.60, and fix autoconf.ac to work with that version.Jeffrey Yasskin2010-02-033-4400/+11585
| | | | llvm-svn: 95191
* don't emit \n's at the start of X86AsmPrinter::runOnMachineFunction,Chris Lattner2010-02-032-1/+2
| | | | | | .o files don't like that. llvm-svn: 95187
* privatize a bunch of methods and move \n printing into them.Chris Lattner2010-02-032-13/+13
| | | | llvm-svn: 95186
* rename printMachineInstruction -> EmitInstructionChris Lattner2010-02-032-8/+3
| | | | llvm-svn: 95184
* Reapply 95050 with a tweak to check the register class.Dale Johannesen2010-02-033-2/+20
| | | | llvm-svn: 95183
* print instructions through the mcstreamer.Chris Lattner2010-02-031-13/+6
| | | | llvm-svn: 95181
* emit instructions through the streamer.Chris Lattner2010-02-031-2/+1
| | | | llvm-svn: 95180
* Finally eliminate printMCInst and send instructions throughChris Lattner2010-02-033-17/+4
| | | | | | | | | | | | | | | | | | | | | | | the streamer. Demo: $ cat t.ll define i32 @test() nounwind { ret i32 42 } $ llc t.ll -o - ... _test: movl $42, %eax ret $ llc t.ll -o t.o -filetype=obj $ otool -tv t.o t.o: (__TEXT,__text) section _test: 00000000 movl $0x0000002a,%eax 00000005 ret llvm-svn: 95179
OpenPOWER on IntegriCloud