Nadav Rotem
c79f1aa3f4
ARM Cost Model: Modify the target independent cost model to ask
...
the target if it supports the different CAST types. We didn't do this
on X86 because of the different register sizes and types, but on ARM
this makes sense.
llvm-svn: 172245
2013-01-11 19:54:13 +00:00
Justin Holewinski
4744632031
Remove PTX->NVPTX in CodeGenerator document and update its text.
...
llvm-svn: 172235
2013-01-11 18:47:10 +00:00
Justin Holewinski
42297e1413
Update CodeGenerator document to add a "Not Applicable" category to the
...
Target Feature Matrix, and update the PTX column with this new category.
llvm-svn: 172234
2013-01-11 18:37:54 +00:00
Eric Christopher
319d407a21
For inline asm:
...
- recognize string "{memory}" in the MI generation
- mark as mayload/maystore when there's a memory clobber constraint.
PR14859.
Patch by Krzysztof Parzyszek
llvm-svn: 172228
2013-01-11 18:12:39 +00:00
Andrew Trick
6032a0aa54
Follow-up typo correction from building the wrong branch.
...
llvm-svn: 172224
2013-01-11 17:51:16 +00:00
Andrew Trick
d350ea52f4
Fix typo from r170452. Affects -enable-misched heuristics.
...
llvm-svn: 172223
2013-01-11 17:46:50 +00:00
Andrew Trick
f1af8d2a6e
Update CMakeLists for CallPrinter.cpp.
...
llvm-svn: 172222
2013-01-11 17:34:05 +00:00
Andrew Trick
6c45ac6ed1
Added -view-callgraph module pass.
...
-dot-callgraph similarly follows a standard module pass pattern.
Patch by Speziale Ettore!
llvm-svn: 172220
2013-01-11 17:28:14 +00:00
Eli Bendersky
30fd822f06
Fix bug in exception table allocation (PR13678)
...
Patch by Michael Muller.
llvm-svn: 172214
2013-01-11 16:33:30 +00:00
Tim Northover
978c012c2a
Simplify writing floating types to assembly.
...
This removes previous special cases for each floating-point type in favour of a
shared codepath.
llvm-svn: 172189
2013-01-11 10:36:13 +00:00
Dmitry Vyukov
0457138552
llvm-symbolizer: add DATA command that allows to symbolize global variables.
...
Example:
>DATA bin/clang 0x26e8e40
<llvm::SparcSubTypeKV
<40799808 416
The last line is address and size of the object.
llvm-svn: 172180
2013-01-11 07:16:20 +00:00
Nadav Rotem
008741a0e0
ARM Cost Model: We need to detect the max bitwidth of types in the loop in order to select the max vectorization factor.
...
We don't have a detailed analysis on which values are vectorized and which stay scalars in the vectorized loop so we use
another method. We look at reduction variables, loads and stores, which are the only ways to get information in and out
of loop iterations. If the data types are extended and truncated then the cost model will catch the cost of the vector
zext/sext/trunc operations.
llvm-svn: 172178
2013-01-11 07:11:59 +00:00
Michael Gottesman
0a961cfd24
Converted test dont-tce-tail-marked-call.ll to use FileCheck.
...
llvm-svn: 172172
2013-01-11 04:16:35 +00:00
Michael Gottesman
93204bc270
This commit is a 4x squash commit consisting of 4x functions converted to use FileCheck instead of grep.
...
Messages:
Converted test case trivial_codegen_tailcall.ll to use FileCheck.
Converted test return_constant.ll to use FileCheck instead of grep.
Converted test reorder_load.ll to use FileCheck instead of grep.
Converted test intervening-inst.ll to use FileCheck instead of grep.
llvm-svn: 172171
2013-01-11 04:12:53 +00:00
NAKAMURA Takumi
1a798ac8dc
Revert r172153, "llvm/lib/MC/MCParser/AsmParser.cpp: [ms-inline-asm] Fix a couple of undefined behaviors. Operand->needAddressOf() is not initialized at !Operand->isReg()."
...
It has been redundant since r172157.
llvm-svn: 172166
2013-01-11 02:50:09 +00:00
Jordan Rose
0d7f7a8ee4
SMDiagnostic: don't emit ranges if there are /any/ multibyte characters.
...
Right now, only OS X has a way to determine the column width of a string
(PR14910). Until we have a good way to deal with this, we just won't
print carets, source ranges, or fixits for SMDiagnostic if the source line
has multibyte characters in it.
llvm-svn: 172164
2013-01-11 02:37:55 +00:00
Sean Silva
e593654d4f
docs: Fix long standing linking antipattern.
...
Before we learned about :doc:, we used :ref: and put a dummy link at the
top of each page. Don't do that anymore.
This fixes PR14891 as a special case.
llvm-svn: 172162
2013-01-11 02:28:08 +00:00
Sean Silva
bae48606cf
docs: fix misleading description.
...
PR14890
llvm-svn: 172160
2013-01-11 01:54:16 +00:00
Michael Ilseman
d8715c1e7a
Support for half intrinsics. Pushes MMX into slower encoding path.
...
llvm-svn: 172159
2013-01-11 01:45:05 +00:00
NAKAMURA Takumi
da4d0cbcc1
X86AsmParser.cpp: Fix up r172148, to add initializer in another CreateMem().
...
llvm-svn: 172157
2013-01-11 01:13:54 +00:00
Dmitri Gribenko
82335b970a
Add a new portability macro LLVM_FUNCTION_NAME, that expands to __func__, if
...
supported.
llvm-svn: 172156
2013-01-11 01:13:51 +00:00
Jakub Staszak
7f54a2302e
LoopPass.h doesn't require Function.h. Remove unneeded #include.
...
llvm-svn: 172155
2013-01-11 01:03:32 +00:00
NAKAMURA Takumi
eaffa07ccd
llvm/lib/MC/MCParser/AsmParser.cpp: [ms-inline-asm] Fix a couple of undefined behaviors. Operand->needAddressOf() is not initialized at !Operand->isReg().
...
llvm-svn: 172153
2013-01-11 00:37:35 +00:00
Jakub Staszak
4beed9fd38
Remove heavy and unused #inclues from X86TargetObjectFile.cpp.
...
llvm-svn: 172151
2013-01-10 23:43:56 +00:00
Eli Bendersky
1c110a3457
Rename enumerations s/VK/DK/ to conform to naming convention
...
llvm-svn: 172149
2013-01-10 23:40:56 +00:00
Chad Rosier
217f7fad13
[ms-inline asm] Make sure we set a default value for AddressOf. Follow on to
...
r172121.
llvm-svn: 172148
2013-01-10 23:39:07 +00:00
Eli Bendersky
e4b4e5f076
fix comments a bit
...
llvm-svn: 172146
2013-01-10 23:32:57 +00:00
Shuxin Yang
5df00cb3b4
PR14904: Segmentation fault running pass 'Recognize loop idioms'
...
The root cause is mistakenly taking for granted that
"dyn_cast<Instruction>(a-Value)"
return a non-NULL instruction.
llvm-svn: 172145
2013-01-10 23:32:01 +00:00
Evan Cheng
2494d83c07
CastInst::castIsValid should return true if the dest type is the same as
...
Value's current type. The casting is trivial even for aggregate type.
llvm-svn: 172143
2013-01-10 23:22:53 +00:00
NAKAMURA Takumi
569f49e55c
llvm/test/CodeGen/X86/ms-inline-asm.ll: Fixup; Globals doesn't have leading underscore in symbol on linux.
...
llvm-svn: 172139
2013-01-10 23:02:48 +00:00
Bob Wilson
d478d6df36
Update Apple's build script for llvmCore. <rdar://problem/12914321>
...
This change is basically just copying changes that we've used for Apple's
clang builds to the script used for building llvmCore. Besides cleaning it
up to use xcrun to locate the proper versions of tools, especially for cross
compiling, it fixes the build to work with newer versions of clang that
honor SDKROOT settings in the environment.
llvm-svn: 172138
2013-01-10 22:59:51 +00:00
Eli Bendersky
7247cfaf23
Remove a couple of if-else chains in parsing directives, replacing them by a
...
switch. Committed with Jim's and Chris's approval.
llvm-svn: 172136
2013-01-10 22:44:57 +00:00
Michael J. Spencer
6a1aee19b4
[llvm-objdump] Emit addresses with the correct number of leading 0's.
...
llvm-svn: 172130
2013-01-10 22:40:50 +00:00
Peter Collingbourne
4a5942ae9c
[msan] Change va_start/va_copy shadow memset alignment to 8.
...
This fixes va_start/va_copy of a va_list field which happens to not
be laid out at a 16-byte boundary.
Differential Revision: http://llvm-reviews.chandlerc.com/D276
llvm-svn: 172128
2013-01-10 22:36:33 +00:00
Jakub Staszak
73b0ab1917
Remove trailing spaces.
...
llvm-svn: 172125
2013-01-10 22:14:33 +00:00
Evan Cheng
6ac3dd6e89
PR14896: Handle memcpy from constant string where the memcpy size is larger than the string size.
...
llvm-svn: 172124
2013-01-10 22:13:27 +00:00
Jakub Staszak
a1728857fb
Remove unneeded includes from FunctionLoweringInfo.h.
...
llvm-svn: 172123
2013-01-10 22:13:13 +00:00
Chad Rosier
f66d08be5c
[ms-inline asm] Add support for calling functions from inline assembly.
...
Part of rdar://12991541
llvm-svn: 172121
2013-01-10 22:10:27 +00:00
Jakub Staszak
09fdee243a
Remove unneeded #includes.
...
llvm-svn: 172118
2013-01-10 22:07:29 +00:00
Owen Anderson
9e81fe53cf
Teach InstCombine to hoist FABS and FNEG through FPTRUNC instructions. The application of these operations commutes with the truncation, so we should prefer to do them in the smallest size we can, to save register space, use smaller constant pool entries, etc.
...
llvm-svn: 172117
2013-01-10 22:06:52 +00:00
Jakub Staszak
7eb475a77d
Fix indent and remove unneeded #includes in MDBuilder.h.
...
llvm-svn: 172115
2013-01-10 22:00:36 +00:00
Jakub Staszak
31e75c8016
Fix #includes after my last commit.
...
llvm-svn: 172114
2013-01-10 21:56:40 +00:00
Jakub Staszak
041129f88b
Rename LinkAllVMCore.h to LinkAllIR.h since VMCore directory was renamed to IR.
...
llvm-svn: 172112
2013-01-10 21:55:02 +00:00
Chris Lattner
54ebbf925c
remove the rest of the "written by" lines in the documentation. It is
...
against the developer policy to include this sort of thing as SVN blame
already captures this in a far more fine-grained way.
llvm-svn: 172109
2013-01-10 21:24:04 +00:00
Dmitri Gribenko
501313b41b
Replace memcpys by a static_cast and an integral promotion.
...
llvm-svn: 172108
2013-01-10 21:21:32 +00:00
Dmitri Gribenko
db86689e43
Fix coding style
...
llvm-svn: 172107
2013-01-10 21:10:44 +00:00
Jakub Staszak
3871426bfd
Unbreak tests after regression from r172081.
...
llvm-svn: 172105
2013-01-10 21:02:05 +00:00
Jordan Rose
f60c0018f0
Add basic fix-its to SMDiagnostic.
...
Like Clang's FixItHint, SMFixIt represents an insertion, replacement, or
removal of source text. One or more fix-its can be emitted as part of
a diagnostic, and will be printed below the source range line to show the
user how they can fix their code.
Currently, the only client of SMFixIt is clang-tblgen; thus, the tests for
this behavior live in clang/test/TableGen/tg-fixits.td. If/when SMFixIt is
adopted within LLVM itself, those tests should be moved to the LLVM suite.
llvm-svn: 172086
2013-01-10 18:50:15 +00:00
Jordan Rose
6b1722a271
TableGen: Keep track of superclass reference ranges.
...
def foo : bar;
~~~
This allows us to produce more precise diagnostics about a certain
superclass, and even provide fixits.
llvm-svn: 172085
2013-01-10 18:50:11 +00:00
Jordan Rose
24610f9d5e
TableGen: record anonymous instantiations of classes.
...
llvm-svn: 172084
2013-01-10 18:50:05 +00:00