Bill Wendling [Tue, 28 Jul 2009 21:54:03 +0000 (21:54 +0000)]
Use the preferred EH data format for the preferred EH data format.
llvm-svn: 77373
Bill Wendling [Tue, 28 Jul 2009 21:53:17 +0000 (21:53 +0000)]
Darwin outputs (DW_EH_PE_pcrel | DW_EH_PE_indirect | DW_EH_PE_sdata4) when we're
dealing with Data.
llvm-svn: 77372
Bill Wendling [Tue, 28 Jul 2009 21:50:32 +0000 (21:50 +0000)]
Remove unused parameter name.
llvm-svn: 77371
Devang Patel [Tue, 28 Jul 2009 21:49:47 +0000 (21:49 +0000)]
Rename MDNode.h header. It defines MDnode and other metadata classes.
New name is Metadata.h.
llvm-svn: 77370
Evan Cheng [Tue, 28 Jul 2009 21:49:18 +0000 (21:49 +0000)]
Fix a typo.
llvm-svn: 77369
Owen Anderson [Tue, 28 Jul 2009 21:22:35 +0000 (21:22 +0000)]
Update for LLVM API change.
llvm-svn: 77368
Owen Anderson [Tue, 28 Jul 2009 21:19:26 +0000 (21:19 +0000)]
Return ConstantVector to 2.5 API.
llvm-svn: 77366
Anders Carlsson [Tue, 28 Jul 2009 21:03:34 +0000 (21:03 +0000)]
Remove the old RecordOrganizer.
llvm-svn: 77365
Evan Cheng [Tue, 28 Jul 2009 20:53:24 +0000 (20:53 +0000)]
In thumb2 mode, add pc is unpredictable. Use add + mov pc instead (that is until more optimization goes in).
llvm-svn: 77364
David Goodwin [Tue, 28 Jul 2009 20:51:25 +0000 (20:51 +0000)]
Remove support for ORN to workaround <rdar://problem/7096522>.
llvm-svn: 77363
Daniel Dunbar [Tue, 28 Jul 2009 20:47:52 +0000 (20:47 +0000)]
Provide generic MCAsmParser when constructing target specific parsers.
llvm-svn: 77362
Ted Kremenek [Tue, 28 Jul 2009 20:46:55 +0000 (20:46 +0000)]
Fix PR 4631. The compound initializers of unions were not being evaluated, which
could cause false positives if any the subexpressions had side-effects. These
initializers weren't evaluated because the StoreManager would need to handle
them, but that's an orthogonal problem of whether or not the StoreManager can
handle the binding.
llvm-svn: 77361
Devang Patel [Tue, 28 Jul 2009 19:55:13 +0000 (19:55 +0000)]
Add DebugInfoEnumerator to collect debug info.
llvm-svn: 77360
Andreas Bolka [Tue, 28 Jul 2009 19:50:13 +0000 (19:50 +0000)]
Simplify LDA-internal interface.
llvm-svn: 77359
Andreas Bolka [Tue, 28 Jul 2009 19:49:49 +0000 (19:49 +0000)]
Add LDA statistics.
llvm-svn: 77358
Andreas Bolka [Tue, 28 Jul 2009 19:49:25 +0000 (19:49 +0000)]
Minor factoring, naming and formatting cleanups.
llvm-svn: 77357
Ted Kremenek [Tue, 28 Jul 2009 19:34:30 +0000 (19:34 +0000)]
Add missing break statement.
llvm-svn: 77356
Mike Stump [Tue, 28 Jul 2009 19:31:47 +0000 (19:31 +0000)]
Update comments.
llvm-svn: 77355
Bruno Cardoso Lopes [Tue, 28 Jul 2009 19:25:33 +0000 (19:25 +0000)]
Handle null and file symbol on doInitialization
llvm-svn: 77354
Ted Kremenek [Tue, 28 Jul 2009 19:24:31 +0000 (19:24 +0000)]
Fix regression in attribute 'nonnull' checking when a transition node
was created but not added to the destination NodeSet. This fixes PR 4630.
llvm-svn: 77353
Anders Carlsson [Tue, 28 Jul 2009 19:24:15 +0000 (19:24 +0000)]
Add a field for C++ specific data to ASTRecordLayout. Use it to store the non-virtual size and alignment + base offsets.
llvm-svn: 77352
Fariborz Jahanian [Tue, 28 Jul 2009 18:54:57 +0000 (18:54 +0000)]
More cleanup of data member access and then some.
llvm-svn: 77351
Chris Lattner [Tue, 28 Jul 2009 18:48:43 +0000 (18:48 +0000)]
more simplifications and cleanup. :)
llvm-svn: 77350
Owen Anderson [Tue, 28 Jul 2009 18:33:04 +0000 (18:33 +0000)]
Update for LLVM API change.
llvm-svn: 77349
Owen Anderson [Tue, 28 Jul 2009 18:32:17 +0000 (18:32 +0000)]
Change ConstantArray to 2.5 API.
llvm-svn: 77347
Chris Lattner [Tue, 28 Jul 2009 18:25:28 +0000 (18:25 +0000)]
fix PR4633: cast to void should silence the 'unused expression' warning.
llvm-svn: 77344
Chris Lattner [Tue, 28 Jul 2009 18:25:06 +0000 (18:25 +0000)]
add some fixme's
llvm-svn: 77343
Chris Lattner [Tue, 28 Jul 2009 18:22:50 +0000 (18:22 +0000)]
this test crashes, disable it harder.
llvm-svn: 77342
Daniel Dunbar [Tue, 28 Jul 2009 18:17:26 +0000 (18:17 +0000)]
Switch X86 assembly parser to using the generic lexer interface.
llvm-svn: 77341
David Goodwin [Tue, 28 Jul 2009 18:15:38 +0000 (18:15 +0000)]
Add workaround for <rdar://problem/7098328>.
llvm-svn: 77340
Fariborz Jahanian [Tue, 28 Jul 2009 18:09:28 +0000 (18:09 +0000)]
Some code cleanup.
llvm-svn: 77339
Chris Lattner [Tue, 28 Jul 2009 18:04:18 +0000 (18:04 +0000)]
fix testcase for previous patch.
llvm-svn: 77338
Daniel Dunbar [Tue, 28 Jul 2009 17:58:44 +0000 (17:58 +0000)]
Expose Tokens to target specific assembly parsers.
llvm-svn: 77337
Chris Lattner [Tue, 28 Jul 2009 17:57:51 +0000 (17:57 +0000)]
Fix PR4639, a ELF-TLS regression from some of my refactoring.
llvm-svn: 77336
Anders Carlsson [Tue, 28 Jul 2009 17:56:36 +0000 (17:56 +0000)]
More CGRecordLayoutBuilder cleanup.
llvm-svn: 77335
Chris Lattner [Tue, 28 Jul 2009 17:50:28 +0000 (17:50 +0000)]
the apple "ld_classic" linker doesn't support .literal16 in 32-bit
mode, and "ld64" (the default linker) falls back to it in -static
mode.
llvm-svn: 77334
Fariborz Jahanian [Tue, 28 Jul 2009 17:38:28 +0000 (17:38 +0000)]
More work toward data member access ir-gen.
llvm-svn: 77332
Daniel Dunbar [Tue, 28 Jul 2009 17:34:57 +0000 (17:34 +0000)]
Tweak LLVM emacs style to make default namespace indentation closer to style
guide.
llvm-svn: 77331
Anders Carlsson [Tue, 28 Jul 2009 17:14:18 +0000 (17:14 +0000)]
Add two more tests.
llvm-svn: 77330
David Goodwin [Tue, 28 Jul 2009 17:06:49 +0000 (17:06 +0000)]
Add Thumb-2 patterns for ARMsrl_flag and ARMsra_flag.
llvm-svn: 77329
Daniel Dunbar [Tue, 28 Jul 2009 16:56:42 +0000 (16:56 +0000)]
Switch AsmLexer::Lex to returning a reference to the current token.
llvm-svn: 77328
David Greene [Tue, 28 Jul 2009 16:49:24 +0000 (16:49 +0000)]
Add reload and remat backscheduling. This is disabled by default. Use
-schedule-spills=true to enable.
llvm-svn: 77327
Chris Lattner [Tue, 28 Jul 2009 16:49:19 +0000 (16:49 +0000)]
fix unused variable warning
llvm-svn: 77326
Douglas Gregor [Tue, 28 Jul 2009 16:39:54 +0000 (16:39 +0000)]
Add a template test that requires canonical expression comparison
llvm-svn: 77325
Douglas Gregor [Tue, 28 Jul 2009 16:39:25 +0000 (16:39 +0000)]
Fix a typo in a comment
llvm-svn: 77324
Daniel Dunbar [Tue, 28 Jul 2009 16:38:40 +0000 (16:38 +0000)]
Drop some AsmLexer methods in favor of their AsmToken equivalents.
llvm-svn: 77323
Daniel Dunbar [Tue, 28 Jul 2009 16:08:33 +0000 (16:08 +0000)]
llvm-mc: Sink token enum into AsmToken.
llvm-svn: 77322
Douglas Gregor [Tue, 28 Jul 2009 15:32:17 +0000 (15:32 +0000)]
Profiling the pointer of a canonical type is sufficient to uniquely identify the type
llvm-svn: 77321
Douglas Gregor [Tue, 28 Jul 2009 15:27:13 +0000 (15:27 +0000)]
Finish profile support for statements.
llvm-svn: 77320
Douglas Gregor [Tue, 28 Jul 2009 14:44:31 +0000 (14:44 +0000)]
Complete profile support for C++ and Objective-C expressions
llvm-svn: 77318
Stefanus Du Toit [Tue, 28 Jul 2009 13:41:07 +0000 (13:41 +0000)]
Include cmath/math.h in DataTypes.h regardless of whether MSVC is being used.
Fixes MSVC build of LiveInterval.cpp.
Patch by Nicolas Capens.
llvm-svn: 77317
Evan Cheng [Tue, 28 Jul 2009 07:38:35 +0000 (07:38 +0000)]
tADDrSPI doesn't have a predicate operand, but tADDhirr and tADDi3 have.
llvm-svn: 77305
Nick Lewycky [Tue, 28 Jul 2009 06:53:50 +0000 (06:53 +0000)]
Remove memory corruption bug. string.c_str() was returning a temporary that was
dead before we used it.
llvm-svn: 77304
John McCall [Tue, 28 Jul 2009 06:52:18 +0000 (06:52 +0000)]
Bounds checking for address spaces.
llvm-svn: 77303
Daniel Dunbar [Tue, 28 Jul 2009 06:29:46 +0000 (06:29 +0000)]
CallExpr's SubExprs sometimes were allocated in the wrong place.
llvm-svn: 77302
Evan Cheng [Tue, 28 Jul 2009 06:24:12 +0000 (06:24 +0000)]
Code clean up. No functionality changes.
llvm-svn: 77301
Evan Cheng [Tue, 28 Jul 2009 05:48:47 +0000 (05:48 +0000)]
- More refactoring. This gets rid of all of the getOpcode calls.
- This change also makes it possible to switch between ARM / Thumb on a
per-function basis.
- Fixed thumb2 routine which expand reg + arbitrary immediate. It was using
using ARM so_imm logic.
- Use movw and movt to do reg + imm when profitable.
- Other code clean ups and minor optimizations.
llvm-svn: 77300
John McCall [Tue, 28 Jul 2009 05:41:20 +0000 (05:41 +0000)]
Reimplement QualifierSet using a single word, as requested by dgregor.
llvm-svn: 77299
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:17 +0000 (05:11 +0000)]
Implement ObjCMethodDecl::getCanonicalDecl().
llvm-svn: 77298
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:05 +0000 (05:11 +0000)]
-Add ObjCCategoryImplDecl::getCategoryClass() which returns the category interface decl.
-Correct ObjCMethodDecl::getNextRedeclaration(); A method in a ObjCCategoryImplDecl should point to
a method in the associated ObjCCategoryDecl, not the ObjCInterfaceDecl.
llvm-svn: 77297
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:10:52 +0000 (05:10 +0000)]
Use ObjCImplDecl in place of ObjCCategoryImplDecl/ObjCImplementationDecl.
llvm-svn: 77296
Chris Lattner [Tue, 28 Jul 2009 03:20:34 +0000 (03:20 +0000)]
fix a casting problem on the llvm-x86_64-linux tester
llvm-svn: 77295
Chris Lattner [Tue, 28 Jul 2009 03:13:23 +0000 (03:13 +0000)]
Rip all of the global variable lowering logic out of TargetAsmInfo. Since
it is highly specific to the object file that will be generated in the end,
this introduces a new TargetLoweringObjectFile interface that is implemented
for each of ELF/MachO/COFF/Alpha/PIC16 and XCore.
Though still is still a brutal and ugly refactoring, this is a major step
towards goodness.
This patch also:
1. fixes a bunch of dangling pointer problems in the PIC16 backend.
2. disables the TargetLowering copy ctor which PIC16 was accidentally using.
3. gets us closer to xcore having its own crazy target section flags and
pic16 not having to shadow sections with its own objects.
4. fixes wierdness where ELF targets would set CStringSection but not
CStringSection_. Factor the code better.
5. fixes some bugs in string lowering on ELF targets.
llvm-svn: 77294
Chris Lattner [Tue, 28 Jul 2009 03:05:40 +0000 (03:05 +0000)]
don't copy TargetLowering.
llvm-svn: 77293
Daniel Dunbar [Tue, 28 Jul 2009 03:00:54 +0000 (03:00 +0000)]
llvm-mc: Factor AsmToken class out of AsmLexer.
llvm-svn: 77292
Mike Stump [Tue, 28 Jul 2009 02:25:19 +0000 (02:25 +0000)]
Make longjmp a real builtin.
llvm-svn: 77291
Dan Gohman [Tue, 28 Jul 2009 01:40:03 +0000 (01:40 +0000)]
Teach instcombine to respect and preserve inbounds. Add inbounds
to a few tests where it is required for the expected transformation.
llvm-svn: 77290
Mike Stump [Tue, 28 Jul 2009 01:35:34 +0000 (01:35 +0000)]
Fix a small little typo.
llvm-svn: 77289
John McCall [Tue, 28 Jul 2009 01:00:58 +0000 (01:00 +0000)]
Allow functions to be marked "implicit return zero" and so mark main().
Codegen by initializing the return value with its LLVM type's null value.
llvm-svn: 77288
Daniel Dunbar [Tue, 28 Jul 2009 00:58:50 +0000 (00:58 +0000)]
llvm-mc: Stop uniqueing string tokens, nothing actually uses this.
llvm-svn: 77287
Dan Gohman [Tue, 28 Jul 2009 00:37:50 +0000 (00:37 +0000)]
Replace dyn_castGetElementPtr with dyn_cast<GEPOperator>.
llvm-svn: 77286
Dan Gohman [Tue, 28 Jul 2009 00:37:06 +0000 (00:37 +0000)]
Grab the LLVMContext and parent Module of SI ahead of the
point where SI can get deleted. This fixes a use of free'd memory.
This fixes Externals/Povray.
llvm-svn: 77285
Douglas Gregor [Tue, 28 Jul 2009 00:33:38 +0000 (00:33 +0000)]
Add a Profile function for statements so that we can (eventually) determine
when statements and expressions are equivalent.
llvm-svn: 77284
Ted Kremenek [Tue, 28 Jul 2009 00:14:21 +0000 (00:14 +0000)]
Only generate preprocessed files during crashes using Clang, not GCC.
llvm-svn: 77281
Ted Kremenek [Tue, 28 Jul 2009 00:07:15 +0000 (00:07 +0000)]
Fix helper function GetNextStmt() to look for the first statement that has a
valid SourceLocation.
llvm-svn: 77280
Mike Stump [Tue, 28 Jul 2009 00:07:08 +0000 (00:07 +0000)]
Make sure to move the comment with the code.
llvm-svn: 77279
David Goodwin [Mon, 27 Jul 2009 23:34:12 +0000 (23:34 +0000)]
ORN does not require (and can not have) the ".w" suffix. "Orthogonality" is a dirty word at ARM.
llvm-svn: 77275
Mike Stump [Mon, 27 Jul 2009 23:33:34 +0000 (23:33 +0000)]
Fix a release-asserts warning. Debug functions should be marked used,
if there are no other uses. If people don't need this routine
anymore, if should be deleted.
llvm-svn: 77274
Dan Gohman [Mon, 27 Jul 2009 23:23:47 +0000 (23:23 +0000)]
Pass true to the Internalize parameter of createStandardLTOPasses,
to match llvm-ld's default behavior.
llvm-svn: 77273
Daniel Dunbar [Mon, 27 Jul 2009 23:20:52 +0000 (23:20 +0000)]
llvm-mc: Implement .abort fully in the front end
llvm-svn: 77272
Mike Stump [Mon, 27 Jul 2009 23:14:11 +0000 (23:14 +0000)]
Avoid build warnings.
llvm-svn: 77271
Fariborz Jahanian [Mon, 27 Jul 2009 23:12:41 +0000 (23:12 +0000)]
Patch for objc's zero-const exception to not assume
that @catch(...) cathces all exceptions (c++ objects
are not cought by that).
llvm-svn: 77270
Daniel Dunbar [Mon, 27 Jul 2009 22:39:14 +0000 (22:39 +0000)]
Add a comment on Value explaining the current getName() behavior.
llvm-svn: 77269
Owen Anderson [Mon, 27 Jul 2009 22:29:56 +0000 (22:29 +0000)]
Update for LLVM API change.
llvm-svn: 77267
Owen Anderson [Mon, 27 Jul 2009 22:29:26 +0000 (22:29 +0000)]
Move ConstantStruct back to 2.5 API.
llvm-svn: 77266
Mike Stump [Mon, 27 Jul 2009 22:25:19 +0000 (22:25 +0000)]
Ensure we can work through typedefs.
llvm-svn: 77265
Ted Kremenek [Mon, 27 Jul 2009 22:13:39 +0000 (22:13 +0000)]
(1) Enable PlistDiagnostics to take an option "PathDiagnosticClientFactory"
object that it can use to forward PathDiagnostics for further processing. Along
with this feature, the PlistDiagnostics object logs which files are created by
the forwarding of the PathDiagnostics.
(2) Create a new PathDiagnosticClientFactory object for HTMLDiagnostics,
allowing other PathDiagnosticClients to forward PathDiagnostics through an
opaque interface.
(3) Create a "plist-html" diagnostics option in AnalysisConsumer to allow the
logging of HTML files created in a hybrid Plist+HTML diagnostic client.
llvm-svn: 77264
Ted Kremenek [Mon, 27 Jul 2009 22:10:34 +0000 (22:10 +0000)]
Add scan-build support for 'plist-html', a hybrid mode that supports the
creation of both HTML and plist files. Plist files are currently not generated
using the same layout algorithm as just specifying '-plist', so this is mainly
intended to help support automated runs of the analyzer.
llvm-svn: 77263
Dan Gohman [Mon, 27 Jul 2009 21:59:50 +0000 (21:59 +0000)]
Add a comment about the "getelementptr null" trick.
llvm-svn: 77262
Dan Gohman [Mon, 27 Jul 2009 21:55:32 +0000 (21:55 +0000)]
Add inbounds to the polygen grammar.
llvm-svn: 77261
Dan Gohman [Mon, 27 Jul 2009 21:54:51 +0000 (21:54 +0000)]
vim syntax highlighting for inbounds keyword.
llvm-svn: 77260
Dan Gohman [Mon, 27 Jul 2009 21:53:46 +0000 (21:53 +0000)]
Add a new keyword 'inbounds' for use with getelementptr. See the
LangRef.html changes for details.
llvm-svn: 77259
Daniel Dunbar [Mon, 27 Jul 2009 21:49:56 +0000 (21:49 +0000)]
llvm-mc: Move AsmLexer::getCurStrVal to StringRef based API.
- My DFS traversal of LLVM is, at least for now, nearly complete! :)
llvm-svn: 77258
Dan Gohman [Mon, 27 Jul 2009 21:49:34 +0000 (21:49 +0000)]
Order unsigned before signed, for consistency.
llvm-svn: 77257
Daniel Dunbar [Mon, 27 Jul 2009 21:47:07 +0000 (21:47 +0000)]
Unbreak build.
llvm-svn: 77256
Dan Gohman [Mon, 27 Jul 2009 21:46:02 +0000 (21:46 +0000)]
Make raw_null_ostream flush its buffer in its destructor, so that
it conforms to the assertion added in r77245. This fixes a failure
in qa_override.c in clang's testsuite.
llvm-svn: 77255
Mike Stump [Mon, 27 Jul 2009 21:45:16 +0000 (21:45 +0000)]
Add knowledge about _longjmp being noreturn.
llvm-svn: 77254
Mike Stump [Mon, 27 Jul 2009 21:33:40 +0000 (21:33 +0000)]
Add builtin knowledge about longjmp being noreturn. Add printing for
the noreturn attribute.
llvm-svn: 77253
Chris Lattner [Mon, 27 Jul 2009 21:28:04 +0000 (21:28 +0000)]
hoist MCContext/MCStreamer up to AsmPrinter since we're going to start creating
MCSections soon instead of Section for all targets, and we need something to
own them.
llvm-svn: 77252
Daniel Dunbar [Mon, 27 Jul 2009 21:22:30 +0000 (21:22 +0000)]
Move MCContext and friends to StringRef based APIs.
llvm-svn: 77251