- Mar 05, 2015
-
-
Frederic Riss authored
To be used/tested by llvm-dsymutil. (llvm-dsymutil does a 'static' link, no need for relocations for most things, so it'll just emit raw integers for most attributes) llvm-svn: 231298
-
Frederic Riss authored
It was already exposed through the iterators anyway. llvm-svn: 231297
-
David Blaikie authored
llvm-svn: 231296
-
Rafael Espindola authored
This allows for variables to be used in .size. This matches gnu AS functionality. llvm-svn: 231295
-
David Blaikie authored
Here's a rough/first draft - it at least hits the actual textual IR examples and some of the phrasing. It's probably worth a full pass over, but I'm not sure how much these docs should reflect the strange intermediate state we're in anyway. Totally open to lots of review/feedback/suggestions. llvm-svn: 231294
-
Alexey Samsonov authored
llvm-svn: 231293
-
Sanjay Patel authored
llvm-svn: 231292
-
Nemanja Ivanovic authored
Review: http://reviews.llvm.org/D7951 llvm-svn: 231291
-
Rui Ueyama authored
Merge::mergeByLargestSection is half-baked since it's defined in terms of section size, there's no way to get the section size of an atom. Currently we work around the issue by traversing the layout edges to both directions and calculate the sum of all atoms reachable. I wrote that code but I knew it's hacky. It's even not guaranteed to work. If you add layout edges before the core linking, it miscalculates a size. Also it's of course slow. It's basically a linked list traversal. In this patch I added DefinedAtom::sectionSize so that we can use that for mergeByLargestSection. I'm not very happy to add a new field to DefinedAtom base class, but I think it's legitimate since mergeByLargestSection is defined for section size, and the section size is currently just missing. http://reviews.llvm.org/D7966 llvm-svn: 231290
-
Alexey Samsonov authored
Checking files from different repository is not nice, and LLVM code follows its own style guide anyway. llvm-svn: 231289
-
Enrico Granata authored
llvm-svn: 231288
-
Jim Ingham authored
string. Return "<unknown error>" rather than the empty launch error... <rdar://problem/20026469> llvm-svn: 231287
-
Paul Robinson authored
Differential Revision: http://reviews.llvm.org/D8018 llvm-svn: 231286
-
Nemanja Ivanovic authored
Review: http://reviews.llvm.org/D7955 llvm-svn: 231285
-
Reid Kleckner authored
llvm-svn: 231284
-
Kostya Serebryany authored
llvm-svn: 231283
-
David Blaikie authored
As discussed (at length) in code review of r222935, with Duncan. llvm-svn: 231282
-
Tobias Grosser authored
llvm-svn: 231281
-
Reid Kleckner authored
Opt in Win64 to supporting sjlj lowering. We have the backend lowering, so I think this was just an oversight because WinX86_64TargetCodeGenInfo doesn't inherit from X86_64TargetCodeGenInfo. llvm-svn: 231280
-
Rafael Espindola authored
llvm-svn: 231279
-
Reid Kleckner authored
llvm-svn: 231278
-
Reid Kleckner authored
llvm-svn: 231277
-
Erik Eckstein authored
When calling lock() after all passes are registered, the PassRegistry doesn't need a mutex anymore to look up passes. This speeds up multithreaded llvm execution by ~5% (tested with 4 threads). In an asserts build of llvm this has an even bigger impact. Note that it's not required to use the lock function. llvm-svn: 231276
-
David Blaikie authored
Recommit r231221: "Devirtualize ~parser<T> by making it protected in base classes and making derived classes final" Reverted in r231254 due to a self-hosting crash of Clang (see Clang PR22793). Workaround the crash by using {} instead of = default to define a dtor. llvm-svn: 231274 -
Rafael Espindola authored
The issue was that we were always printing the remarks. Fix that and add a test showing that it prints nothing if -pass-remarks is not given. Original message: Correctly handle -pass-remarks in the gold plugin. llvm-svn: 231273
-
Tobias Grosser authored
Contributed-by:Richard Membarth <richard.membarth@uni-saarland.de> llvm-svn: 231272
-
Rui Ueyama authored
llvm-svn: 231271
-
Mehdi Amini authored
Summary: DataLayout keeps the string used for its creation. As a side effect it is no longer needed in the Module. This is "almost" NFC, the string is no longer canonicalized, you can't rely on two "equals" DataLayout having the same string returned by getStringRepresentation(). Get rid of DataLayoutPass: the DataLayout is in the Module The DataLayout is "per-module", let's enforce this by not duplicating it more than necessary. One more step toward non-optionality of the DataLayout in the module. Make DataLayout Non-Optional in the Module Module->getDataLayout() will never returns nullptr anymore. Reviewers: echristo Subscribers: resistor, llvm-commits, jholewinski Differential Revision: http://reviews.llvm.org/D7992 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 231270
-
Reid Kleckner authored
This reverts r231200 and r231204. The second one added an explicit move ctor for MSVC. This change broke the clang-cl self-host due to weirdness in MSVC's implementation of std::map::insert. Somehow we lost our rvalue ref-ness when going through variadic placement new: template <class _Objty, class... _Types> void construct(_Objty *_Ptr, _Types &&... _Args) { // construct _Objty(_Types...) at _Ptr ::new ((void *)_Ptr) _Objty(_STD forward<_Types>(_Args)...); } For some reason, Clang decided to call the deleted std::pair copy constructor at this point. Needs further investigation, once I can build. llvm-svn: 231269 -
Tobias Grosser authored
No test cases unfortunately as we do not yet generate isl_ast_op_and_then or isl_ast_op_or_else. Those will be added in a later commit. llvm-svn: 231268
-
Alexander Kornienko authored
llvm-svn: 231267
-
Gabor Horvath authored
Reviewed by: Anna Zaks Original patch by: Aleksei Sidorin Differential Revision: http://reviews.llvm.org/D7905 llvm-svn: 231266
-
Alex Denisov authored
This commit adds new warning to prevent user from creating 'circular containers'. Mutable collections from NSFoundation allows user to add collection to itself, e.g.: NSMutableArray *a = [NSMutableArray new]; [a addObject:a]; The code above leads to really weird behaviour (crashes, 'endless' recursion) and retain cycles (collection retains itself) if ARC enabled. Patch checks the following collections: - NSMutableArray, - NSMutableDictionary, - NSMutableSet, - NSMutableOrderedSet, - NSCountedSet. llvm-svn: 231265
-
Wei Mi authored
llvm-svn: 231264
-
Zachary Turner authored
llvm-svn: 231263
-
Wei Mi authored
llvm-svn: 231262
-
Adrian Prantl authored
llvm-svn: 231261
-
Adrian Prantl authored
end of an expression that ends with DW_OP_plus. Caught by the ASAN build bots. llvm-svn: 231260
-
Marek Olsak authored
Required by OpenGL (ARB_gpu_shader5). llvm-svn: 231259
-
Nemanja Ivanovic authored
llvm-svn: 231257
-