- Apr 04, 2008
-
-
Chris Lattner authored
tools. This is currently only enabled on the mac, but could easily be supported by other hosts that are interested. llvm-svn: 49207
-
- Mar 25, 2008
-
-
Dan Gohman authored
llvm-svn: 48801
-
- Mar 07, 2008
-
-
Chris Lattner authored
llvm-svn: 48019
-
- Feb 13, 2008
-
-
Nicolas Geoffray authored
llvm-svn: 47079
-
- Jan 25, 2008
-
-
Chris Lattner authored
was actually passing a completely incorrect size to sys_icache_invalidate. Instead of having the JITEmitter do this (which doesn't have the correct size), just make the target sync its own stubs. llvm-svn: 46354
-
- Jan 05, 2008
-
-
Evan Cheng authored
llvm-svn: 45616
-
- Jan 04, 2008
-
-
Evan Cheng authored
llvm-svn: 45575
-
- Jan 03, 2008
-
-
Evan Cheng authored
for non-function GV relocations that require function address stubs (e.g. Mac OS X in non-static mode). llvm-svn: 45527
-
- Dec 29, 2007
-
-
Chris Lattner authored
llvm-svn: 45418
-
- Dec 06, 2007
-
-
Chris Lattner authored
delete one ExecutionEngine ctor, minor cleanup. llvm-svn: 44646
-
Chris Lattner authored
own JITMemoryManager interface. There is no functionality change with this patch. llvm-svn: 44640
-
- Nov 01, 2007
-
-
Duncan Sands authored
The meaning of getTypeSize was not clear - clarifying it is important now that we have x86 long double and arbitrary precision integers. The issue with long double is that it requires 80 bits, and this is not a multiple of its alignment. This gives a primitive type for which getTypeSize differed from getABITypeSize. For arbitrary precision integers it is even worse: there is the minimum number of bits needed to hold the type (eg: 36 for an i36), the maximum number of bits that will be overwriten when storing the type (40 bits for i36) and the ABI size (i.e. the storage size rounded up to a multiple of the alignment; 64 bits for i36). This patch removes getTypeSize (not really - it is still there but deprecated to allow for a gradual transition). Instead there is: (1) getTypeSizeInBits - a number of bits that suffices to hold all values of the type. For a primitive type, this is the minimum number of bits. For an i36 this is 36 bits. For x86 long double it is 80. This corresponds to gcc's TYPE_PRECISION. (2) getTypeStoreSizeInBits - the maximum number of bits that is written when storing the type (or read when reading it). For an i36 this is 40 bits, for an x86 long double it is 80 bits. This is the size alias analysis is interested in (getTypeStoreSize returns the number of bytes). There doesn't seem to be anything corresponding to this in gcc. (3) getABITypeSizeInBits - this is getTypeStoreSizeInBits rounded up to a multiple of the alignment. For an i36 this is 64, for an x86 long double this is 96 or 128 depending on the OS. This is the spacing between consecutive elements when you form an array out of this type (getABITypeSize returns the number of bytes). This is TYPE_SIZE in gcc. Since successive elements in a SequentialType (arrays, pointers and vectors) need to be aligned, the spacing between them will be given by getABITypeSize. This means that the size of an array is the length times the getABITypeSize. It also means that GEP computations need to use getABITypeSize when computing offsets. Furthermore, if an alloca allocates several elements at once then these too need to be aligned, so the size of the alloca has to be the number of elements multiplied by getABITypeSize. Logically speaking this doesn't have to be the case when allocating just one element, but it is simpler to also use getABITypeSize in this case. So alloca's and mallocs should use getABITypeSize. Finally, since gcc's only notion of size is that given by getABITypeSize, if you want to output assembler etc the same as gcc then getABITypeSize is the size you want. Since a store will overwrite no more than getTypeStoreSize bytes, and a read will read no more than that many bytes, this is the notion of size appropriate for alias analysis calculations. In this patch I have corrected all type size uses except some of those in ScalarReplAggregates, lib/Codegen, lib/Target (the hard cases). I will get around to auditing these too at some point, but I could do with some help. Finally, I made one change which I think wise but others might consider pointless and suboptimal: in an unpacked struct the amount of space allocated for a field is now given by the ABI size rather than getTypeStoreSize. I did this because every other place that reserves memory for a type (eg: alloca) now uses getABITypeSize, and I didn't want to make an exception for unpacked structs, i.e. I did it to make things more uniform. This only effects structs containing long doubles and arbitrary precision integers. If someone wants to pack these types more tightly they can always use a packed struct. llvm-svn: 43620
-
- Jul 19, 2007
-
-
Reid Spencer authored
the type "unsigned" instead of uintptr_t for a 1-bit structure field. llvm-svn: 40066
-
- Jul 09, 2007
-
-
Gabor Greif authored
llvm-svn: 38453
-
- Jul 05, 2007
-
-
Gabor Greif authored
Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
-
- Jun 30, 2007
-
-
Evan Cheng authored
llvm-svn: 37825
-
- Mar 06, 2007
-
-
Anton Korobeynikov authored
llvm-svn: 34959
-
- Feb 24, 2007
-
-
Chris Lattner authored
llvm-svn: 34552
-
- Jan 30, 2007
-
-
Reid Spencer authored
confusion with external linkage types. llvm-svn: 33663
-
- Jan 23, 2007
-
-
Anton Korobeynikov authored
llvm-svn: 33461
-
- Jan 20, 2007
-
-
Chris Lattner authored
that disassembleBuffer will be called even if NDEBUG, but the result will be ignored. llvm-svn: 33408
-
- Jan 19, 2007
-
-
Andrew Lenharth authored
llvm-svn: 33367
-
Anton Korobeynikov authored
llvm-svn: 33358
-
- Dec 19, 2006
-
-
Chris Lattner authored
llvm-svn: 32700
-
- Dec 14, 2006
-
-
Jim Laskey authored
llvm-svn: 32588
-
Jim Laskey authored
2. Allow the jit to handle PIC relocable jump tables. llvm-svn: 32581
-
- Dec 07, 2006
-
-
Bill Wendling authored
llvm-svn: 32320
-
- Dec 06, 2006
-
-
Chris Lattner authored
is 'unsigned'. llvm-svn: 32279
-
- Nov 16, 2006
-
-
Evan Cheng authored
llvm-svn: 31788
-
- Nov 09, 2006
-
-
Chris Lattner authored
lazy compilation is ever attempted llvm-svn: 31602
-
- Nov 02, 2006
-
-
Reid Spencer authored
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting fall out by removing unused variables. Remaining warnings have to do with unused functions (I didn't want to delete code without review) and unused variables in generated code. Maintainers should clean up the remaining issues when they see them. All changes pass DejaGnu tests and Olden. llvm-svn: 31380
-
- Sep 15, 2006
-
-
Chris Lattner authored
llvm-svn: 30384
-
- Sep 14, 2006
-
-
Anton Korobeynikov authored
DLL* linkages got full (I hope) codegeneration support in C & both x86 assembler backends. External weak linkage added for future use, we don't provide any codegeneration, etc. support for it. llvm-svn: 30374
-
- Sep 13, 2006
-
-
Chris Lattner authored
llvm-svn: 30292
-
- Sep 12, 2006
-
-
Evan Cheng authored
llvm-svn: 30277
-
- Sep 11, 2006
-
-
Nate Begeman authored
llvm-svn: 30240
-
- Aug 16, 2006
-
-
Chris Lattner authored
linking the program on the fly. llvm-svn: 29721
-
- Jul 27, 2006
-
-
Evan Cheng authored
llvm-svn: 29351
-
Jim Laskey authored
llvm-svn: 29345
-
Evan Cheng authored
llvm-svn: 29334
-