Ted Kremenek [Mon, 20 Jul 2009 21:00:55 +0000 (21:00 +0000)]
Add XFAILED test.
llvm-svn: 76469
Ted Kremenek [Mon, 20 Jul 2009 20:38:59 +0000 (20:38 +0000)]
Add FIXME.
llvm-svn: 76466
Bill Wendling [Mon, 20 Jul 2009 20:34:46 +0000 (20:34 +0000)]
Change the casting of linkage types into a map. This makes this much more robust
as it no longer depends upon two different enums being kept in sync with each
other.
llvm-svn: 76465
Dan Gohman [Mon, 20 Jul 2009 20:32:43 +0000 (20:32 +0000)]
Clarify that OverflowingBinaryOperator is not used for SDiv, even though
SDiv is a binary operation that can overflow.
llvm-svn: 76464
Kevin Enderby [Mon, 20 Jul 2009 20:25:37 +0000 (20:25 +0000)]
Removed the DumpSymbolsandMacros and LoadSymbolsandMacros MCStreamer API as
the parsing of the .dump and .load should be done in the assembly parser and
not have any need for an MCStreamer API. Changed the code for now so these
just produce an error saying these specific directives are not yet implemented
since they are likely no longer used and may never need to be implemented.
llvm-svn: 76462
Daniel Dunbar [Mon, 20 Jul 2009 20:01:54 +0000 (20:01 +0000)]
Add MCAsmLexer interface.
- This provides the AsmLexer interface to the target specific assembly parsers.
llvm-svn: 76460
Evan Cheng [Mon, 20 Jul 2009 19:47:55 +0000 (19:47 +0000)]
Fix some sub-reg coalescing bugs where the coalescer wasn't updating the resulting interval's register class.
llvm-svn: 76458
Eli Friedman [Mon, 20 Jul 2009 19:45:16 +0000 (19:45 +0000)]
Remove FIXME that was already fixed.
llvm-svn: 76457
Bill Wendling [Mon, 20 Jul 2009 19:41:27 +0000 (19:41 +0000)]
Rename Mangler linkage enums to something less gross.
llvm-svn: 76456
Devang Patel [Mon, 20 Jul 2009 19:00:08 +0000 (19:00 +0000)]
Refactor metadata parsing routines into separate functions.
llvm-svn: 76455
Douglas Gregor [Mon, 20 Jul 2009 18:55:14 +0000 (18:55 +0000)]
When a field is variable-sized or is an array with a negative size,
don't replace the type of the field with 'int', from Enea Zaffanella!
llvm-svn: 76454
Daniel Dunbar [Mon, 20 Jul 2009 18:55:04 +0000 (18:55 +0000)]
Add MCAsmParser interface.
- This provides the AsmParser interface to the target specific assembly
parsers.
llvm-svn: 76453
Ted Kremenek [Mon, 20 Jul 2009 18:52:34 +0000 (18:52 +0000)]
Update DataflowSolver to handle the case where a successor/predecessor block
could be NULL. This allows the solver to handle optimized CFGs where branches
can be determined during CFG-construction to be infeasible.
llvm-svn: 76452
Douglas Gregor [Mon, 20 Jul 2009 18:46:59 +0000 (18:46 +0000)]
Improve GCC compatibility by allowing static tentative definitions of
incomplete type (with a warning), from Enea Zaffanella!
llvm-svn: 76451
Ted Kremenek [Mon, 20 Jul 2009 18:44:36 +0000 (18:44 +0000)]
Enhance GRBranchNodeBuilderImpl (part of GRCoreEngine) to understand the case
where the true or false CFGBlock* for a branch could be NULL. This will handle
the case where we can determine during CFG construction that a branch is
infeasible.
llvm-svn: 76450
Douglas Gregor [Mon, 20 Jul 2009 18:30:25 +0000 (18:30 +0000)]
Build FileCheck from with CMake
llvm-svn: 76449
Bill Wendling [Mon, 20 Jul 2009 18:22:52 +0000 (18:22 +0000)]
Put new enum at end of list to avoid changing ABI.
llvm-svn: 76447
Chris Lattner [Mon, 20 Jul 2009 17:59:32 +0000 (17:59 +0000)]
remove TargetAsmInfo::ExpandInlineAsm
llvm-svn: 76445
Steve Naroff [Mon, 20 Jul 2009 17:56:53 +0000 (17:56 +0000)]
5 cleanups to ObjCObjectPointerType work:
- Remove Sema::CheckPointeeTypesForAssignment(), a temporary API I added to ease migration to ObjCObjectPointerType. Convert Sema::CheckAssignmentConstraints() to no longer depend on the temporary API.
- Sema::ConvertDeclSpecToType(): Replace a couple FIXME's with an important comment/example.
- Sema::GetTypeForDeclarator(): Get the protocol's from the interface, NOT the declspec (to support the following C typedef idiom: "typedef C<P> T; T *obj").
- Sema::ObjCQualifiedIdTypesAreCompatible(): Removed some dead code.
- ASTContext::getObjCEncodingForTypeImpl(): Some minor cleanups.
llvm-svn: 76443
Chris Lattner [Mon, 20 Jul 2009 17:52:52 +0000 (17:52 +0000)]
use ExpandInlineAsm on TargetLowering instead of TargetAsmInfo.
llvm-svn: 76442
Chris Lattner [Mon, 20 Jul 2009 17:51:36 +0000 (17:51 +0000)]
Copy ExpandInlineAsm to TargetLowering from TargetAsmInfo.
llvm-svn: 76441
Dan Gohman [Mon, 20 Jul 2009 17:51:10 +0000 (17:51 +0000)]
Drop UDivOperator and introduce SDivOperator. Thanks to Chris
for noticing this.
llvm-svn: 76440
Chris Lattner [Mon, 20 Jul 2009 17:47:48 +0000 (17:47 +0000)]
add some fixme's and cleanups. TargetAsmInfo shouldn't depend on VMCore eventually.
llvm-svn: 76439
Dan Gohman [Mon, 20 Jul 2009 17:44:17 +0000 (17:44 +0000)]
Update this comment.
llvm-svn: 76438
Dan Gohman [Mon, 20 Jul 2009 17:43:30 +0000 (17:43 +0000)]
Revert the addition of hasNoPointerOverflow to GEPOperator.
Getelementptrs that are defined to wrap are virtually useless to
optimization, and getelementptrs that are undefined on any kind
of overflow are too restrictive -- it's difficult to ensure that
all intermediate addresses are within bounds. I'm going to take
a different approach.
Remove a few optimizations that depended on this flag.
llvm-svn: 76437
Fariborz Jahanian [Mon, 20 Jul 2009 17:43:15 +0000 (17:43 +0000)]
Issue a more descriptive diagnostics when mis-declaring
a destructor.
llvm-svn: 76436
Chris Lattner [Mon, 20 Jul 2009 17:23:00 +0000 (17:23 +0000)]
remove dead forward decl
llvm-svn: 76433
David Goodwin [Mon, 20 Jul 2009 17:15:03 +0000 (17:15 +0000)]
For remote execution, must cd to the executable directory since the exe expects to find a dylib in the CWD ('.').
llvm-svn: 76432
Chris Lattner [Mon, 20 Jul 2009 17:12:46 +0000 (17:12 +0000)]
rename TargetAsmInfo::getASDirective -> getDataASDirective
llvm-svn: 76431
Daniel Dunbar [Mon, 20 Jul 2009 16:50:16 +0000 (16:50 +0000)]
Fix comment.
llvm-svn: 76427
David Greene [Mon, 20 Jul 2009 16:16:06 +0000 (16:16 +0000)]
Hide the DOUT static variable behind a function interface.
llvm-svn: 76425
David Goodwin [Mon, 20 Jul 2009 15:55:39 +0000 (15:55 +0000)]
Use t2LDRri12 for frame index loads.
llvm-svn: 76424
Evan Cheng [Mon, 20 Jul 2009 15:33:09 +0000 (15:33 +0000)]
xfail for now.
llvm-svn: 76423
Eli Friedman [Mon, 20 Jul 2009 14:50:07 +0000 (14:50 +0000)]
PR4591: Make sure to initialize the pass manager before using it.
llvm-svn: 76422
Bruno Cardoso Lopes [Mon, 20 Jul 2009 08:52:02 +0000 (08:52 +0000)]
For PC relative relocations where symbols are defined in the same section they
are referenced, ignore the relocation entry and patch the relocatable field with
the computed symbol offset directly
llvm-svn: 76414
Zhongxing Xu [Mon, 20 Jul 2009 08:28:49 +0000 (08:28 +0000)]
The children statements might be NULL. Check for this case in
isContainedInStatement().
llvm-svn: 76408
Daniel Dunbar [Mon, 20 Jul 2009 07:01:01 +0000 (07:01 +0000)]
Add -std-{compile,link}-opts to bugpoint.
- Sheesh.
llvm-svn: 76402
Evan Cheng [Mon, 20 Jul 2009 06:59:32 +0000 (06:59 +0000)]
Fix PR4567. Thumb1 target was using the wrong instruction to handle sp = sub fp, #c.
llvm-svn: 76401
Chris Lattner [Mon, 20 Jul 2009 06:14:25 +0000 (06:14 +0000)]
implement a new magic global "llvm.compiler.used" which is like llvm.used, but
doesn't cause ".no_dead_strip" to be emitted on darwin.
llvm-svn: 76399
Evan Cheng [Mon, 20 Jul 2009 06:10:07 +0000 (06:10 +0000)]
Restore AsmWriterEmitter.cpp back to 74742. The recent changes broke Thumb.
llvm-svn: 76398
Chris Lattner [Mon, 20 Jul 2009 06:05:50 +0000 (06:05 +0000)]
use stripPointerCasts to simplify some code.
llvm-svn: 76397
Chris Lattner [Mon, 20 Jul 2009 05:55:19 +0000 (05:55 +0000)]
document llvm.used and llvm.metadata. Stub out llvm.global_[cd]tors
llvm-svn: 76396
Bill Wendling [Mon, 20 Jul 2009 02:41:50 +0000 (02:41 +0000)]
Rename the index to linkage types.
llvm-svn: 76394
Bill Wendling [Mon, 20 Jul 2009 02:39:26 +0000 (02:39 +0000)]
More reformatting.
llvm-svn: 76393
Bill Wendling [Mon, 20 Jul 2009 02:32:41 +0000 (02:32 +0000)]
Fix HTML violations.
llvm-svn: 76392
Bill Wendling [Mon, 20 Jul 2009 02:29:24 +0000 (02:29 +0000)]
Obsessivly reformat.
llvm-svn: 76391
Evan Cheng [Mon, 20 Jul 2009 02:12:31 +0000 (02:12 +0000)]
Model fpscr to prevent fcmped / fcmpezs etc from being deleted.
llvm-svn: 76390
Bill Wendling [Mon, 20 Jul 2009 01:03:30 +0000 (01:03 +0000)]
Add plumbing for the `linker_private' linkage type. This type is meant for
"private" symbols which the assember shouldn't strip, but which the linker may
remove after evaluation. This is mostly useful for Objective-C metadata.
This is plumbing, so we don't have a use of it yet. More to come, etc.
llvm-svn: 76385
Daniel Dunbar [Mon, 20 Jul 2009 00:24:17 +0000 (00:24 +0000)]
CMake support for SystemZ.
llvm-svn: 76384
Daniel Dunbar [Sun, 19 Jul 2009 22:48:58 +0000 (22:48 +0000)]
Tweak svn:ignore
llvm-svn: 76383
Daniel Dunbar [Sun, 19 Jul 2009 22:44:03 +0000 (22:44 +0000)]
This test should be run with -m32.
llvm-svn: 76382
Ted Kremenek [Sun, 19 Jul 2009 20:38:24 +0000 (20:38 +0000)]
Implement FIXME in pretty-printing for StringRegions.
llvm-svn: 76381
Ted Kremenek [Sun, 19 Jul 2009 20:36:24 +0000 (20:36 +0000)]
Improve debug pretty-printing for ObjCIVarRegions.
llvm-svn: 76380
Chris Lattner [Sun, 19 Jul 2009 20:19:25 +0000 (20:19 +0000)]
fix test
llvm-svn: 76378
Chris Lattner [Sun, 19 Jul 2009 20:19:04 +0000 (20:19 +0000)]
DisambiguateGlobalSymbols should not mangle intrinsics.
llvm-svn: 76377
Chris Lattner [Sun, 19 Jul 2009 20:17:11 +0000 (20:17 +0000)]
enhance the goto checker to reject jumps across __block variable definitions.
llvm-svn: 76376
Eli Friedman [Sun, 19 Jul 2009 19:53:46 +0000 (19:53 +0000)]
Don't override LowerArguments in the SPARC backend. In addition to
being more consistent with other backends, this makes the SPARC backend
deal with functions with arguments with illegal types correctly, which
fixes some tests in test/CodeGen/Generic.
llvm-svn: 76375
Evan Cheng [Sun, 19 Jul 2009 19:16:46 +0000 (19:16 +0000)]
Fix a regression from 76124. Thumb1 instructions default to S bit being true.
llvm-svn: 76374
Jakob Stoklund Olesen [Sun, 19 Jul 2009 19:09:59 +0000 (19:09 +0000)]
Fix http://llvm.org/bugs/show_bug.cgi?id=4583
Inline asm instructions may have additional <imp-def,kill> register operands.
These operands are not marked with a flag like the normal asm operands, so we
must not assert that there is a flag.
llvm-svn: 76373
Daniel Dunbar [Sun, 19 Jul 2009 08:27:16 +0000 (08:27 +0000)]
Fix build
llvm-svn: 76366
Daniel Dunbar [Sun, 19 Jul 2009 08:24:34 +0000 (08:24 +0000)]
Catch another trivial case where we can avoid emitting a separate return blcok.
llvm-svn: 76365
Daniel Dunbar [Sun, 19 Jul 2009 08:23:12 +0000 (08:23 +0000)]
Detect when the current generation point is unreachable after emitting
expressions.
- This generally catches the important case of noreturn functions.
- With the last two changes, we are down to 152 unreachable blocks emitted on
403.gcc, vs the 1805 we started with.
llvm-svn: 76364
Xerxes Ranby [Sun, 19 Jul 2009 08:10:01 +0000 (08:10 +0000)]
Fix: Kaleidoscope link in JIT and Interpreter by including JIT.h and Interpreter.h
llvm-svn: 76363
Daniel Dunbar [Sun, 19 Jul 2009 07:03:11 +0000 (07:03 +0000)]
Fix thinko.
llvm-svn: 76362
Daniel Dunbar [Sun, 19 Jul 2009 06:58:07 +0000 (06:58 +0000)]
Avoid generation of dead code in a few more situations.
- Emit variable declarations as "simple", we want to avoid forcing the creation
of a dummy basic block, but still need to make the variable available for
later use.
- With that, we can now skip IRgen for other unreachable statements (which
don't define a label).
- Anders, I added two fixmes on calls to EmitVLASize, can you check them?
llvm-svn: 76361
Nick Lewycky [Sun, 19 Jul 2009 03:44:35 +0000 (03:44 +0000)]
Fix ConstantRange::unionWith. Also make it work a little hard in some cases to
return the smallest union of two ranges instead of just any range that happens
to contain the union.
llvm-svn: 76360
Daniel Dunbar [Sun, 19 Jul 2009 02:17:34 +0000 (02:17 +0000)]
Add include needed for MSVC.
llvm-svn: 76359
Daniel Dunbar [Sun, 19 Jul 2009 01:42:34 +0000 (01:42 +0000)]
Remove redundant qualifiers.
llvm-svn: 76357
Daniel Dunbar [Sun, 19 Jul 2009 01:38:38 +0000 (01:38 +0000)]
Fix some minor MSVC compiler warnings.
llvm-svn: 76356
Daniel Dunbar [Sun, 19 Jul 2009 01:35:10 +0000 (01:35 +0000)]
MSVC: Disable 4351, a completely useless warning: "warning: I'm not miscompiling
this". Um, ok, thanks!
llvm-svn: 76355
Daniel Dunbar [Sun, 19 Jul 2009 01:33:04 +0000 (01:33 +0000)]
Unbreak build
llvm-svn: 76354
Eli Friedman [Sun, 19 Jul 2009 01:11:32 +0000 (01:11 +0000)]
Switch Alpha over to the new call lowering style. New code mostly
copied from the SystemZ target. I don't think this causes any
significant changes to the output (I compared the assembly, and the
results appeared to be essentially unchanged), although I don't actually
have an Alpha to test on.
I would appreciate if anyone with the appropriate hardware could test
this. I'm not sure if that includes anyone subscribed to llvm-commits,
though.
llvm-svn: 76353
Daniel Dunbar [Sun, 19 Jul 2009 00:46:44 +0000 (00:46 +0000)]
SystemZ *does* have a CodeGen/AsmPrinter split.
- What it doesn't have is the rest of its cmake files...
llvm-svn: 76352
Daniel Dunbar [Sun, 19 Jul 2009 00:40:45 +0000 (00:40 +0000)]
Update CMake
llvm-svn: 76351
Daniel Dunbar [Sun, 19 Jul 2009 00:26:46 +0000 (00:26 +0000)]
Tweak cmake files for the four targets that don't split CodeGen out.
- We should canonicalize this and get rid of the cmake and llvm-config hacks to
support both variants.
llvm-svn: 76350
Daniel Dunbar [Sun, 19 Jul 2009 00:21:12 +0000 (00:21 +0000)]
Add dependencies from TargetInfo onto .td generation.
- Shouldn't really be necessary, but currently .inc files get included into
some main target headers.
llvm-svn: 76349
Anders Carlsson [Sun, 19 Jul 2009 00:18:47 +0000 (00:18 +0000)]
Handle layout of non-virtual base classes.
llvm-svn: 76348
Bruno Cardoso Lopes [Sat, 18 Jul 2009 23:24:01 +0000 (23:24 +0000)]
Use R_X86_64_32S to handle Jump Table Index relocation entries. Hide TAI usage inside getSection* functions
llvm-svn: 76347
Daniel Dunbar [Sat, 18 Jul 2009 23:22:46 +0000 (23:22 +0000)]
Add some missing includes.
llvm-svn: 76346
Eli Friedman [Sat, 18 Jul 2009 23:06:53 +0000 (23:06 +0000)]
Canonicalize bitcasts between types like <1 x i64> and i64 to
insertelement/extractelement.
I'm not entirely sure this is precisely what we want to do: should we
prefer bitcast(insertelement) or insertelement(bitcast)? Similarly. should we
prefer extractelement(bitcast) or bitcast(extractelement)?
llvm-svn: 76345
Daniel Dunbar [Sat, 18 Jul 2009 23:03:22 +0000 (23:03 +0000)]
Put Target definitions inside Target specific header, and llvm namespace.
llvm-svn: 76344
Anders Carlsson [Sat, 18 Jul 2009 21:48:39 +0000 (21:48 +0000)]
Refactor field layout into a separate function.
llvm-svn: 76343
Chris Lattner [Sat, 18 Jul 2009 21:47:15 +0000 (21:47 +0000)]
fix some typos pointed out by Hidenobu Seki
llvm-svn: 76342
Mikhail Glushenkov [Sat, 18 Jul 2009 21:43:40 +0000 (21:43 +0000)]
Add a Program::GetPid() method.
llvm-svn: 76341
Mikhail Glushenkov [Sat, 18 Jul 2009 21:43:12 +0000 (21:43 +0000)]
Remove duplication in Program::Execute{And,No}Wait.
Implemented by moving the code out of static functions into methods of Program
class.
llvm-svn: 76340
Anders Carlsson [Sat, 18 Jul 2009 21:26:44 +0000 (21:26 +0000)]
Rename NextOffset to DataSize, which better matches the Itanium C++ ABI
llvm-svn: 76339
Anders Carlsson [Sat, 18 Jul 2009 21:19:52 +0000 (21:19 +0000)]
Migrate over to the record layout builder.
llvm-svn: 76338
Argyrios Kyrtzidis [Sat, 18 Jul 2009 21:18:10 +0000 (21:18 +0000)]
Re-enable 'test/SemaTemplate/temp_class_spec_neg.cpp', after commenting out the cause of the crash.
llvm-svn: 76337
Argyrios Kyrtzidis [Sat, 18 Jul 2009 21:17:58 +0000 (21:17 +0000)]
Introduce ASTLocation::getReferencedDecl(), for getting the declaration that the ASTLocation references.
llvm-svn: 76336
Argyrios Kyrtzidis [Sat, 18 Jul 2009 21:17:43 +0000 (21:17 +0000)]
Handle invalid ASTLocations instead of asserting.
llvm-svn: 76335
Bruno Cardoso Lopes [Sat, 18 Jul 2009 20:52:11 +0000 (20:52 +0000)]
Use a better name for the label relocations while emitting them for Jump Tables
llvm-svn: 76334
Anders Carlsson [Sat, 18 Jul 2009 20:50:59 +0000 (20:50 +0000)]
More layout builder work.
llvm-svn: 76333
Anders Carlsson [Sat, 18 Jul 2009 20:20:21 +0000 (20:20 +0000)]
Add a new ASTRecordLayoutBuilder class. Not used yet.
llvm-svn: 76330
Daniel Dunbar [Sat, 18 Jul 2009 20:10:04 +0000 (20:10 +0000)]
cmake builds don't need this hack for MSVC anymore.
llvm-svn: 76329
Daniel Dunbar [Sat, 18 Jul 2009 19:55:20 +0000 (19:55 +0000)]
Disable this test for now, it has been crashing on linux for weeks.
llvm-svn: 76328
Anders Carlsson [Sat, 18 Jul 2009 19:43:29 +0000 (19:43 +0000)]
Revert r75641.
llvm-svn: 76327
Bruno Cardoso Lopes [Sat, 18 Jul 2009 19:30:09 +0000 (19:30 +0000)]
Add support to properly reference private symbols on relocation entries.
Use proper relocation type to build relocations for JumpTables (rodata
sections).
llvm-svn: 76326
Eli Friedman [Sat, 18 Jul 2009 19:04:16 +0000 (19:04 +0000)]
Back out 76300; apparently the preference is to canonicalize the other
way (bitcast -> insert/extractelement).
llvm-svn: 76325
Chris Lattner [Sat, 18 Jul 2009 18:49:04 +0000 (18:49 +0000)]
add a fixme
llvm-svn: 76324
Viktor Kutuzov [Sat, 18 Jul 2009 18:39:24 +0000 (18:39 +0000)]
Require a remote command to exit with the exit status of the test program or with 255 if an error occurred.
llvm-svn: 76323