summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Several improvements from Doug Gregor related to defaultChris Lattner2008-04-1015-28/+145
| | | | | | argument handling. I'll fix up the c89 (void) thing next. llvm-svn: 49459
* Disable an xform we've had for a long time, pow(x,0.5) -> sqrt.Chris Lattner2008-04-101-0/+8
| | | | | | This is not safe for all inputs. llvm-svn: 49458
* Move memcpy / memset optimization pass after GVN.Evan Cheng2008-04-101-1/+1
| | | | llvm-svn: 49457
* Hooked up initial reference-count checks to the BugReporter interface.Ted Kremenek2008-04-091-31/+86
| | | | llvm-svn: 49455
* Major refactoring/cleanup of GRExprEngine, ExplodedGraph, and BugReporter.Ted Kremenek2008-04-0912-319/+474
| | | | | | | | | | | | | | | Bugs are now reported using a combination of "BugType" (previously BugDescription) and Bug "BugReport" objects, which are fed to BugReporter (which generates PathDiagnostics). This provides a far more modular way of registering bug types and plugging in diagnostics. GRExprEngine now owns its copy of GRCoreEngine, and is not owned by the ExplodedGraph. ExplodedGraph is no longer templated on the "checker", but instead on the state contained in the nodes. llvm-svn: 49453
* - More aggressively coalescing away copies whose source is defined by an ↵Evan Cheng2008-04-096-76/+421
| | | | | | | | implicit_def. - Added insert_subreg coalescing support. llvm-svn: 49448
* Make isVectorClearMaskLegal's operand list const.Dan Gohman2008-04-093-5/+6
| | | | llvm-svn: 49446
* Fix some minor errors in comments.Dan Gohman2008-04-091-3/+3
| | | | llvm-svn: 49445
* Add const qualifiers.Dan Gohman2008-04-091-2/+2
| | | | llvm-svn: 49443
* Update comments to use 2.0 syntax type names.Dan Gohman2008-04-092-3/+3
| | | | llvm-svn: 49442
* Add XMM1 as a second return value register for f32 and f64 on x86-64. ThisDan Gohman2008-04-091-4/+4
| | | | | | | is needed for the x86-64-ABI handling of structs that contain floating-point members that are returned by value. llvm-svn: 49441
* Add DX as a second return value register for i16 on x86.Dan Gohman2008-04-091-1/+1
| | | | llvm-svn: 49440
* Generalize getUnaryFloatFunction to handle any FP unary function, automaticallyChris Lattner2008-04-092-17/+38
| | | | | | figuring out the suffix to use. implement pow(2,x) -> exp2(x). llvm-svn: 49437
* remove capital letter from test name.Chris Lattner2008-04-091-0/+0
| | | | llvm-svn: 49436
* use the new ConstantFP::get method to make this work withChris Lattner2008-04-091-11/+4
| | | | | | long double and simplify the code. llvm-svn: 49435
* ConstantFP::get should be static.Chris Lattner2008-04-091-1/+1
| | | | llvm-svn: 49434
* Fix a bug where an incorrect bit mask would be generated if a target's last asmNate Begeman2008-04-091-1/+1
| | | | | | | string began at a power of 2 in the string index. For example, if "ret" started at position 16, the ret instruction would be assigned code 16, but the mask would be AsmChars[] + Code & 15, not Code & 31. llvm-svn: 49433
* Be conservative if getresult operand is neither call nor invoke.Devang Patel2008-04-091-2/+3
| | | | llvm-svn: 49430
* The dtor CGObjCRuntime::~CGObjCRuntime() was implemented twice, onceTed Kremenek2008-04-093-7/+2
| | | | | | | in CGObjCGNU.cpp and once in CGObjCEtoile.cpp. Moved its definition to CGObjC.cpp. This resolves a build error in Xcode, and also cleans things up. llvm-svn: 49429
* Add SemaDeclCXX.cpp to Xcode project.Ted Kremenek2008-04-091-0/+4
| | | | llvm-svn: 49428
* Micro-optimization: Don't use ostringstream when using a C-string literalTed Kremenek2008-04-091-40/+28
| | | | | | will work just fine. llvm-svn: 49427
* Factor a bunch of functionality related to memcpy and memset transforms out of Owen Anderson2008-04-0913-628/+790
| | | | | | GVN and into its own pass. llvm-svn: 49419
* Remove accidentally duplicated code.Owen Anderson2008-04-091-4/+0
| | | | llvm-svn: 49418
* Unbreak teh build.Evan Cheng2008-04-091-0/+5
| | | | llvm-svn: 49417
* add a simplified accessor for creating an fp constant of a Chris Lattner2008-04-091-13/+25
| | | | | | particular value but variable type. llvm-svn: 49416
* Missed a hasInterval check.Evan Cheng2008-04-092-0/+21
| | | | llvm-svn: 49415
* Added some boilerplate for emitting warnings from the CF-reference count ↵Ted Kremenek2008-04-091-15/+64
| | | | | | checker. llvm-svn: 49414
* add a version of ConstantFP::get that doesn't take a redundant Type* value,Chris Lattner2008-04-092-22/+26
| | | | | | start migrating code over to use it. llvm-svn: 49413
* Added new "BugReporterHelper" class which is used by BugReporter to emitTed Kremenek2008-04-092-10/+40
| | | | | | checker-specific diagnostics. llvm-svn: 49412
* many cleanups to the pow optimizer. Allow it to handle powf,Chris Lattner2008-04-092-38/+62
| | | | | | add support for pow(x, 2.0) -> x*x. llvm-svn: 49411
* make ConstantFP::isExactlyValue work for long double as well.Chris Lattner2008-04-091-7/+4
| | | | llvm-svn: 49410
* For -emit-html, use the Rewriter to expand tabs.Ted Kremenek2008-04-081-1/+1
| | | | llvm-svn: 49409
* Don't expand tabs in EscapeText, but rather expand them when writing outTed Kremenek2008-04-083-7/+35
| | | | | | | the HTML file. This should reduce the amount of memory pressure on the rewriter for files that have a lot of tabs. llvm-svn: 49406
* Add HTMLRewrite.h to Xcode project.Ted Kremenek2008-04-081-0/+2
| | | | llvm-svn: 49405
* When substituting tabs during HTMLification, only add " " when we areTed Kremenek2008-04-081-1/+6
| | | | | | "escaping" spaces. llvm-svn: 49404
* Improve range highlighting in HTMLDiagnostic to correctly highlight rangesTed Kremenek2008-04-081-0/+56
| | | | | | that span multiple lines by inserting multiple "</span>" and "<span>" tags. llvm-svn: 49403
* Make SourceManager::getFullFilePos() public.Ted Kremenek2008-04-081-8/+8
| | | | llvm-svn: 49402
* Changed the Decl::Kind enum of the ObjCPropertyDecl class, so that it followsSam Bishop2008-04-083-4/+4
| | | | | | the pattern of the other Decl classes. llvm-svn: 49399
* Add CreateGetResult()Devang Patel2008-04-081-1/+5
| | | | llvm-svn: 49398
* Set the location of ccc-analyzer to be the same directory as where scan-buildTed Kremenek2008-04-081-4/+5
| | | | | | is located. llvm-svn: 49397
* Check that bodies and calls but not declarationsDuncan Sands2008-04-081-0/+7
| | | | | | | are marked nounwind when compiling without -fexceptions. llvm-svn: 49393
* Rename -disable-required-unwind-tables to -unwind-tables-optional.Dale Johannesen2008-04-0816-21/+21
| | | | llvm-svn: 49391
* Rename -disable-required-unwind-tables to unwind-tables-optional.Dale Johannesen2008-04-081-2/+2
| | | | llvm-svn: 49389
* merge r48768 from branches/ggreif/parallelized-testGabor Greif2008-04-081-3/+0
| | | | llvm-svn: 49382
* Add multiple value return instruction constructor.Devang Patel2008-04-081-0/+4
| | | | llvm-svn: 49374
* Convenience method for setting the nounwindDuncan Sands2008-04-082-0/+10
| | | | | | attribute for a function. llvm-svn: 49373
* silence some warnings when assertions are disabled.Chris Lattner2008-04-082-14/+14
| | | | llvm-svn: 49372
* silence warning when assertions are disabled.Chris Lattner2008-04-081-1/+1
| | | | llvm-svn: 49371
* Add support for C++ default arguments, and rework Parse-Sema Chris Lattner2008-04-081-0/+158
| | | | | | | | interaction for function parameters, fixing PR2046. Patch by Doug Gregor! llvm-svn: 49370
* Add support for C++ default arguments, and rework Parse-Sema Chris Lattner2008-04-0830-178/+498
| | | | | | | | interaction for function parameters, fixing PR2046. Patch by Doug Gregor! llvm-svn: 49369
OpenPOWER on IntegriCloud