platform/upstream/llvm.git
15 years agoConsider nested-names as part of the declarator when resolving an ambiguous statement.
Argyrios Kyrtzidis [Tue, 21 Jul 2009 17:05:03 +0000 (17:05 +0000)]
Consider nested-names as part of the declarator when resolving an ambiguous statement.

llvm-svn: 76583

15 years agoadd a testcase for the pic16 section handling stuff.
Chris Lattner [Tue, 21 Jul 2009 16:48:20 +0000 (16:48 +0000)]
add a testcase for the pic16 section handling stuff.

llvm-svn: 76579

15 years agosome simple whitespace cleanup, avoid copying vectors for no reason
Chris Lattner [Tue, 21 Jul 2009 16:44:47 +0000 (16:44 +0000)]
some simple whitespace cleanup, avoid copying vectors for no reason
as much, etc.

llvm-svn: 76578

15 years agoDiagnose when a destructor uses a unrelated class type as its name.
Fariborz Jahanian [Tue, 21 Jul 2009 15:28:50 +0000 (15:28 +0000)]
Diagnose when a destructor uses a unrelated class type as its name.

llvm-svn: 76577

15 years agoAdd the location of the tag keyword into TagDecl. From Enea
Douglas Gregor [Tue, 21 Jul 2009 14:46:17 +0000 (14:46 +0000)]
Add the location of the tag keyword into TagDecl. From Enea
Zaffanella, with tweaks from Abramo Bagnara.

llvm-svn: 76576

15 years agoAdd StringRef::{substr, startswith}.
Daniel Dunbar [Tue, 21 Jul 2009 09:18:49 +0000 (09:18 +0000)]
Add StringRef::{substr, startswith}.

llvm-svn: 76559

15 years agoAnother rewriter bug exposed by recent coalescer changes. ReuseInfo::GetRegForReload...
Evan Cheng [Tue, 21 Jul 2009 09:15:00 +0000 (09:15 +0000)]
Another rewriter bug exposed by recent coalescer changes. ReuseInfo::GetRegForReload() should make sure the "switched" register is in the desired register class. I'm surprised this hasn't caused more failures in the past.

llvm-svn: 76558

15 years agoAdd missing include.
Daniel Dunbar [Tue, 21 Jul 2009 08:58:44 +0000 (08:58 +0000)]
Add missing include.

llvm-svn: 76555

15 years agoSwitch this API to StringRef.
Daniel Dunbar [Tue, 21 Jul 2009 08:57:31 +0000 (08:57 +0000)]
Switch this API to StringRef.

llvm-svn: 76554

15 years agoSimplify / normalize some uses of Value::getName.
Daniel Dunbar [Tue, 21 Jul 2009 08:54:24 +0000 (08:54 +0000)]
Simplify / normalize some uses of Value::getName.

llvm-svn: 76553

15 years agoDisambiguate an if statement.
Duncan Sands [Tue, 21 Jul 2009 07:56:29 +0000 (07:56 +0000)]
Disambiguate an if statement.

llvm-svn: 76547

15 years agoRemove the ASTContext parameter from Entity::getPrintableName().
Argyrios Kyrtzidis [Tue, 21 Jul 2009 07:52:21 +0000 (07:52 +0000)]
Remove the ASTContext parameter from Entity::getPrintableName().

llvm-svn: 76546

15 years agoAdd StringRef class, with fixes.
Daniel Dunbar [Tue, 21 Jul 2009 07:28:51 +0000 (07:28 +0000)]
Add StringRef class, with fixes.

llvm-svn: 76543

15 years agounbreak unit-tests on gcc-4.4.
Torok Edwin [Tue, 21 Jul 2009 07:09:05 +0000 (07:09 +0000)]
unbreak unit-tests on gcc-4.4.

llvm-svn: 76542

15 years agoRemove some unused code.
Daniel Dunbar [Tue, 21 Jul 2009 07:08:59 +0000 (07:08 +0000)]
Remove some unused code.

llvm-svn: 76541

15 years agoSupport adding relocations for data sections, handling the cases where
Bruno Cardoso Lopes [Tue, 21 Jul 2009 06:51:32 +0000 (06:51 +0000)]
Support adding relocations for data sections, handling the cases where
global declared symbols are initialized with references from other global
symbols.

llvm-svn: 76540

