- Jun 06, 2013
-
-
Jordan Rose authored
The edge optimizer needs to see edges for, say, implicit casts (which have the same source location as their operand) to uniformly simplify the entire path. However, we still don't want to produce edges from a statement to /itself/, which could occur when two nodes in a row have the same statement location. This necessitated moving the check for redundant notes to after edge optimization, since the check relies on notes being adjacent in the path. <rdar://problem/14061675> llvm-svn: 183357
-
Bill Wendling authored
The TargetLoweringInfo object is owned by the TargetMachine. In the future, the TargetMachine object may change, which may also change the TargetLoweringInfo object. llvm-svn: 183356
-
Eric Christopher authored
integrated assembler then go ahead and still split the dwarf anyhow. Add two tests, one to exercise existing behavior of not splitting when we're just emitting assembly files and the other to test that we split when we're not in integrated as mode. llvm-svn: 183355
-
Sean Silva authored
The previous name `Ref` is overly generic. llvm-svn: 183354
-
Sean Silva authored
A user shouldn't care about the internal state, and these methods by their very nature require asserting a predicate on the internal state. As such, they cannot be used safely without introducing hidden long-distance dependencies on the manner of construction of the BinaryRef. Use writeAsBinary(raw_ostream &) and writeAsHex(raw_ostream &) if you need to access the data in a binary or hex format. llvm-svn: 183353
-
Sean Silva authored
This hides the implementation. A future commit will remove the error-prone getHex() and getBinary() methods. llvm-svn: 183352
-
Tom Stellard authored
llvm-svn: 183351
-
Sean Silva authored
And add a doxygen comment. llvm-svn: 183350
-
Sean Silva authored
This avoids making assumptions about the data representation. llvm-svn: 183349
-
Sean Silva authored
Also, state an invariant. llvm-svn: 183348
-
Rui Ueyama authored
llvm-svn: 183347
-
Bill Wendling authored
llvm-svn: 183346
-
Sean Silva authored
Previously, yaml2coff.cpp had a writeHexData static helper function to do this, but it is generally useful functionality. Also, validate hex strings up-front to avoid running having to handle errors "deep inside" the yaml2obj code (it also gives better diagnostics than it used to). llvm-svn: 183345
-
Sean Callanan authored
- Implemented the SExt instruction, and - eliminated redundant codepaths for constant handling. Added test cases. <rdar://problem/13244258> <rdar://problem/13955820> llvm-svn: 183344
-
- Jun 05, 2013
-
-
Vincent Lejeune authored
Previously commited @183279 but tests were failing, reverted @183286 It was broken because @183336 was missing, now it's there. llvm-svn: 183343
-
Sean Silva authored
llvm-svn: 183342
-
Sean Silva authored
llvm-svn: 183341
-
Daniel Malea authored
- one test case is due to llvm.org/pr16229 - other test case uses a Linux workaround for above by using os.fork() instead of subprocess module Patch by Andy Kaylor! llvm-svn: 183340
-
Sean Silva authored
ELFOSABI_LINUX is a historical alias for ELFOSABI_GNU according to <http://www.sco.com/developers/gabi/latest/ch4.eheader.html>. llvm-svn: 183339
-
Rafael Espindola authored
llvm-svn: 183338
-
Rafael Espindola authored
The first symbol on ELF is dummy, but it has a defined content and readelf normally displays it. With this change llvm-readobj also displays it and we can check that llvm-mc output is correct according to the standard. llvm-svn: 183337
-
Vincent Lejeune authored
It allows regalloc pass to remove them by trivially assigning associated reg llvm-svn: 183336
-
Sean Silva authored
llvm-svn: 183335
-
Akira Hatanaka authored
llvm-svn: 183334
-
Daniel Malea authored
- specify compiler flag -stdlib=libstdc++ only if using clang (not supported in gcc) llvm-svn: 183333
-
Sean Silva authored
See the comment in yaml2obj.cpp for why this is currently needed. Eventually we can get rid of this, but for now it is needed in order to make forward progress with adding ELF support, and should be straightforward to remove later. Also, preserve the default of COFF, to avoid breaking existing tests. This policy can easily be changed later though. llvm-svn: 183332
-
Fariborz Jahanian authored
for -Wundeclared-selector warnings. // rdar://14039037 llvm-svn: 183331
-
David Blaikie authored
There seems to have been some erroneous code attempting to describe the ABI of parameters (non-trivial record parameters are passed by reference). This would break the type of the function (especially when it caused a mismatch between the type of a declaration & a definition) causing PR14763 and PR14645. llvm-svn: 183329
-
Jakub Staszak authored
llvm-svn: 183328
-
Michael Liao authored
Add earlyclobber constaints to prevent input register being allocated as the output register because, according to Intel spec [1], "If any pair of the index, mask, or destination registers are the same, this instruction results a UD fault." --- [1] http://software.intel.com/sites/default/files/319433-014.pdf llvm-svn: 183327
-
Rafael Espindola authored
With this patch we use the SectionIndex directly, instead of counting the number of symbol tables. This saves a DenseMap lookup every time we want to find which symbol a relocation refers to. Also simplify based on the fact that there is at most one SHT_SYMTAB and one SHT_DYNSYM. llvm-svn: 183326
-
Argyrios Kyrtzidis authored
When the template specialization header is missing, set a valid source location for the template keyword when recovering. Otherwise ClassTemplateSpecializationDecl::getSourceRange() will mistakenly consider itself as an implicit partial specialization and lead to a crash. Fixes rdar://14063074 llvm-svn: 183325
-
Peter Collingbourne authored
This is so that we can give destructor variants different linkage later. Differential Revision: http://llvm-reviews.chandlerc.com/D819 llvm-svn: 183324
-
rdar://problem/13125225Enrico Granata authored
Adding data formatters for std::set, std::multiset and std::multimap for libc++ The underlying data structure is the same as std::map, so this change is very minimal and mostly consists of test cases llvm-svn: 183323
-
Edwin Vane authored
r183274 accidentally added windows line endings to changed lines. Changing them back. llvm-svn: 183322
-
Arnold Schwaighofer authored
Reapply of 183258. llvm-svn: 183321
-
Pavel Labath authored
Summary: This adds two command-line parameters: -extra-arg and -extra-arg-before, which enable the user to pass additional parameters to the compiler command. Reviewers: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D919 llvm-svn: 183320
-
Arnold Schwaighofer authored
Add some generic SchedWrites and assign resources for Swift and Cortex A9. Reapply of r183257. (Removed empty InstRW for division on swift) llvm-svn: 183319
-
Reid Kleckner authored
Also addresses a review comment from John from on r180985 by removing the "== -1" check, since it's now reusing the correct code which has the comment. llvm-svn: 183318
-
Benjamin Kramer authored
llvm-svn: 183317
-