Eli Friedman
4d05198d1f
Fix llvm::CloneModule to correctly clone globals. Patch per bug report by Simon Moll on llvmdev.
...
llvm-svn: 137654
2011-08-15 21:05:06 +00:00
Richard Smith
a77a0a6bf2
Track in the AST whether a function is constexpr.
...
llvm-svn: 137653
2011-08-15 21:04:07 +00:00
Eli Friedman
b9d5a63c86
Fix predicates methods on Instruction to handle atomic load/store correctly.
...
llvm-svn: 137652
2011-08-15 21:00:18 +00:00
Eric Christopher
8c5f3f7624
Fix this test to avoid leaving a temporary file behind.
...
llvm-svn: 137651
2011-08-15 20:55:03 +00:00
Eli Friedman
5494adac67
Misc analysis passes that need to be aware of atomic load/store.
...
llvm-svn: 137650
2011-08-15 20:54:19 +00:00
Jim Grosbach
b59abbd4fd
Move MatchResultTy enum into base class definition.
...
No need for it to be redefined as part of every derived target asm parser
class.
llvm-svn: 137649
2011-08-15 20:53:08 +00:00
Eli Friedman
91386c7be4
Atomic load/store support in LICM.
...
llvm-svn: 137648
2011-08-15 20:52:09 +00:00
Owen Anderson
1d5d2cac8c
Enforce the constraint that Rt must be even on LDRD/STRD instructions in ARM mode. Update tests to reflect this fact.
...
Patch by James Molloy.
llvm-svn: 137647
2011-08-15 20:51:32 +00:00
Eric Christopher
990dd3d0fb
Add an ipsccp test. Migrated from test/FrontendC++.
...
llvm-svn: 137646
2011-08-15 20:50:36 +00:00
Owen Anderson
944f4923a4
Add a test for Thumb1 LDRSH decoding.
...
llvm-svn: 137645
2011-08-15 20:15:43 +00:00
Owen Anderson
f746b0ec53
Add testcase for STRH. Patch by James Molloy.
...
llvm-svn: 137644
2011-08-15 20:12:03 +00:00
Owen Anderson
de25f9aa8f
Remove dead classes.
...
llvm-svn: 137643
2011-08-15 20:11:11 +00:00
Bill Wendling
d9fb470758
The "landingpad" instruction will never be "trivially" dead.
...
llvm-svn: 137642
2011-08-15 20:10:51 +00:00
Owen Anderson
61a3ece665
Fix incorrect encoding of UMAAL and friends. Patch by James Molloy.
...
llvm-svn: 137641
2011-08-15 20:08:25 +00:00
Enrico Granata
109c4c7f71
One-line fix for a possible spurious truncation warning
...
llvm-svn: 137640
2011-08-15 19:24:02 +00:00
Bob Wilson
11403367c0
Make -findirect-virtual-calls and -fterminated-vtables aliases of -fapple-kext.
...
Outside the driver, they were already treated that way, but the driver was not
giving them the same special treatment as -fapple-kext, e.g., falling back to
llvm-gcc for i386/Darwin kexts. Radar 9868422.
llvm-svn: 137639
2011-08-15 19:13:06 +00:00
Bob Wilson
08b3756633
Remove duplicate option.
...
llvm-svn: 137638
2011-08-15 19:13:02 +00:00
Devang Patel
99819b527d
Simplify mapping to variable from its abstract variable info.
...
When a variable is inlined multiple places, abstract variable keeps name, location, type etc.. info and all other concreate instances of the variable directly refers to abstract variable.
llvm-svn: 137637
2011-08-15 19:01:20 +00:00
Owen Anderson
3157f2eebe
Fix decoding LDRSB and LDRSH in Thumb1 mode. Patch by James Molloy.
...
llvm-svn: 137636
2011-08-15 19:00:06 +00:00
Owen Anderson
b9d82f411c
Fix problems decoding the to/from-lane NEON memory instructions, and add a comprehensive NEON decoding testcase.
...
llvm-svn: 137635
2011-08-15 18:44:44 +00:00
Argyrios Kyrtzidis
48ff9a0bd5
[libclang] Handle AttributedTypeLoc for cursor visitation. Fixes rdar://9535717.
...
llvm-svn: 137634
2011-08-15 18:44:43 +00:00
Anna Zaks
29f9b7adc3
MacOSKeychainAPIChecker: Use llvm::SmallString instead of std::string (as per code review for r137523).
...
llvm-svn: 137633
2011-08-15 18:42:00 +00:00
Devang Patel
d7d80aadd1
Refactor.
...
llvm-svn: 137632
2011-08-15 18:40:16 +00:00
Devang Patel
6e4d2c9fb7
Refactor.
...
llvm-svn: 137631
2011-08-15 18:35:42 +00:00
Greg Clayton
6bc11b2756
Removed debug printf that was left in.
...
llvm-svn: 137630
2011-08-15 18:24:44 +00:00
Bill Wendling
dd94d3426b
Don't try to sink the landingpad instruction. It's immobile.
...
llvm-svn: 137629
2011-08-15 18:23:40 +00:00
Bill Wendling
9af5b22b76
The landingpad instruction isn't loop-invariant.
...
llvm-svn: 137628
2011-08-15 18:22:49 +00:00
Bill Wendling
88294cdbe0
Mark the SCC as "might unwind" if we run into a 'resume' instruction.
...
llvm-svn: 137627
2011-08-15 18:22:00 +00:00
Bill Wendling
b9c0e0db53
Skip the insertion iterator past the landingpad instruction if there.
...
llvm-svn: 137626
2011-08-15 18:21:07 +00:00
Johnny Chen
0dc84d093e
Add new SBAddress APIs to the fuzz tests.
...
llvm-svn: 137625
2011-08-15 18:19:51 +00:00
Marshall Clow
9b454bc912
reformatted to match Clang style; thanks to John McCall for the nudge
...
llvm-svn: 137623
2011-08-15 18:06:47 +00:00
Enrico Granata
379447a7f2
Refactoring of ValueObject::DumpValueObject and 'frame variable', 'target variable' commands to use an Options object instead of passing an ever-increasing number of arguments to the DumpValueObject() method, with the ultimate aim of making that call private implementation
...
llvm-svn: 137622
2011-08-15 18:01:31 +00:00
Devang Patel
dfd6ec3ce1
Refactor. Global variables are part of compile unit so let CompileUnit create new global variable.
...
llvm-svn: 137621
2011-08-15 17:57:41 +00:00
Matt Beaumont-Gay
0a0ba9d883
Add fixit notes for -Wconstant-logical-operand.
...
llvm-svn: 137620
2011-08-15 17:50:06 +00:00
Jim Grosbach
ccf5233ae8
Tidy up trailing whitespace.
...
llvm-svn: 137619
2011-08-15 17:30:25 +00:00
Devang Patel
895437142a
Refactor. A subprogram is part of compile unit so let CompileUnit construct new subprogram.
...
llvm-svn: 137618
2011-08-15 17:24:54 +00:00
Howard Hinnant
052fd9349f
Fix needle-in-haystack bug found by Walter Brown
...
llvm-svn: 137617
2011-08-15 17:22:22 +00:00
Jim Grosbach
30694dcdeb
Update comment to reflect MC target machine refactor.
...
llvm-svn: 137615
2011-08-15 16:52:24 +00:00
Enrico Granata
d0b8505a64
Objective-C runtime now caches resolved ISA information for increased efficiency
...
llvm-svn: 137612
2011-08-15 15:56:02 +00:00
Douglas Gregor
3ec7910e10
Teach reference initialization from the result of a user-defined
...
conversion to initialize the standard conversion *after* the
user-defined conversion properly. Fixes PR10644.
llvm-svn: 137608
2011-08-15 13:59:46 +00:00
Raghesh Aloor
5d1b6ce83c
www: Updating memaccess Documentation
...
llvm-svn: 137607
2011-08-15 09:37:46 +00:00
Greg Clayton
f6a5fc2e8b
Patch from Matt Johnson that cleans up usage of APInt
...
to keep GCC 4.5.2 happy and also to not use a deprecated
llvm API.
llvm-svn: 137605
2011-08-15 07:23:47 +00:00
Raghesh Aloor
129e867865
Memaccess: Code generation for constant access function change
...
Support for generating code for an access function change which is
a constant is added.
llvm-svn: 137603
2011-08-15 02:33:39 +00:00
Greg Clayton
8753c1e057
Added the ability to use llvm::APInt class to view
...
any integers that are larger than a 8 bytes. We can now
display signed decimal, unsigned decimal, octal, and binary
(we could already view hex before this fix).
llvm-svn: 137602
2011-08-15 02:24:40 +00:00
Jim Ingham
ff5f5ff963
Factor out the code that parses ObjC Method names into a static method
...
in ObjCLanguageRuntime.
Add the category-free name of symbols to the Symtab name-to-index list.
llvm-svn: 137600
2011-08-15 01:32:22 +00:00
Francois Pichet
127bea8f48
fix typo in test.
...
llvm-svn: 137592
2011-08-14 22:30:29 +00:00
Francois Pichet
daa7f2d613
Another typo found by Nico; Doug also warned me about it, but I didn't listen to him.
...
llvm-svn: 137591
2011-08-14 21:38:35 +00:00
Francois Pichet
5792825fb2
Fix typo.
...
llvm-svn: 137585
2011-08-14 14:28:49 +00:00
Bill Wendling
55421f0c4d
Add inlining for the new EH scheme.
...
This builds off of the current scheme, but instead of llvm.eh.exception and
llvm.eh.selector, it uses the landingpad instruction. And instead of
llvm.eh.resume, it uses the resume instruction.
Because of the invariants in the landing pad instruction, a lot of code that's
currently needed to find the appropriate intrinsic calls for an invoke
instruction won't be needed once we go to the new EH scheme. The "FIXME"s tell
us what to remove after we switch.
llvm-svn: 137576
2011-08-14 08:01:36 +00:00
Nick Lewycky
746e317953
This transform is not safe. Thanks to Eli for pointing that out!
...
llvm-svn: 137575
2011-08-14 04:51:49 +00:00