15 years agoAdd an assert for safety check.
Argyrios Kyrtzidis [Tue, 21 Jul 2009 06:48:06 +0000 (06:48 +0000)]
Add an assert for safety check.

llvm-svn: 76539

15 years agoFix a crash that occurs in this C++ case:
Argyrios Kyrtzidis [Tue, 21 Jul 2009 06:43:26 +0000 (06:43 +0000)]
Fix a crash that occurs in this C++ case:

struct foo {
  static bool value;
};
bool (foo::value); // crash because of parens

llvm-svn: 76538

15 years agoremove a very large testcase for now.
Chris Lattner [Tue, 21 Jul 2009 06:28:36 +0000 (06:28 +0000)]
remove a very large testcase for now.

llvm-svn: 76537

15 years agoAdd jumps with 8-bit relocation for assembler / disassembler. Patch by Sean Callanan.
Evan Cheng [Tue, 21 Jul 2009 06:00:18 +0000 (06:00 +0000)]
Add jumps with 8-bit relocation for assembler / disassembler. Patch by Sean Callanan.

llvm-svn: 76536

15 years agoFix a dagga combiner bug: avoid creating illegal constant.
Evan Cheng [Tue, 21 Jul 2009 05:40:15 +0000 (05:40 +0000)]
Fix a dagga combiner bug: avoid creating illegal constant.

Is this really a winning transformation?
fold (shl (srl x, c1), c2) -> (shl (and x, (shl -1, c1)), (sub c2, c1)) or
                              (srl (and x, (shl -1, c1)), (sub c1, c2))

llvm-svn: 76535

15 years agoUpdate for LLVM API change.
Owen Anderson [Tue, 21 Jul 2009 02:57:15 +0000 (02:57 +0000)]
Update for LLVM API change.

llvm-svn: 76534

15 years agoMove a bit more state over to the LLVMContext.
Owen Anderson [Tue, 21 Jul 2009 02:47:59 +0000 (02:47 +0000)]
Move a bit more state over to the LLVMContext.

llvm-svn: 76533

15 years agoKeep only canonical Decls in Entities.
Argyrios Kyrtzidis [Tue, 21 Jul 2009 02:10:32 +0000 (02:10 +0000)]
Keep only canonical Decls in Entities.

llvm-svn: 76532

15 years agoWire up CFG improvements for __builtin_choose_expr.
Mike Stump [Tue, 21 Jul 2009 01:46:17 +0000 (01:46 +0000)]
Wire up CFG improvements for __builtin_choose_expr.

llvm-svn: 76531

15 years agoWire up CFG improvements for do { } while () when the condition is known.
Mike Stump [Tue, 21 Jul 2009 01:27:50 +0000 (01:27 +0000)]
Wire up CFG improvements for do { } while () when the condition is known.

llvm-svn: 76530

15 years agoWire up for statement CFG improvements for conditionals that are known.
Mike Stump [Tue, 21 Jul 2009 01:12:51 +0000 (01:12 +0000)]
Wire up for statement CFG improvements for conditionals that are known.

llvm-svn: 76529

15 years agoAdd the following functions:
Bill Wendling [Tue, 21 Jul 2009 01:07:24 +0000 (01:07 +0000)]
Add the following functions:

- SYSCALL (normal fast system call instruction) [0f 05]
- SYSENTER (system call entry instruction) [0f 34]
- SYSEXIT (system call exit instruction) [0f 35]
- SYSEXIT64 (system call exit instruction to 64-bit user code) [REX.W 0f 35]
- SYSRET (system call return instruction) [0f 07]

Patch by Sean Callanan.

llvm-svn: 76528

15 years agoAdd a testcase for PR2831.
Dan Gohman [Tue, 21 Jul 2009 01:02:18 +0000 (01:02 +0000)]
Add a testcase for PR2831.

llvm-svn: 76527

15 years agoAdd a testcase for PR4569, which is now fixed.
Dan Gohman [Tue, 21 Jul 2009 00:50:52 +0000 (00:50 +0000)]
Add a testcase for PR4569, which is now fixed.

llvm-svn: 76526

15 years agoAdd an svn:ignore.
Dan Gohman [Tue, 21 Jul 2009 00:43:42 +0000 (00:43 +0000)]
Add an svn:ignore.

llvm-svn: 76525

