summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* The llvm-gcc front-end and the pass manager use two separate TargetData objects.Bill Wendling2009-11-182-26/+119
| | | | | | | | | | | | | | | | | | This is probably not confined to *just* these two things. Anyway, the llvm-gcc front-end may look up the structure layout information for an abstract type. That information will be stored into a table with the FE's TD. Instruction combine can come along and also ask for information on that abstract type, but for a separate TD (the one associated with the pass manager). After the type is refined, the old structure layout information in the pass manager's TD file is out of date. If a new type is allocated in the same space as the old-unrefined type, then the structure type information in the pass manager's TD file will be wrong, but won't know it. Fix this by making the TD's structure type information an abstract type user. llvm-svn: 89176
* Simplify ComputeMultiple so that it doesn't depend on TargetData.Dan Gohman2009-11-183-27/+13
| | | | llvm-svn: 89175
* Missing piece of r89173.Eli Friedman2009-11-181-0/+3
| | | | llvm-svn: 89174
* Refactor emitting call to delete operator into common function EmitDeleteCall.Eli Friedman2009-11-182-46/+32
| | | | llvm-svn: 89173
* Fix one last gotcha with typeid.Mike Stump2009-11-182-0/+5
| | | | llvm-svn: 89172
* Add SourceLocations to ObjCClassDecl for the class identifiers referenced by ↵Ted Kremenek2009-11-188-32/+64
| | | | | | @class. llvm-svn: 89170
* Finish code completion for Objective-C message sendsDouglas Gregor2009-11-182-14/+43
| | | | llvm-svn: 89168
* Fix inverted test and add testcase from failing self-host.Jakob Stoklund Olesen2009-11-182-9/+59
| | | | llvm-svn: 89167
* Cleanup.Mike Stump2009-11-171-3/+3
| | | | llvm-svn: 89166
* Add rtti support for arrays, functiond without prototypes, vectors andMike Stump2009-11-172-15/+16
| | | | | | enums. llvm-svn: 89165
* Rename Objective-C message send completion functions to indicate that we're ↵Douglas Gregor2009-11-174-20/+21
| | | | | | referring to message sends llvm-svn: 89164
* Refactor code-completion support for message sends, collecting theDouglas Gregor2009-11-173-89/+102
| | | | | | | | | code to find and add Objective-C methods (starting at an ObjCContainerDecl) into a single, static function. Also, make sure that we search into the implementations of classes and categories to find even more methods. llvm-svn: 89163
* Pass source locations of identifiers referenced by @class through ↵Ted Kremenek2009-11-176-6/+17
| | | | | | Action::ActOnForwardClassDeclaration(). llvm-svn: 89162
* Add rtti info for function prototypes and refactor. This allowsMike Stump2009-11-172-48/+77
| | | | | | pointer to member functions to work. WIP. llvm-svn: 89161
* Do not register ObjCInterfaceDecls implicitly created by @class in theTed Kremenek2009-11-172-1/+21
| | | | | | | | | | | | | | | | | | current DeclContext. These "imaginary" declarations pose issues for clients searching DeclContext for actual declarations. Instead, register them for name lookup, and add the ObjCInterfaceDecl later to the DeclContext when we hit an actual @interface declaration. This also fixes a bug where the invariant that the Decls in a DeclContext are sorted in order of their appearance is no longer violated. What could happen is that an @class causes an ObjCInterfaceDecl to get added first to the DeclContext, then the ObjCClassDecl itself is added, and then later the SourceLocation of the ObjCInterfaceDecl is updated with the correct location (which is later in the file). This breaks an assumed invariant in ResolveLocation.cpp (and possibly other clients). llvm-svn: 89160
* This patch finalizes implementatin of weak_importFariborz Jahanian2009-11-172-0/+40
| | | | | | objective-c2 classes (radar 6815425). llvm-svn: 89157
* Remove dead code.Devang Patel2009-11-172-79/+1
| | | | llvm-svn: 89156
* Add rtti support for pointer to data members.Mike Stump2009-11-173-8/+36
| | | | llvm-svn: 89155
* Drop unnecessary #include.Daniel Dunbar2009-11-172-3/+3
| | | | llvm-svn: 89154
* Remove unnecessary &&s.Daniel Dunbar2009-11-171-5/+5
| | | | llvm-svn: 89153
* More cases for weak_import objective-c2 classes.Fariborz Jahanian2009-11-171-0/+3
| | | | | | (still radar 6815425). llvm-svn: 89152
* Add ability to set code model within the execution engine buildersEric Christopher2009-11-174-10/+29
| | | | | | and creation interfaces. llvm-svn: 89151
* Remove fragile test.Jakob Stoklund Olesen2009-11-171-1/+0
| | | | llvm-svn: 89150
* Fix -Asserts warning.Daniel Dunbar2009-11-171-1/+1
| | | | llvm-svn: 89149
* Add rtti support for non-member pointers. WIP.Mike Stump2009-11-172-15/+100
| | | | llvm-svn: 89148
* More support for weak_import objective-c2 class.Fariborz Jahanian2009-11-171-0/+27
| | | | | | (radar 6815425). llvm-svn: 89146
* grammarJim Grosbach2009-11-171-2/+2
| | | | llvm-svn: 89145
* Enable arm jumpt table adjustment.Jim Grosbach2009-11-173-3/+2
| | | | llvm-svn: 89143
* Disable -split-phi-edges to unbreak the buildbotsJakob Stoklund Olesen2009-11-171-1/+1
| | | | llvm-svn: 89142
* Improve location information when adding conversion candidatesDouglas Gregor2009-11-171-2/+2
| | | | llvm-svn: 89141
* fgetln is a BSDism; replace it with more portable code.Benjamin Kramer2009-11-171-6/+9
| | | | llvm-svn: 89140
* Never call UpdateTerminator() when AnalyzeBranch would fail.Jakob Stoklund Olesen2009-11-171-1/+13
| | | | llvm-svn: 89139
* Forgot to commit test fixesAnton Korobeynikov2009-11-172-4/+4
| | | | llvm-svn: 89138
* Both Darwin as and GNU as violate ARM docs wrt printing of addrmode6Anton Korobeynikov2009-11-171-5/+2
| | | | | | alignment imm (in the same way). Fix asmprinting for non-darwin platforms. llvm-svn: 89137
* Add c-index-test mode "-test-file-scan", which scans a source file and calls ↵Ted Kremenek2009-11-172-6/+260
| | | | | | clang_getCursor() on every character. llvm-svn: 89136
* Fix test case.Ted Kremenek2009-11-171-156/+156
| | | | llvm-svn: 89135
* Added block type introspection support.David Chisnall2009-11-178-13/+125
| | | | | | As per Fariborz's suggestion, committed now but can be reverted later if the used flag is problematic for Apple. llvm-svn: 89134
* Fixed bug where ivar offsets were being initialized as 0 with the fragile ↵David Chisnall2009-11-171-1/+1
| | | | | | GNU ABI. llvm-svn: 89133
* Rename test.Ted Kremenek2009-11-171-0/+0
| | | | llvm-svn: 89132
* Add clang_getNullCursor() and clang_equalCursors() (the latter for comparing ↵Ted Kremenek2009-11-173-0/+18
| | | | | | cursors). llvm-svn: 89131
* Add a WriteAsOperand for MachineBasicBlock so MachineLoopInfo dump looks sane.Evan Cheng2009-11-173-2/+7
| | | | llvm-svn: 89130
* Fix comment.Evan Cheng2009-11-171-3/+3
| | | | llvm-svn: 89129
* Undo previous test fix. -split-phi-edges now disables automatically when theJakob Stoklund Olesen2009-11-171-1/+1
| | | | | | local register allocator is used. llvm-svn: 89127
* Enable -split-phi-edges by default, except when -regalloc=local.Jakob Stoklund Olesen2009-11-173-4/+17
| | | | | | | The local register allocator doesn't like it when LiveVariables is run. We should also disable edge splitting under -O0, but that has to wait a bit. llvm-svn: 89125
* Start support of weak_import objective-c classes.Fariborz Jahanian2009-11-172-1/+3
| | | | | | (Radar 6815425). llvm-svn: 89124
* 80-column violationsJim Grosbach2009-11-171-8/+11
| | | | llvm-svn: 89123
* Added getArchNameForAssembler method to the Triple class for which returns ↵Viktor Kutuzov2009-11-173-42/+39
| | | | | | OS and Vendor independent target assembler arch. llvm-svn: 89122
* Remove a special case for tail merging that seems to be both broken andBob Wilson2009-11-171-33/+0
| | | | | | | | | | | unnecessary. It is broken because the "isIdenticalTo" check should be negated. If that is fixed, this code causes the CodeGen/X86/tail-opts.ll test to fail, in the dont_merge_oddly function. And, I confirmed that the regression is real -- the generated code is worse. As far as I can tell, that tail-opts.ll test is checking for what this code is supposed to handle and we're doing the right thing anyway. llvm-svn: 89121
* Replace (-INT8_C(128)), which uses an illegally out-of-range argument forKen Dyck2009-11-172-76/+73
| | | | | | | INT8_C, with (-INT8_C(127)-1) in the definition of INT8_MIN. Apply similar changes to the definitions of INT16_MIN and INT24_MIN. llvm-svn: 89120
* Allow "source_filename" to be an optional argument (the client can provide ↵Ted Kremenek2009-11-172-2/+4
| | | | | | NULL). This allows the client to put the source_filename in the command_line_args without fear of the file being named twice. llvm-svn: 89118
OpenPOWER on IntegriCloud