summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix assert(0) conversion, as suggested by Chris.Torok Edwin2009-07-124-20/+19
| | | | llvm-svn: 75423
* Clarify a FIXME.Daniel Dunbar2009-07-121-4/+5
| | | | llvm-svn: 75422
* "UNIX paths can contain non-ASCII characters, so Path::isValid() should not ↵Chris Lattner2009-07-121-9/+1
| | | | | | | | reject paths with such characters in them. The attached patch removes the check from Path::isValid()." patch by Benjamin Kramer! llvm-svn: 75421
* Implement support for promotion of AND/OR/XOR on integer types.Jakob Stoklund Olesen2009-07-121-8/+19
| | | | | | The blackfin processor has a legal i16 type, but only logic operations on i32. llvm-svn: 75419
* Fix types in PromoteNode handling of CTPOP and friends.Jakob Stoklund Olesen2009-07-121-3/+3
| | | | llvm-svn: 75418
* Add CCIfSRet calling convention predicate.Jakob Stoklund Olesen2009-07-121-0/+4
| | | | | | The blackfin calling convention uses a different register for sret arguments. llvm-svn: 75417
* Remove extra \n from LLVM_UNREACHABLE calls.Torok Edwin2009-07-129-17/+16
| | | | llvm-svn: 75416
* Make this clearer for the mathematically inclined. Thanks to Duncan Sands forNick Lewycky2009-07-121-0/+4
| | | | | | going over the text! llvm-svn: 75414
* Implement udiv for ConstantRanges.Nick Lewycky2009-07-122-17/+35
| | | | llvm-svn: 75413
* Temporarily revert r75408. It appears to break the Apple-style builds:Bill Wendling2009-07-123-28/+17
| | | | | | | | | x86_64-apple-darwin10-gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -mdynamic-no-pic -DHAVE_CONFIG_H -I. -I. -I/Volumes/Sandbox/Buildbot/llvm/build.llvm-gcc-x86_64-darwin10-selfhost/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc -I/Volumes/Sandbox/Buildbot/llvm/build.llvm-gcc-x86_64-darwin10-selfhost/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc/. -I/Volumes/Sandbox/Buildbot/llvm/build.llvm-gcc-x86_64-darwin10-selfhost/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc/../include -I./../intl -I/Volumes/Sandbox/Buildbot/llvm/build.llvm-gcc-x86_64-darwin10-selfhost/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc/../libcpp/include -I/Volumes/Sandbox/Buildbot/llvm/build.llvm-gcc-x86_64-darwin10-selfhost/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc/../libdecnumber -I../libdecnumber -I/Volumes/Sandbox/Buildbot/llvm/build.llvm-gcc-x86_64-darwin10-selfhost/build/llvmCore.roots/llvmCore~dst/Developer/usr/local/include -I/Volumes/Sandbox/Buildbot/llvm/build.llvm-gcc-x86_64-darwin10-selfhost/build/llvmCore.roots/llvmCore~obj/src/include -DENABLE_LLVM -I/Volumes/Sandbox/Buildbot/llvm/build.llvm-gcc-x86_64-darwin10-selfhost/build/llvmCore.roots/llvmCore~dst/Developer/usr/local/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_VERSION_INFO='"9999"' -DBUILD_LLVM_APPLE_STYLE /Volumes/Sandbox/Buildbot/llvm/build.llvm-gcc-x86_64-darwin10-selfhost/build/llvmgcc42.roots/llvmgcc42~obj/src/gcc/tree-ssa-alias.c -o tree-ssa-alias.o /var/tmp//ccJQ2JBT.s:4134:Incorrect register `%rcx' used with `l' suffix make[2]: *** [tree-ssa-live.o] Error 1 make[2]: *** Waiting for unfinished jobs.... llvm-svn: 75412
* This is not overly conservative.Nick Lewycky2009-07-121-1/+0
| | | | | | | Some = [10, 2730). A subset of that is [1024..2048) which covers every possible 10-bit pattern. llvm-svn: 75411
* Implement ConstantRange::multiply based on the code in LoopVR.Nick Lewycky2009-07-122-13/+19
| | | | llvm-svn: 75410
* Remove check which is duplicated in Eli Friedman2009-07-121-20/+0
| | | | | | InstCombiner::visitSelectInstWithICmp. llvm-svn: 75409
* eliminate MOV64r0 in favor of a Pat<> pattern. This is only nontrivial becauseChris Lattner2009-07-123-17/+28
| | | | | | the div lowering code explicitly references it. llvm-svn: 75408
* add nounwindChris Lattner2009-07-121-1/+1
| | | | llvm-svn: 75407
* be explicit about making comments real sentences.Chris Lattner2009-07-121-1/+3
| | | | llvm-svn: 75406
* Darwin prepends an _ to internal globals, Linux doesn't.Nick Lewycky2009-07-111-1/+1
| | | | llvm-svn: 75405
* fix x86-64 static codegen to materialize the address of a global with movl ↵Chris Lattner2009-07-112-40/+52
| | | | | | | | | | | | | | | | | | instead of lea. It is better for code size (and presumably efficiency) to use: movl $foo, %eax rather than: leal foo, eax Both give a nice zero extending "move immediate" instruction, the former is just smaller. Note that global addresses should be handled different by the x86 backend, but I chose to follow the style already in place and add more fixme's. llvm-svn: 75403
* fix a bug in my cleanup patchChris Lattner2009-07-111-1/+1
| | | | llvm-svn: 75402
* comment cleanup, reduce nesting.Chris Lattner2009-07-112-8/+11
| | | | llvm-svn: 75398
* remove some dead patterns, WrapperRIP doesn't exist in -static modeChris Lattner2009-07-111-17/+0
| | | | | | anymore, so these aren't needed. llvm-svn: 75397
* silence vc++ warning.Chris Lattner2009-07-111-1/+1
| | | | llvm-svn: 75394
* silence a vc++ warning.Chris Lattner2009-07-111-1/+1
| | | | llvm-svn: 75393
* this test was incorrect for x86-64 static. It passed on darwin, because darwinChris Lattner2009-07-111-1/+5
| | | | | | doesn't have static x86-64 mode. llvm-svn: 75392
* Tweak comment.Daniel Dunbar2009-07-111-2/+2
| | | | llvm-svn: 75391
* Update CMakeLists.txtDaniel Dunbar2009-07-111-0/+1
| | | | llvm-svn: 75389
* Fix unused function warning.Daniel Dunbar2009-07-111-0/+2
| | | | llvm-svn: 75386
* Revert r75252 which was causing some crashes at compile time.Nick Lewycky2009-07-114-580/+121
| | | | llvm-svn: 75384
* Fix PR4533, which is about buggy codegen in x86-64 -static mode.Chris Lattner2009-07-112-24/+561
| | | | | | | | | | | | | | | | | | | | | | | | | | Basically, using: lea symbol(%rip), %rax is not valid in -static mode, because the current RIP may not be within 32-bits of "symbol" when an app is built partially pic and partially static. The fix for this is to compile it to: lea symbol, %rax It would be better to codegen this as: movq $symbol, %rax but that will come next. The hard part of fixing this bug was fixing abi-isel, which was actively testing for the wrong behavior. Also, the RUN lines are completely impossible to understand what they are testing. To help with this, convert the -static x86-64 codegen tests to use filecheck. This is much more stable and makes it more clear what the codegen is expected to be. llvm-svn: 75382
* Fix comment.Torok Edwin2009-07-111-3/+4
| | | | llvm-svn: 75380
* assert(0) -> LLVM_UNREACHABLE.Torok Edwin2009-07-11153-610/+695
| | | | | | | | | Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379
* Stub out assembly matcher (.s -> MCInst) tblgen backend.Daniel Dunbar2009-07-113-1/+64
| | | | llvm-svn: 75378
* Regenerate.Mikhail Glushenkov2009-07-111-2/+4
| | | | llvm-svn: 75376
* Update documentation.Mikhail Glushenkov2009-07-112-4/+7
| | | | llvm-svn: 75375
* Delete the temp dir even when '--temp-dir' is specified.Mikhail Glushenkov2009-07-111-2/+1
| | | | llvm-svn: 75374
* Fix handling of max and full set.Nick Lewycky2009-07-112-11/+8
| | | | | | | | A full set is a constant range that represents any number. If you take the umax of that and [5, 10) you end up with [5, INT_MAX] because the values less than 5 would be umax's against a value which is at least 5. llvm-svn: 75372
* improve filecheck's "scanning from here" caret position.Chris Lattner2009-07-111-0/+11
| | | | llvm-svn: 75371
* make filecheck default to canonicalizing horizontal whitespaceChris Lattner2009-07-111-0/+66
| | | | | | away. This way you can write a space and it matches arbitrary spaces and tabs. llvm-svn: 75370
* Break the world's largest unit test down a few logical lines. No semanticNick Lewycky2009-07-111-23/+65
| | | | | | changes. llvm-svn: 75369
* Erase the temp dir before starting.Sanjiv Gupta2009-07-111-0/+7
| | | | llvm-svn: 75367
* Clarify and simplify.Nick Lewycky2009-07-112-4/+4
| | | | llvm-svn: 75366
* Don't use a void return type with a function that returns a value.Dan Gohman2009-07-111-1/+2
| | | | llvm-svn: 75364
* Convert more assert(0)+abort() -> LLVM_UNREACHABLE,Torok Edwin2009-07-1139-267/+296
| | | | | | and abort()/exit() -> llvm_report_error(). llvm-svn: 75363
* We get the P modifier wrong in a lot of cases, just add some more rigorous ↵Chris Lattner2009-07-111-30/+59
| | | | | | | | testing. In addition to fixing this, I still need to do some more testing on darwin. llvm-svn: 75362
* Don't put IT instruction before conditional branches.Evan Cheng2009-07-112-5/+32
| | | | llvm-svn: 75361
* Smarter isel of ldrsb / ldrsh. Only make use of these when [r,r] address is ↵Evan Cheng2009-07-114-24/+27
| | | | | | feasible. llvm-svn: 75360
* Major changes to Thumb (not Thumb2). Many 16-bit instructions either ↵Evan Cheng2009-07-1114-298/+444
| | | | | | | | modifies CPSR when they are outside the IT blocks, or they can predicated when in Thumb2. Move the implicit def of CPSR to an optional def which defaults CPSR. This allows the 's' bit to be toggled dynamically. A side-effect of this change is asm printer is now using unified assembly. There are some minor clean ups and fixes as well. llvm-svn: 75359
* 80 col violation.Evan Cheng2009-07-111-2/+2
| | | | llvm-svn: 75358
* Move a method that creates constant ranges relative to another constant rangeNick Lewycky2009-07-113-54/+87
| | | | | | | | | | per icmp predicate out of predsimplify and into ConstantRange. Add another utility method that determines whether one range is a subset of another. Combine with the former to determine whether icmp pred range, range is known to be true or not. llvm-svn: 75357
* Fix up support for OptionalDefOperand when it defaults to an actual register ↵Evan Cheng2009-07-111-4/+16
| | | | | | def. I need this to get ready for major Thumb1 surgery. llvm-svn: 75328
OpenPOWER on IntegriCloud