- Jun 16, 2016
-
-
Sanjay Patel authored
As noted in the code comment, a potential follow-on would be to remove the builtins themselves. Other than ord/unord, this already works as expected. Eg: typedef float v4sf __attribute__((__vector_size__(16))); v4sf fcmpgt(v4sf a, v4sf b) { return a > b; } Differential Revision: http://reviews.llvm.org/D21268 llvm-svn: 272840 -
Evgeniy Stepanov authored
Also replace mkdir -p with rm -rf && mkdir. llvm-svn: 272839
-
Chad Rosier authored
llvm-svn: 272838
-
Kevin Enderby authored
It was printing out nothing in this case. llvm-objdump tries to disassemble sections a symbol at a time. In the case of a fully stripped Mach-O executable the only symbol remaining in the (__TEXT,__text) section is the special linker defined symbol __mh_execute_header . This symbol is special in that while it is N_SECT symbol in the (__TEXT,__text) its address is before the start of the (__TEXT,__text). It’s address is the start of the __TEXT segment which is where the mach header is statically linked. So the code in DisassembleMachO() needs to deal with this case specially. rdar://26778273 llvm-svn: 272837
-
Krzysztof Parzyszek authored
Fix for PR28138. llvm-svn: 272836
-
Kevin B. Smith authored
llvm-svn: 272835
-
Sanjay Patel authored
Missed this in r272806, r272807. llvm-svn: 272834
-
George Burgess IV authored
This patch makes CFLAA ignore non-pointer values, since we can now sanely do that with the escaping/unknown attributes. Additionally, StratifiedAttrs make more sense to sit on nodes than edges (since they're properties of values, and ultimately end up on the nodes of StratifiedSets). So, this patch puts said attributes on nodes. Patch by Jia Chen. Differential Revision: http://reviews.llvm.org/D21387 llvm-svn: 272833
-
Etienne Bergeron authored
Summary: This patch is adding command-line support for the MSVC buffer security check. The buffer security check is turned on with the '/GS' compiler switch. https://msdn.microsoft.com/en-us/library/8dbf701c.aspx The MSVC buffer security check in implemented here: http://reviews.llvm.org/D20346 Reviewers: hans, rnk Subscribers: chrisha, cfe-commits, rnk, hans, thakis Differential Revision: http://reviews.llvm.org/D20347 llvm-svn: 272832
-
Tim Northover authored
Of course the assembly was right but because the opcode was MOVZWi it was encoded as "movz w16, #65535, lsl #32" which is an unallocated encoding and would go horribly wrong on a CPU. No idea how this bug survived this long. It seems nobody is using that aspect of patchpoints. llvm-svn: 272831
-
Reid Kleckner authored
llvm-svn: 272830
-
Reid Kleckner authored
They aren't performance critical and don't need to be inline. llvm-svn: 272829
-
Sanjay Patel authored
Ideally, we can get rid of most x86 LLVM intrinsics by transforming them to IR (and some of that happened with http://reviews.llvm.org/rL272807), but it doesn't cost much to have some simple folds in the backend too while we're working on that and as a backstop. This fixes: https://llvm.org/bugs/show_bug.cgi?id=27924 Differential Revision: http://reviews.llvm.org/D21356 llvm-svn: 272828
-
Dan Albert authored
Summary: Android didn't gain GNU's strerror_r until Marshmallow. If we're building libc++ against something older (we build the NDK library against the oldest release we support, currently Gingerbread), fall back to the POSIX version. Reviewers: mclow.lists, EricWF Subscribers: tberghammer, danalbert, srhines, cfe-commits Differential Revision: http://reviews.llvm.org/D21402 llvm-svn: 272827
-
Matthias Braun authored
- We lacked a short unique identifier for a statistics, so I renamed the current "Name" field that just contained the DEBUG_TYPE name of the current file to DebugType and added a new "Name" field that contains the C++ identifier of the statistic variable. - Add the -stats-json option which outputs statistics in json format. Differential Revision: http://reviews.llvm.org/D20995 llvm-svn: 272826
-
Rafael Espindola authored
Patch by Lei Zhang. llvm-svn: 272825
-
Eric Fiselier authored
llvm-svn: 272824
-
Eric Fiselier authored
llvm-svn: 272823
-
Eric Fiselier authored
llvm-svn: 272822
-
Eric Fiselier authored
Summary: This patch fixes -Wreorder warnings on test classes with virtual bases. Since the compiler is performing the reordering anyway this change *should* have NFC. However the test notes that it is checking that "virtual base classes work properly". Since initialization order is clearly part of correctness I want to confirm that this wasn't an intentional mistake. Reviewers: mclow.lists, howard.hinnant Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D21396 llvm-svn: 272821
-
Matthias Braun authored
llvm statistics are currently printed when the destructor of a "static ManagedStatic<StatisticInfo> StatInfo" in llvm runs. This destructor currently runs in each case as part of llvm_shutdown() which is run even in disable_free mode as part of main(). I assume that this hasn't always been the case. Removing the special code here avoids the statistics getting printed twice. Differential Revision: http://reviews.llvm.org/D21338 llvm-svn: 272820
-
Eric Fiselier authored
llvm-svn: 272819
-
Davide Italiano authored
In preparation for porting this pass to the new PM. llvm-svn: 272818
-
Reid Kleckner authored
llvm-svn: 272817
-
Miklos Vajna authored
The declaration wasn't renamed. Also neither part of the declaration wasn't renamed. Reviewers: klimek Differential Revision: http://reviews.llvm.org/D21364 llvm-svn: 272816
-
Rui Ueyama authored
Differential Revision: http://reviews.llvm.org/D21361 llvm-svn: 272815
-
Kevin B. Smith authored
to 32 bits. This is in response to a comment by Eli Friedman. llvm-svn: 272814
-
David Majnemer authored
Emit a S_UDT record for typedefs. We still need to do something for class types. Differential Revision: http://reviews.llvm.org/D21149 llvm-svn: 272813
-
Rafael Espindola authored
We were dropping the CanOmitFromDynSym bit when creating undefined symbols because of comdat. llvm-svn: 272812
-
Amaury Sechet authored
Summary: As per title. This completes the C API Attribute support. Reviewers: Wallbraker, whitequark, echristo, rafael, jyknight Subscribers: mehdi_amini Differential Revision: http://reviews.llvm.org/D21365 llvm-svn: 272811
-
Qin Zhao authored
Summary: Reports the struct field access info only if it has been used at least once. Adds type printing size limit. Formats the cache_frag.cpp with clang-format. Reviewers: bruening Subscribers: llvm-commits, eugenis, kcc, zhaoqin, vitalybuka, aizatsky, kubabrecka Differential Revision: http://reviews.llvm.org/D21351 llvm-svn: 272810
-
Eric Fiselier authored
llvm-svn: 272809
-
Pankaj Gode authored
llvm-svn: 272808
-
Sanjay Patel authored
Sibling patch to r272806: http://reviews.llvm.org/rL272806 llvm-svn: 272807
-
Sanjay Patel authored
This allows us to emit native IR in Clang (next commit). Also, update the intrinsic tests to show that codegen already knows how to handle the IR that Clang will soon produce. llvm-svn: 272806
-
Sanjay Patel authored
llvm-svn: 272805
-
Eric Fiselier authored
llvm-svn: 272804
-
Benjamin Kramer authored
llvm-svn: 272803
-
David Majnemer authored
We would fail to validate the type of the tan function which would cause downstream users of isValidProtoForLibFunc to assert. This fixes PR28143. llvm-svn: 272802
-
Kevin B. Smith authored
Differential Revision: http://reviews.llvm.org/D21144 llvm-svn: 272801
-