15 years agoMake the range calculations for addrecs to be more conservative,
Dan Gohman [Tue, 21 Jul 2009 00:42:47 +0000 (00:42 +0000)]
Make the range calculations for addrecs to be more conservative,
as they aren't currently prepared to handle complicated overflow
cases.

llvm-svn: 76524

15 years agoWhitespace cleanups.
Dan Gohman [Tue, 21 Jul 2009 00:38:55 +0000 (00:38 +0000)]
Whitespace cleanups.

llvm-svn: 76523

15 years agoWire up CFG improvements for while when the condition is known.
Mike Stump [Tue, 21 Jul 2009 00:38:52 +0000 (00:38 +0000)]
Wire up CFG improvements for while when the condition is known.

llvm-svn: 76522

15 years agoMinor code simplification.
Dan Gohman [Tue, 21 Jul 2009 00:37:45 +0000 (00:37 +0000)]
Minor code simplification.

llvm-svn: 76521

15 years agoFix ARM isle code that optimize multiply by constants which are power-of-2 +/- 1.
Evan Cheng [Tue, 21 Jul 2009 00:31:12 +0000 (00:31 +0000)]
Fix ARM isle code that optimize multiply by constants which are power-of-2 +/- 1.

llvm-svn: 76520

15 years agoCross RC coalescing is now on by default.
Evan Cheng [Tue, 21 Jul 2009 00:22:59 +0000 (00:22 +0000)]
Cross RC coalescing is now on by default.

llvm-svn: 76519

15 years agoRemove a file from the test directory that was added by mistake.
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:17:57 +0000 (00:17 +0000)]
Remove a file from the test directory that was added by mistake.

llvm-svn: 76518

15 years agorevert 76503 while I figure out what's going on
Dale Johannesen [Tue, 21 Jul 2009 00:12:29 +0000 (00:12 +0000)]
revert 76503 while I figure out what's going on

llvm-svn: 76517

15 years agoRegionStore:
Ted Kremenek [Tue, 21 Jul 2009 00:12:07 +0000 (00:12 +0000)]
RegionStore:
-refactor logic for retrieving bindings from VarDecls into
 RegionStoreManager::RetrieveVar()
- improve RegionStoreManager::CastRetrievedVal() and SimpleSValuate::EvalCastNL
  to better handle casts of values of the same canonical type as well as
  casts of LocAsInteger values.

llvm-svn: 76516

15 years agoChange the semantics for Entity.
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:07:06 +0000 (00:07 +0000)]
Change the semantics for Entity.

Entity can now refer to declarations that are not visible outside the translation unit.
It is a wrapper of a pointer union, it's either a Decl* for declarations that don't
"cross" translation units, or an EntityImpl* which is associated with the specific "visible" Decl.

Included is a test case for handling fields across translation units.

llvm-svn: 76515

15 years agodefine __STDC_VERSION__ processor token for c94
Ryan Flynn [Tue, 21 Jul 2009 00:07:02 +0000 (00:07 +0000)]
define __STDC_VERSION__ processor token for c94

llvm-svn: 76514

15 years agoUse temporary output to avoid running index-test with the same commands multiple...
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:06:46 +0000 (00:06 +0000)]
Use temporary output to avoid running index-test with the same commands multiple times.

llvm-svn: 76513

15 years agoImplement the virtual getNextRedeclaration() for ObjCMethodDecl.
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:06:36 +0000 (00:06 +0000)]
Implement the virtual getNextRedeclaration() for ObjCMethodDecl.

If it's in an ObjCContainerDecl, its "redeclaration" is the method definition in the corresponding ObjCImplDecl.
If it's in an ObjCImplDecl, its "redeclaration" is the method in the interface.

llvm-svn: 76512

15 years agoAdd an assertion for the return value of Decl::getNextRedeclaration().
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:06:27 +0000 (00:06 +0000)]
Add an assertion for the return value of Decl::getNextRedeclaration().

llvm-svn: 76511

15 years agoRemove the ObjCCategoryImpls vector from Sema class.
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:06:20 +0000 (00:06 +0000)]
Remove the ObjCCategoryImpls vector from Sema class.
Use ObjCInterfaceDecl::getCategoryClassMethod() and ObjCInterfaceDecl::getCategoryInstanceMethod() for the same functionality.

