- Dec 11, 2007
-
-
Christopher Lamb authored
declarations to the LangRef. llvm-svn: 44860
-
Christopher Lamb authored
llvm-svn: 44859
-
Christopher Lamb authored
regions of memory that have a target specific relationship, as described in the Embedded C Technical Report. This also implements the 2007-12-11-AddressSpaces test, which demonstrates how address space attributes can be used in LLVM IR. In addition, this patch changes the bitcode signature for stores (in a backwards compatible manner), such that the pointer type, rather than the pointee type, is encoded. This permits type information in the pointer (e.g. address space) to be preserved for stores. LangRef updates are forthcoming. llvm-svn: 44858
-
Chris Lattner authored
llvm-svn: 44857
-
Chris Lattner authored
This allows us to compile: #include <emmintrin.h> typedef __m128i VSInt16; typedef short vSInt16 __attribute__ ((__vector_size__ (16))); VSInt16 t3() { return (VSInt16)((vSInt16)_mm_set1_epi16(6518)); } into: _t3: movaps LCPI1_0, %xmm0 ret instead of: _t3: movl $6518, %eax movd %eax, %xmm0 pextrw $0, %xmm0, %eax xorps %xmm0, %xmm0 pinsrw $0, %eax, %xmm0 punpcklwd %xmm0, %xmm0 pshufd $0, %xmm0, %xmm0 ret llvm-svn: 44856
-
Chris Lattner authored
of source/dest elements changes. This implements test/Transforms/InstCombine/bitcast-vector-fold.ll llvm-svn: 44855
-
Reid Spencer authored
Support libraries separately into their own module. llvm-svn: 44852
-
Anton Korobeynikov authored
llvm-svn: 44851
-
Chris Lattner authored
llvm-svn: 44850
-
Chris Lattner authored
llvm-svn: 44849
-
Chris Lattner authored
llvm-svn: 44845
-
Chris Lattner authored
llvm-svn: 44844
-
Steve Naroff authored
Avoid the first person in a recently added comment. llvm-svn: 44843
-
Steve Naroff authored
- Tweak several tests to be compatible with my last commit. - Add a test to message.m for an unusual case for GCC compat (as suggested by Chris). llvm-svn: 44842
-
Anders Carlsson authored
llvm-svn: 44841
-
Steve Naroff authored
Change err_undef_protocolref to warn_undef_protocolref (this is consistent with GCC). llvm-svn: 44840
-
Anders Carlsson authored
llvm-svn: 44839
-
Evan Cheng authored
llvm-svn: 44838
-
Evan Cheng authored
llvm-svn: 44837
-
Evan Cheng authored
possible before resorting to pextrw and pinsrw. - Better codegen for v4i32 shuffles masquerading as v8i16 or v16i8 shuffles. - Improves (i16 extract_vector_element 0) codegen by recognizing (i32 extract_vector_element 0) does not require a pextrw. llvm-svn: 44836
-
Nate Begeman authored
llvm-svn: 44835
-
Chris Lattner authored
the types are right in sema. Thanks Steve. llvm-svn: 44834
-
Devang Patel authored
llvm-svn: 44833
-
Devang Patel authored
llvm-svn: 44831
-
Devang Patel authored
For example, struct { char a; short b:2; }; llvm-svn: 44830
-
Gordon Henriksen authored
per-function collector model. Collector is now the factory for CollectorMetadata, so the latter may be subclassed. llvm-svn: 44827
-
Gordon Henriksen authored
llvm-svn: 44826
-
Chris Lattner authored
don't have to #include config.h in it. #including config.h breaks other projects that have their own autoconf stuff and try to #include the llvm headers. One obscure example is llvm-gcc. llvm-svn: 44825
-
Gordon Henriksen authored
Thompson. Usage should be something like this: open Llvm open Llvm_bitreader match read_bitcode_file fn with | Bitreader_failure msg -> prerr_endline msg | Bitreader_success m -> ...; dispose_module m Compile with: ocamlc llvm.cma llvm_bitreader.cma ocamlopt llvm.cmxa llvm_bitreader.cmxa llvm-svn: 44824
-
Steve Naroff authored
Explicitly set the string literal type from "char *" to "constant array of char". At this point, I am fairly certain the front-end is correct. Unfortunately, the back-end is still unhappy. That said, I've commented out the two lines in globalinit.c that are causing problems. Chris, please have a look...thanks! llvm-svn: 44823
-
Ted Kremenek authored
between fetching the size of the expression map (for use as the next integer id for an Expr*) and the creation of the entry in the map could be non-deterministic. This could cause the size of the map to be incremented prior to the index being determine. On Linux the map entry would be created first, causing the map to the "size" to be incremented prior to it being queried. On Mac OS X we had the reverse behavior. Now the size is always queried prior to the new id being inserted into the map. This was the real cause of the bit-overrun triggered in PR 1847: http://llvm.org/bugs/show_bug.cgi?id=1847 Also reverted the change in patch 44813, which was a bogus fix to this problem: http://llvm.org/viewvc/llvm-project?rev=44813&view=rev llvm-svn: 44822
-
Ted Kremenek authored
compiles again on Linux. llvm-svn: 44821
-
Anton Korobeynikov authored
llvm-svn: 44820
-
Anton Korobeynikov authored
llvm-svn: 44819
-
Anton Korobeynikov authored
Use it for Darwin. llvm-svn: 44818
-
- Dec 10, 2007
-
-
Chris Lattner authored
Reimplement the xform in Analysis/ConstantFolding.cpp where we can use targetdata to validate that it is safe. While I'm in there, fix some const correctness issues and generalize the interface to the "operand folder". llvm-svn: 44817
-
Steve Naroff authored
Add support for initializing char arrays from string literals. Adapted from a patch by Anders Carlsson. llvm-svn: 44816
-
Ted Kremenek authored
out-of-bounds bit accesses. The checks are only performed in a Debug build. llvm-svn: 44815
-
Chris Lattner authored
llvm-svn: 44814
-
Ted Kremenek authored
dataflow analysis over expressions and decls. This should fix bug 1847: http://llvm.org/bugs/show_bug.cgi?id=1847 Thanks to Török Edwin for providing a test case that identified the problem. llvm-svn: 44813
-