summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move 'include/Checkers/PathSensitive/Checkers' directory to 'include/Checkers'.Ted Kremenek2010-01-263-2/+2
| | | | llvm-svn: 94608
* Patch to add 'volatile' to first argument of allFariborz Jahanian2010-01-262-10/+14
| | | | | | | | sync compare_and_swap to match them with gcc. It also fixes a few incorrect argument defitions. (fixes radar 7540291). llvm-svn: 94607
* Refine the non-virtual this adjustments for thunks by using the offsetMike Stump2010-01-261-0/+6
| | | | | | to the declaring class from the nearest virtual base class. WIP. llvm-svn: 94606
* call emitconstantpool and emitjumptable like other targets.Chris Lattner2010-01-261-0/+4
| | | | llvm-svn: 94601
* Before existing NamedMDNode entry in the symbol table, remove any existing ↵Devang Patel2010-01-261-2/+8
| | | | | | entry with the same name. llvm-svn: 94600
* Bring some semblance of order into Decl.h and Decl.cpp. While at it, fix ↵Sebastian Redl2010-01-262-342/+352
| | | | | | some typo comments and remove an unused and unimplemented function prototype. No functionality change. llvm-svn: 94599
* emit jump table an alias ".set" directives through MCStreamer as Chris Lattner2010-01-264-6/+13
| | | | | | | | | | | | assignments. .set x, a-b is the same as: x = a-b llvm-svn: 94596
* fix CastInst::castIsValid to reject aggregate types, fixing PR6153:Chris Lattner2010-01-262-31/+20
| | | | | | | | llvm-as: t.ll:1:25: error: invalid cast opcode for cast from '[4 x i8]' to '[1 x i32]' @x = constant [1 x i32] bitcast ([4 x i8] c"abcd" to [1 x i32]) ^ llvm-svn: 94595
* Remve unnecessary include.Devang Patel2010-01-261-1/+0
| | | | llvm-svn: 94594
* Use AssertingVH, just to be paranoid.Devang Patel2010-01-261-2/+4
| | | | llvm-svn: 94593
* Refine the non-virtual this adjustments for thunks by using the offsetMike Stump2010-01-262-9/+26
| | | | | | | | to the declaring class from the nearest virtual base class. WIP. This fixes 40% of all the problems remaining in one of my testcases. llvm-svn: 94592
* Revert test polarity to match comment and desired outcome. Remove undeserved ↵Jakob Stoklund Olesen2010-01-261-2/+2
| | | | | | | | | | | | | | bonus. A GEP with all constant indices is already considered free by analyzeBasicBlock(), so don't give it an extra bonus in CountCodeReductionForAlloca(). This patch should remove a small positive bias toward inlining functions with variable-index GEPs, and remove a smaller negative bias from functions with all-constant index GEPs. llvm-svn: 94591
* Remove dead code.Jakob Stoklund Olesen2010-01-261-3/+0
| | | | | | | | | | Functions containing indirectbr are marked NeverInline by analyzeBasicBlock(), so there is no point in giving indirectbr special treatment in CountCodeReductionForConstant. It is never called. No functional change intended. llvm-svn: 94590
* Skip calculation of ArgumentWeights if it will never be used.Jakob Stoklund Olesen2010-01-261-0/+6
| | | | | | | | Save a few bytes by allocating the correct size vector. No functional change intended. llvm-svn: 94589
* Emit DW_AT_containing_type attribute for a class if containing type is known.Devang Patel2010-01-261-0/+5
| | | | llvm-svn: 94587
* Add extra element to composite type. This new element will be used to record ↵Devang Patel2010-01-262-4/+10
| | | | | | c++ class that holds current class's vtable. llvm-svn: 94586
* Eliminate SetDirective, and replace it with HasSetDirective.Chris Lattner2010-01-2620-29/+19
| | | | | | | | | | | Default HasSetDirective to true, since most targets have it. The targets that claim to not have it probably do, or it is spelled differently. These include Blackfin, Mips, Alpha, and PIC16. All of these except pic16 are normal ELF targets, so they almost certainly have it. llvm-svn: 94585
* Added assert to the rewrite.Fariborz Jahanian2010-01-261-0/+1
| | | | llvm-svn: 94584
* Delete dead code.Evan Cheng2010-01-262-7/+0
| | | | llvm-svn: 94583
* Emit .comm alignment in bytes but .align in powers of 2 for ARM ELF.Rafael Espindola2010-01-268-9/+21
| | | | | | Original patch by Sandeep Patel and updated by me. llvm-svn: 94582
* eliminate MCAsmInfo::NeedsSet: we now just use .set on any platformChris Lattner2010-01-267-26/+6
| | | | | | that has it. llvm-svn: 94581
* don't set to the default value.Chris Lattner2010-01-261-1/+0
| | | | llvm-svn: 94580
* Convert one last size variable to CharUnits (follow-on to 94577).Ken Dyck2010-01-261-2/+3
| | | | llvm-svn: 94579
* test commit.Junjie Gu2010-01-261-0/+1
| | | | llvm-svn: 94578
* Use CharUnits for sizes, offsets, alignments, and padding amounts for valuesKen Dyck2010-01-261-35/+39
| | | | | | that are in character units. llvm-svn: 94577
* Fix typo in commentDouglas Gregor2010-01-261-1/+1
| | | | llvm-svn: 94576
* Implement 'clang_getInclusions()' in CIndex. This API allows clients to ↵Ted Kremenek2010-01-269-1/+151
| | | | | | walk the set of files included in a translation unit via the C API. llvm-svn: 94575
* -disable-output is no longer needed with -analyze.Dan Gohman2010-01-2663-66/+66
| | | | llvm-svn: 94574
* Eliminate clang_getInstantiationLocationOffset(), and instead add anDouglas Gregor2010-01-264-71/+33
| | | | | | offset parameter to clang_getInstantiationLocation(). llvm-svn: 94573
* Make the unsigned-range code more consistent with the signed-range code,Dan Gohman2010-01-261-25/+29
| | | | | | and clean up some loose ends. llvm-svn: 94572
* Use CharUnits for alignments in character units.Ken Dyck2010-01-263-14/+17
| | | | llvm-svn: 94571
* Code refactoring, no functionality change.Evan Cheng2010-01-263-28/+27
| | | | llvm-svn: 94570
* Revert 94484. Re-disable unittests that need RTTI.Bob Wilson2010-01-264-5/+22
| | | | llvm-svn: 94569
* Switch AllocaDbgDeclares to SmallVector and don't leak DIFactoryVictor Hernandez2010-01-261-1/+4
| | | | llvm-svn: 94567
* Fix two redefinitions in test cases that weren't diagnosed yet, but will be ↵Sebastian Redl2010-01-262-2/+2
| | | | | | soon. llvm-svn: 94565
* Use CharUnits for alignment of UTF16 string in GetAddrOfConstantCFString().Ken Dyck2010-01-261-2/+2
| | | | llvm-svn: 94564
* Use CharUnits for alignment in EmitNullInitializationLValue().Ken Dyck2010-01-261-2/+2
| | | | llvm-svn: 94563
* Fix a typo in a comment that Duncan noticed.Dan Gohman2010-01-261-1/+1
| | | | llvm-svn: 94562
* Implement clang_annotateTokens(), which associates cursors with eachDouglas Gregor2010-01-264-21/+110
| | | | | | | of the tokens within a raw token stream. This does not even attempt to handle macros yet. llvm-svn: 94561
* Remove SIL, DIL, and BPL from the GR8_NOREX allocation order also.Dan Gohman2010-01-261-11/+5
| | | | llvm-svn: 94560
* Refix rewriting of an ivar access when it isFariborz Jahanian2010-01-262-15/+2
| | | | | | type-cast to its sub-class (radar 7575882). llvm-svn: 94559
* SIL, DIL, BPL, and SPL require a REX prefix.Dan Gohman2010-01-261-6/+3
| | | | llvm-svn: 94558
* Add 'PostVisitTU' callback hook to 'perform_test_load()' to allow a special ↵Ted Kremenek2010-01-261-9/+21
| | | | | | callback after the translation unit has been loaded (and streamed). llvm-svn: 94557
* Allow the 'visitor' argument to 'perform_test_load()' to be NULL. TheTed Kremenek2010-01-261-18/+22
| | | | | | | utility of this change will be made clearer in a subsequent patch when perform_test_load()' does more than stream the AST. llvm-svn: 94556
* Use the right definition when emitting a global variable. Fixes PR5564.Anders Carlsson2010-01-263-3/+20
| | | | llvm-svn: 94555
* Change getUnique to return a GlobalDecl. Fixes PR6147.Anders Carlsson2010-01-261-8/+20
| | | | llvm-svn: 94554
* Correct cut-and-paste error in doxygen comment for newly introducedKen Dyck2010-01-262-2/+2
| | | | | | getTypeAlignInChars(). llvm-svn: 94553
* Add getTypeAlignInChars() for use in code that works in alignments in characterKen Dyck2010-01-262-0/+14
| | | | | | units. llvm-svn: 94552
* Introduce a CIndex API for lexing the raw tokens within a given sourceDouglas Gregor2010-01-268-32/+540
| | | | | | range. The token-annotation function does nothing, yet. llvm-svn: 94551
* Replace inheritance of RegionRawOffset from std::pair with two private memberKen Dyck2010-01-261-4/+7
| | | | | | variables to improve readability and encapsulation. llvm-svn: 94550
OpenPOWER on IntegriCloud