llvm-svn: 76510

15 years agoRemove Sema::LookupObjCImplementation and replace it with just calling ObjCInterfaceD...
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:06:04 +0000 (00:06 +0000)]
Remove Sema::LookupObjCImplementation and replace it with just calling ObjCInterfaceDecl::getImplementation().

llvm-svn: 76509

15 years ago- Introduce ASTContext::getObjCImplementation() and ASTContext::setObjCImplementation...
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:05:53 +0000 (00:05 +0000)]
- Introduce ASTContext::getObjCImplementation() and ASTContext::setObjCImplementation() which use a DenseMap to associate
  an interface/category with its implementation (if one exists).

- Introduce ObjCInterfaceDecl::get/setImplementation() and ObjCCategoryDecl::get/setImplementation() that use the above methods.

- Add a compiler error for when a category is reimplemented.

llvm-svn: 76508

15 years agoHandle references from ObjCIvarRefExprs.
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:05:38 +0000 (00:05 +0000)]
Handle references from ObjCIvarRefExprs.

llvm-svn: 76507

15 years agoAdd '\n' to the end of error message.
Argyrios Kyrtzidis [Tue, 21 Jul 2009 00:05:10 +0000 (00:05 +0000)]
Add '\n' to the end of error message.

llvm-svn: 76506

15 years agoAdd a comment to clarify why there isn't any code in this spot.
Dan Gohman [Mon, 20 Jul 2009 23:54:43 +0000 (23:54 +0000)]
Add a comment to clarify why there isn't any code in this spot.

llvm-svn: 76505

15 years agoRemove the code that tried to evaluate whether (A pred B) is known
Dan Gohman [Mon, 20 Jul 2009 23:53:35 +0000 (23:53 +0000)]
Remove the code that tried to evaluate whether (A pred B) is known
by determining if (B pred (B-A)) is known, as it doesn't handle
overflow correctly.

llvm-svn: 76504

15 years agoMake sure a global matching asm 'i' constraint gets its
Dale Johannesen [Mon, 20 Jul 2009 23:39:13 +0000 (23:39 +0000)]
Make sure a global matching asm 'i' constraint gets its
flags set properly.  (hasMemory is clearly irrelevant
when matching 'i', I don't understand what this was
supposed to be doing.)
gcc.apple/asm-block-25.c (test passed before by
accident, but generated code was wrong)

llvm-svn: 76503

15 years agoMove stripping of bitcasts in inline asm arguments
Dale Johannesen [Mon, 20 Jul 2009 23:27:39 +0000 (23:27 +0000)]
Move stripping of bitcasts in inline asm arguments
to a place where it affects everything.  Occurs
only on calls AFAIK.

llvm-svn: 76502

15 years agoAdd yet more analysis for CFGs involving conditionals that are actually constant.
Mike Stump [Mon, 20 Jul 2009 23:24:15 +0000 (23:24 +0000)]
Add yet more analysis for CFGs involving conditionals that are actually constant.

llvm-svn: 76500

15 years agoMove EmitCtorPrologue to CGCXX. Add an assert and FIXMEs.
Fariborz Jahanian [Mon, 20 Jul 2009 23:18:55 +0000 (23:18 +0000)]
Move EmitCtorPrologue to CGCXX. Add an assert and FIXMEs.

llvm-svn: 76498

15 years agoEnhanced IsReinterpreted() (RegionStore.cpp) to reason about higher-order
Ted Kremenek [Mon, 20 Jul 2009 22:58:02 +0000 (22:58 +0000)]
Enhanced IsReinterpreted() (RegionStore.cpp) to reason about higher-order
pointers.

Enhanced RegionStoreManager::Retrieve() to handle automatic casts when the
loaded value is different from the requested value. This should be refined over
time, but essentially we should always symbolicate locations as locations, and
convert them to non-locations on demand.

These changes now cause 'misc-ps.m' to pass again.

llvm-svn: 76497

15 years agoMinor code simplification.
Dan Gohman [Mon, 20 Jul 2009 22:41:51 +0000 (22:41 +0000)]
Minor code simplification.

llvm-svn: 76496

15 years agoDocumentation for the new non-overflow and exact keywords.
Dan Gohman [Mon, 20 Jul 2009 22:41:19 +0000 (22:41 +0000)]
Documentation for the new non-overflow and exact keywords.

