- Jan 01, 2013
-
-
Chandler Carruth authored
users over to the new one. No sense maintaining this "compatibility" layer it seems. llvm-svn: 171331
-
Chandler Carruth authored
Implement the old API in terms of the new one. This simplifies the implementation on Windows which can now re-use the self_process's once initialization. llvm-svn: 171330
-
- Dec 31, 2012
-
-
Michael J. Spencer authored
This adds AlignedCharArray<Alignment, Size>. A templated struct that contains a member named buffer of type char[Size] that is aligned to Alignment. llvm-svn: 171319
-
Chandler Carruth authored
The coding style used here is not LLVM's style because this is modeled after a Boost interface and thus done in the style of a candidate C++ standard library interface. I'll probably end up proposing it as a standard C++ library if it proves to be reasonably portable and useful. This is just the most basic parts of the interface -- getting the process ID out of it. However, it helps sketch out some of the boiler plate such as the base class, derived class, shared code, and static factory function. It also introduces a unittest so that I can incrementally ensure this stuff works. However, I've not even compiled this code for Windows yet. I'll try to fix any Windows fallout from the bots, and if I can't fix it I'll revert and get someone on Windows to help out. There isn't a lot more that is mandatory, so soon I'll switch to just stubbing out the Windows side and get Michael Spencer to help with implementation as he can test it directly. llvm-svn: 171289
-
- Dec 17, 2012
-
-
Nick Kledzik authored
llvm-svn: 170376
-
Nick Kledzik authored
llvm-svn: 170369
-
- Dec 12, 2012
-
-
Nick Kledzik authored
llvm-svn: 170035
-
David Blaikie authored
llvm-svn: 170033
-
Nick Kledzik authored
structures to and from YAML using traits. The first client will be the test suite of lld. The documentation will show up at: http://llvm.org/docs/YamlIO.html llvm-svn: 170019
-
- Dec 05, 2012
-
-
Akira Hatanaka authored
MF_READ and MF_WRITE are set. llvm-svn: 169439
-
- Dec 04, 2012
-
-
Chandler Carruth authored
llvm-svn: 169250
-
- Dec 03, 2012
-
-
Michael J. Spencer authored
llvm-svn: 169167
-
- Nov 30, 2012
-
-
Chandler Carruth authored
Rationale: 1) This was the name in the comment block. ;] 2) It matches Clang's __has_feature naming convention. 3) It matches other compiler-feature-test conventions. Sorry for the noise. =] I've also switch the comment block to use a \brief tag and not duplicate the name. llvm-svn: 168996
-
- Nov 28, 2012
-
-
Eli Bendersky authored
appropriate unit tests. This change in itself is not expected to affect any functionality at this point, but it will serve as a stepping stone to improve FileCheck's variable matching capabilities. Luckily, our regex implementation already supports backreferences, although a bit of hacking is required to enable it. It supports both Basic Regular Expressions (BREs) and Extended Regular Expressions (EREs), without supporting backrefs for EREs, following POSIX strictly in this respect. And EREs is what we actually use (rightly). This is contrary to many implementations (including the default on Linux) of POSIX regexes, that do allow backrefs in EREs. Adding backref support to our EREs is a very simple change in the regcomp parsing code. I fail to think of significant cases where it would clash with existing things, and can bring more versatility to the regexes we write. There's always the danger of a backref in a specially crafted regex causing exponential matching times, but since we mainly use them for testing purposes I don't think it's a big problem. [it can also be placed behind a flag specific to FileCheck, if needed]. For more details, see: * http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-November/055840.html * http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121126/156878.html llvm-svn: 168802
-
- Nov 20, 2012
-
-
Sean Silva authored
The rationale is to get YAML filenames in diagnostics from yaml::Stream::printError -- currently the filename is hard-coded as "YAML" because there's no buffer information available. Patch by Kim Gräsman! llvm-svn: 168341
-
- Nov 17, 2012
- Nov 14, 2012
-
-
Jakub Staszak authored
llvm-svn: 167968
-
- Nov 10, 2012
-
-
Benjamin Kramer authored
ICC refuses to compile a class in an anonymous namespace if some functions aren't defined. Fixes PR13477. llvm-svn: 167676
-
- Oct 12, 2012
-
-
Sean Silva authored
Additionally, all such cases are handled with no dynamic check. All `classof()` of the form class Foo { [...] static bool classof(const Bar *) { return true; } [...] } where Foo is an ancestor of Bar are no longer necessary. Don't write them! Note: The exact test is `is_base_of<Foo, Bar>`, which is non-strict, so that Foo is considered an ancestor of itself. This leads to the following rule of thumb for LLVM-style RTTI: The argument type of `classof()` should be a strict ancestor. For more information about implementing LLVM-style RTTI, see docs/HowToSetUpLLVMStyleRTTI.rst llvm-svn: 165765
-
- Oct 04, 2012
-
-
Andrew Kaylor authored
Patch by Daniel Malea. llvm-svn: 165246
-
- Sep 19, 2012
-
-
Andrew Kaylor authored
This patch adds memory support functions which will later be used to implement section-specific protection handling in MCJIT. llvm-svn: 164249
-
- Sep 15, 2012
-
-
Daniel Dunbar authored
llvm-svn: 163950
-
Daniel Dunbar authored
- The current_pos function is supposed to return all the written bytes, not the current position of the underlying stream. - This caused tell() to be broken whenever the underlying stream had buffered content. llvm-svn: 163948
-
David Blaikie authored
Review by Chandler Carruth. llvm-svn: 163944
-
- Aug 21, 2012
-
-
Richard Smith authored
llvm-svn: 162310
-
- Aug 20, 2012
-
-
Benjamin Kramer authored
llvm-svn: 162201
-
- Aug 17, 2012
-
-
Chandler Carruth authored
templated union at the request of Richard Smith. This makes it substantially easier to type. =] llvm-svn: 162072
-
- Aug 15, 2012
-
-
Michael J. Spencer authored
llvm-svn: 161979
-
Michael J. Spencer authored
llvm-svn: 161976
-
- Aug 13, 2012
-
-
Alexander Kornienko authored
llvm-svn: 161751
-
- Aug 01, 2012
-
-
Nick Kledzik authored
Since the llvm::sys::fs::map_file_pages() support function it relies on is not yet implemented on Windows, the unit tests for FileOutputBuffer are currently conditionalized to run only on unix. llvm-svn: 161099
-
Nick Kledzik authored
llvm-svn: 161085
-
- Jul 23, 2012
-
-
Nuno Lopes authored
llvm-svn: 160643
-
- Jul 16, 2012
-
-
Nuno Lopes authored
llvm-svn: 160317
-
Nuno Lopes authored
Make it always return APInts with the same bitwidth for the same ConstantRange bitwidth to simply clients llvm-svn: 160294
-
Chandler Carruth authored
the original move of IRBuilder. llvm-svn: 160249
-
Chandler Carruth authored
the move of *Builder classes into the Core library. No uses of this builder in Clang or DragonEgg I could find. If there is a desire to have an IR-building-support library that contains all of these builders, that can be easily added, but currently it seems likely that these add no real overhead to VMCore. llvm-svn: 160243
-
Chandler Carruth authored
IRBuilder, DIBuilder, etc. This is the proper layering as MDBuilder can't be used (or implemented) without the Core Metadata representation. Patches to Clang and Dragonegg coming up. llvm-svn: 160237
-
- Jul 03, 2012
-
-
Eric Christopher authored
This reverts commit b2833d9dcba88c6f0520cad760619200adc0442c. llvm-svn: 159618
-