Sean Silva
287e7d275c
docs: Cleanup trailing whitespace.
...
llvm-svn: 170799
2012-12-20 22:59:36 +00:00
Jakob Stoklund Olesen
2455b58551
Require the two-argument MI::addOperand(MF, MO) for dangling instructions.
...
Instructions that are inserted in a basic block can still be decorated
with addOperand(MO).
Make the two-argument addOperand() function contain the actual
implementation. This function will now always have a valid MF reference
that it can use for memory allocation.
llvm-svn: 170798
2012-12-20 22:54:05 +00:00
Jakob Stoklund Olesen
33f5d1492d
Add an MF argument to MI::copyImplicitOps().
...
This function is often used to decorate dangling instructions, so a
context reference is required to allocate memory for the operands.
Also add a corresponding MachineInstrBuilder method.
llvm-svn: 170797
2012-12-20 22:54:02 +00:00
Jakob Stoklund Olesen
ac4210eacb
Use two-arg addOperand(MF, MO) internally in MachineInstr when possible.
...
llvm-svn: 170796
2012-12-20 22:53:58 +00:00
Jakob Stoklund Olesen
2ea203694d
MachineInstrBuilderize ARM.
...
llvm-svn: 170795
2012-12-20 22:53:55 +00:00
Jakob Stoklund Olesen
4255c96aed
MachineInstrBuilderize NVPTX.
...
llvm-svn: 170794
2012-12-20 22:53:53 +00:00
Eli Bendersky
75a7a338fc
Fix an unitialized member variable that may have caused sporadic failures
...
for code that wasn't even in bundling mode.
llvm-svn: 170793
2012-12-20 22:51:52 +00:00
Sean Silva
e140b2ee67
docs: actually indent these consistently
...
llvm-svn: 170792
2012-12-20 22:49:13 +00:00
Sean Silva
8c44a4733c
docs: Indent consistently in code examples.
...
llvm-svn: 170791
2012-12-20 22:47:41 +00:00
Sean Silva
99e12f91a6
docs: Improve navigation for Vectorizers.rst
...
Add links in the intro paragraph.
Add table of contents.
llvm-svn: 170790
2012-12-20 22:42:20 +00:00
Ted Kremenek
9453721985
Revert "Warn if a __weak variable is initialized with an Objective-C object literal."
...
Per code feedback, I want to see if there is a more general way to do this.
llvm-svn: 170777
2012-12-20 22:31:27 +00:00
Sean Silva
fd706f7da9
docs: bring back link for reddit.
...
llvm-svn: 170776
2012-12-20 22:24:37 +00:00
Eric Christopher
48fef599a4
Whitespace and 80-column cleanup.
...
llvm-svn: 170771
2012-12-20 21:58:40 +00:00
Eric Christopher
e698f53740
Start splitting out the debug string section handling by moving it
...
into the DwarfUnits class.
llvm-svn: 170770
2012-12-20 21:58:36 +00:00
Sean Silva
eae2d90508
docs: Make document name congruent with title.
...
Hopefully nobody has linked to it yet...
OK'd by Nadav.
llvm-svn: 170768
2012-12-20 21:50:41 +00:00
Bill Wendling
66e978f904
Some random comment, naming, and format changes.
...
Rename the AttributeImpl* from Attrs to pImpl to be consistent with other code.
Add comments where none were before. Or doxygen-ify other comments.
llvm-svn: 170767
2012-12-20 21:28:43 +00:00
Jakob Stoklund Olesen
00b28ecfae
Remove two dead functions.
...
llvm-svn: 170766
2012-12-20 21:12:42 +00:00
Bob Wilson
7bba4f8957
Revert "Adding support for llvm.arm.neon.vaddl[su].* and"
...
This reverts r170694. The operations can be represented in IR without
adding any new intrinsics.
llvm-svn: 170765
2012-12-20 21:09:38 +00:00
Argyrios Kyrtzidis
cbfd4d2483
Use some heuristics so that when a fixit removes a source range, we try
...
to also remove a trailing space if possible.
For example, removing '__bridge' from:
i = (__bridge I*)p;
should result in:
i = (I*)p;
not:
i = ( I*)p;
rdar://11314821
llvm-svn: 170764
2012-12-20 21:05:53 +00:00
Ted Kremenek
b39cfd41f2
Warn if a __weak variable is initialized with an Objective-C object literal.
...
Such variables may immediately become nil or may have unpredictable
behavior.
Fixes <rdar://problem/12569201>.
llvm-svn: 170763
2012-12-20 20:55:03 +00:00
Dmitri Gribenko
b420ef75fb
Documentation: use monospaced font in BlockLanguageSpec, and fix a link to this
...
document
llvm-svn: 170762
2012-12-20 20:51:59 +00:00
Chad Rosier
f8a2e70b08
Use the MaybeParseMicrosoftAttributes function.
...
llvm-svn: 170761
2012-12-20 20:37:53 +00:00
Daniel Jasper
9dd7e0f1f9
Remove namespace qualifier that lead to build breakage.
...
llvm-svn: 170759
2012-12-20 20:31:38 +00:00
Daniel Jasper
d1122cb50d
Move operator precedence calculation to new header
...
Thereby, it can be reused by clang-format and others.
Review: http://llvm-reviews.chandlerc.com/D229
llvm-svn: 170757
2012-12-20 20:25:19 +00:00
Nadav Rotem
2ababf68d7
LoopVectorize: Fix a bug in the scalarization of instructions.
...
Before if-conversion we could check if a value is loop invariant
if it was declared inside the basic block. Now that loops have
multiple blocks this check is incorrect.
This fixes External/SPEC/CINT95/099_go/099_go
llvm-svn: 170756
2012-12-20 20:24:40 +00:00
Jim Ingham
a0b151715a
If we can't find the python function for a given summary, print the name of the function in the warning message.
...
llvm-svn: 170729
2012-12-20 20:08:17 +00:00
Evan Cheng
ddc0cb6dc5
On some ARM cpus, flags setting movs with shifter operand, i.e. lsl, lsr, asr,
...
are more expensive than the non-flag setting variant. Teach thumb2 size
reduction pass to avoid generating them unless we are optimizing for size.
rdar://12892707
llvm-svn: 170728
2012-12-20 19:59:30 +00:00
Fariborz Jahanian
68a542aea7
Add objective-C style formatting to clang format and
...
use it to format xml declaration tags.
// rdar://12378714
llvm-svn: 170727
2012-12-20 19:54:13 +00:00
Eli Bendersky
4cfb5b9e64
Change Lit error redirection to FileCheck to a more common syntax since it
...
can potentially cause some bots to fail.
llvm-svn: 170726
2012-12-20 19:54:02 +00:00
Ted Kremenek
89abaa3517
Update RetainCountChecker to understand attribute ns_returns_autoreleased.
...
Fixes <rdar://problem/12887356>.
llvm-svn: 170724
2012-12-20 19:36:22 +00:00
Ted Kremenek
8f895741a2
Attribute 'cf_returns_autoreleased' doesn't really exist.
...
llvm-svn: 170723
2012-12-20 19:36:20 +00:00
Bill Wendling
207f05369d
Rename llvm::Attributes to llvm::Attribute.
...
llvm-svn: 170722
2012-12-20 19:27:06 +00:00
Bill Wendling
4442605f18
Revert r170500. It over-zealously converted *ALL* things named Attributes, which is wrong here.
...
llvm-svn: 170721
2012-12-20 19:22:21 +00:00
Eli Bendersky
f658e92724
Add a largish auto-generated test for the aligned bundling feature, along with
...
the script generating it. The test should never be modified manually. If anyone
needs to change it, please change the script and re-run it.
The script is placed into utils/testgen - I couldn't think of a better place,
and after some discussion on IRC this looked like a logical location.
llvm-svn: 170720
2012-12-20 19:16:57 +00:00
Eli Bendersky
4c4f11eb0d
Tests for the aligned bundling support added in r170718
...
llvm-svn: 170719
2012-12-20 19:07:30 +00:00
Eli Bendersky
f483ff9204
Aligned bundling support. Following the discussion here:
...
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-December/056754.html
The proposal and implementation are fully documented here:
https://sites.google.com/a/chromium.org/dev/nativeclient/pnacl/aligned-bundling-support-in-llvm
Tests will follow shortly.
llvm-svn: 170718
2012-12-20 19:05:53 +00:00
Jakob Stoklund Olesen
2705333253
Use MachineInstrBuilder for PHI nodes in SelectionDAGISel.
...
llvm-svn: 170716
2012-12-20 18:46:29 +00:00
Jim Grosbach
759292c93f
Fix inadvertant delete of 'has'.
...
llvm-svn: 170713
2012-12-20 18:09:48 +00:00
Jakob Stoklund Olesen
b109a7b430
Use MachineInstrBuilder in InstrEmitter.
...
This is supposed to be a mechanical change with no functional effects.
InstrEmitter can generate all types of MachineOperands which revealed
that MachineInstrBuilder was missing a few methods, added by this patch.
Besides providing a context pointer to MI::addOperand(),
MachineInstrBuilder seems like a better fit for this code.
llvm-svn: 170712
2012-12-20 18:08:09 +00:00
Jakob Stoklund Olesen
f623e9870d
Use MachineInstrBuilder in a few CodeGen passes.
...
This automatically passes a context pointer to MI->addOperand().
llvm-svn: 170711
2012-12-20 18:08:06 +00:00
Rafael Espindola
642c7cd56e
Simplify the testcase a bit.
...
I checked that it would still crash llc before the corresponding fix.
llvm-svn: 170709
2012-12-20 17:47:27 +00:00
Nadav Rotem
8b20c0a814
Loop Vectorizer: turn-off if-conversion.
...
llvm-svn: 170708
2012-12-20 17:42:53 +00:00
Dmitry Vyukov
2547ac65eb
tsan: java interface implementation skeleton
...
llvm-svn: 170707
2012-12-20 17:29:34 +00:00
Howard Hinnant
d15de653f0
Test case for http://llvm.org/bugs/show_bug.cgi?id=14670 .
...
llvm-svn: 170706
2012-12-20 16:50:07 +00:00
Rafael Espindola
ec5999e622
Fix Generic_GCC::GCCVersion::operator<
...
Without this patch comparing two equal versions without patch numbers (4.7 for
example) will result in A < B and B < A.
Patch by Simon Atanasyan.
llvm-svn: 170705
2012-12-20 16:15:07 +00:00
James Molloy
4f6fb953a7
Add a new attribute, 'noduplicate'. If a function contains a noduplicate call, the call cannot be duplicated - Jump threading, loop unrolling, loop unswitching, and loop rotation are inhibited if they would duplicate the call.
...
Similarly inlining of the function is inhibited, if that would duplicate the call (in particular inlining is still allowed when there is only one callsite and the function has internal linkage).
llvm-svn: 170704
2012-12-20 16:04:27 +00:00
Howard Hinnant
3b42bdd58a
Hyeon-Bin Jeong: readsome() need to reset gcount to zero. This fixes http://llvm.org/bugs/show_bug.cgi?id=14670 .
...
llvm-svn: 170703
2012-12-20 15:40:28 +00:00
Alexey Samsonov
19e8b7ecba
[ASan] remove duplicate entry in shadow byte legend
...
llvm-svn: 170701
2012-12-20 15:19:10 +00:00
Roman Divacky
ff95a1dc12
Remove MCTargetAsmLexer and its derived classes now that edis,
...
its only user, is gone.
llvm-svn: 170699
2012-12-20 14:43:30 +00:00
Alexey Samsonov
aef6b78bcb
[Sanitizer] Fix CMake build rules for sanitizer_common tests to respect universal static libraries on Mac
...
llvm-svn: 170698
2012-12-20 14:38:02 +00:00