llvm-svn: 76495

15 years agoImprove message for bad destructor decl. Per Doug's comment.
Fariborz Jahanian [Mon, 20 Jul 2009 22:41:12 +0000 (22:41 +0000)]
Improve message for bad destructor decl. Per Doug's comment.

llvm-svn: 76494

15 years agoEarly ir-gen for constructor prologue. This is on going.
Fariborz Jahanian [Mon, 20 Jul 2009 22:35:22 +0000 (22:35 +0000)]
Early ir-gen for constructor prologue. This is on going.

llvm-svn: 76493

15 years agoThe upper argument of ConstantRange is exclusive, not inclusive.
Dan Gohman [Mon, 20 Jul 2009 22:34:18 +0000 (22:34 +0000)]
The upper argument of ConstantRange is exclusive, not inclusive.

llvm-svn: 76492

15 years agoclean up some formatting, indent by 2 instead of 4.
Chris Lattner [Mon, 20 Jul 2009 22:23:48 +0000 (22:23 +0000)]
clean up some formatting, indent by 2 instead of 4.

llvm-svn: 76490

15 years agoCMP and TST define CPSR, not use it.
David Goodwin [Mon, 20 Jul 2009 22:13:31 +0000 (22:13 +0000)]
CMP and TST define CPSR, not use it.

llvm-svn: 76489

15 years agoReuse VarDecl::Init to store the default argument of a ParmVarDecl,
Douglas Gregor [Mon, 20 Jul 2009 22:03:28 +0000 (22:03 +0000)]
Reuse VarDecl::Init to store the default argument of a ParmVarDecl,
reducing the size of ParmVarDecl by one pointer. Also means that we'll
properly (de-)serialize default arguments in C++ PCH files.

llvm-svn: 76487

15 years agoRe-apply 75490, 75806 and 76177 with fixes and tests. Efficiency comes
David Greene [Mon, 20 Jul 2009 22:02:59 +0000 (22:02 +0000)]
Re-apply 75490, 75806 and 76177 with fixes and tests.  Efficiency comes
next.

llvm-svn: 76486

15 years agoForgot this test earlier.
Evan Cheng [Mon, 20 Jul 2009 21:46:42 +0000 (21:46 +0000)]
Forgot this test earlier.

llvm-svn: 76485

15 years agoThis test now passes with RegionStore.
Ted Kremenek [Mon, 20 Jul 2009 21:44:10 +0000 (21:44 +0000)]
This test now passes with RegionStore.

llvm-svn: 76484

15 years agoEnhance GRExprEngine::EvalBind to handle some implicit casts from nonlocs to
Ted Kremenek [Mon, 20 Jul 2009 21:43:20 +0000 (21:43 +0000)]
Enhance GRExprEngine::EvalBind to handle some implicit casts from nonlocs to
locs and vis versa.

llvm-svn: 76483

15 years agoEnhance SimpleSValuator to handle nonloc::LocAsInteger -> location casts.
Ted Kremenek [Mon, 20 Jul 2009 21:39:27 +0000 (21:39 +0000)]
Enhance SimpleSValuator to handle nonloc::LocAsInteger -> location casts.

llvm-svn: 76481

15 years agoSimplify the code in DarwinTargetAsmInfo::emitUsedDirectiveFor so that humans can...
Bill Wendling [Mon, 20 Jul 2009 21:38:26 +0000 (21:38 +0000)]
Simplify the code in DarwinTargetAsmInfo::emitUsedDirectiveFor so that humans can understand it.

llvm-svn: 76480

15 years agoPass in the unfortunately named "LessPrivatePrefix" for the
Bill Wendling [Mon, 20 Jul 2009 21:30:28 +0000 (21:30 +0000)]
Pass in the unfortunately named "LessPrivatePrefix" for the
"LinkerPrivatePrefix". It seems to have been used in only one place before I
started this "linker_private" business. I'm thinking that a rename is in
order...

llvm-svn: 76479

15 years agoRemove an apparently unused forward class decl.
Mike Stump [Mon, 20 Jul 2009 21:23:55 +0000 (21:23 +0000)]
Remove an apparently unused forward class decl.

llvm-svn: 76476

15 years agoAssembly and Bitcode support for unsigned/signed overflow flags and
Dan Gohman [Mon, 20 Jul 2009 21:19:07 +0000 (21:19 +0000)]
Assembly and Bitcode support for unsigned/signed overflow flags and
exact sdiv flags.

llvm-svn: 76475

15 years agoRemove an apparently unused header.
Mike Stump [Mon, 20 Jul 2009 21:17:53 +0000 (21:17 +0000)]
Remove an apparently unused header.

llvm-svn: 76473

15 years agoUse TII->findCommutedOpIndices to find the commute operands (rather than guessing).
Evan Cheng [Mon, 20 Jul 2009 21:16:08 +0000 (21:16 +0000)]
Use TII->findCommutedOpIndices to find the commute operands (rather than guessing).

llvm-svn: 76472

15 years agoAdd XFAILED test.
Ted Kremenek [Mon, 20 Jul 2009 21:00:55 +0000 (21:00 +0000)]
Add XFAILED test.

llvm-svn: 76469

15 years agoAdd FIXME.
Ted Kremenek [Mon, 20 Jul 2009 20:38:59 +0000 (20:38 +0000)]
Add FIXME.

llvm-svn: 76466

15 years agoChange the casting of linkage types into a map. This makes this much more robust
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

15 years agoClarify that OverflowingBinaryOperator is not used for SDiv, even though
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

15 years agoRemoved the DumpSymbolsandMacros and LoadSymbolsandMacros MCStreamer API as
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

15 years agoAdd MCAsmLexer interface.
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

15 years agoFix some sub-reg coalescing bugs where the coalescer wasn't updating the resulting...
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

15 years agoRemove FIXME that was already fixed.
Eli Friedman [Mon, 20 Jul 2009 19:45:16 +0000 (19:45 +0000)]
Remove FIXME that was already fixed.

llvm-svn: 76457

15 years agoRename Mangler linkage enums to something less gross.
Bill Wendling [Mon, 20 Jul 2009 19:41:27 +0000 (19:41 +0000)]
Rename Mangler linkage enums to something less gross.

llvm-svn: 76456

15 years agoRefactor metadata parsing routines into separate functions.
Devang Patel [Mon, 20 Jul 2009 19:00:08 +0000 (19:00 +0000)]
Refactor metadata parsing routines into separate functions.

llvm-svn: 76455

15 years agoWhen a field is variable-sized or is an array with a negative size,
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

15 years agoAdd MCAsmParser interface.
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

15 years agoUpdate DataflowSolver to handle the case where a successor/predecessor block
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

15 years agoImprove GCC compatibility by allowing static tentative definitions of
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

15 years agoEnhance GRBranchNodeBuilderImpl (part of GRCoreEngine) to understand the case
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

15 years agoBuild FileCheck from with CMake
Douglas Gregor [Mon, 20 Jul 2009 18:30:25 +0000 (18:30 +0000)]
Build FileCheck from with CMake

llvm-svn: 76449

15 years agoPut new enum at end of list to avoid changing ABI.
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

15 years agoremove TargetAsmInfo::ExpandInlineAsm
Chris Lattner [Mon, 20 Jul 2009 17:59:32 +0000 (17:59 +0000)]
remove TargetAsmInfo::ExpandInlineAsm

llvm-svn: 76445

15 years ago5 cleanups to ObjCObjectPointerType work:
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

15 years agouse ExpandInlineAsm on TargetLowering instead of TargetAsmInfo.
Chris Lattner [Mon, 20 Jul 2009 17:52:52 +0000 (17:52 +0000)]
use ExpandInlineAsm on TargetLowering instead of TargetAsmInfo.

llvm-svn: 76442

15 years agoCopy ExpandInlineAsm to TargetLowering from TargetAsmInfo.
Chris Lattner [Mon, 20 Jul 2009 17:51:36 +0000 (17:51 +0000)]
Copy ExpandInlineAsm to TargetLowering from TargetAsmInfo.

llvm-svn: 76441

15 years agoDrop UDivOperator and introduce SDivOperator. Thanks to Chris
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

15 years agoadd some fixme's and cleanups. TargetAsmInfo shouldn't depend on VMCore eventually.
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

15 years agoUpdate this comment.
Dan Gohman [Mon, 20 Jul 2009 17:44:17 +0000 (17:44 +0000)]
Update this comment.

llvm-svn: 76438