History log of /llvm-project/llvm/lib/ExecutionEngine/ExecutionEngine.cpp (Results 226 – 250 of 372)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 84a9055e 17-Jun-2008 Evan Cheng <evan.cheng@apple.com>

Don't forget to initialize SymbolSearchingDisabled.

llvm-svn: 52414


Revision tags: llvmorg-2.3.0
# 8f83fc4d 21-May-2008 Nate Begeman <natebegeman@mac.com>

Fix a couple issues with the JIT and multiple modules:

1. The "JITState" object creates a PassManager with the ModuleProvider that the
jit is created with. If the ModuleProvider is removed and d

Fix a couple issues with the JIT and multiple modules:

1. The "JITState" object creates a PassManager with the ModuleProvider that the
jit is created with. If the ModuleProvider is removed and deleted, the
PassManager is invalid.

2. The Global maps in the JIT were not invalidated with a ModuleProvider was
removed. This could lead to a case where the Module would be freed, and a
new Module with Globals at the same addresses could return invalid results.

llvm-svn: 51384

show more ...


# 69ddfbfe 20-May-2008 Dan Gohman <gohman@apple.com>

Fix ExecutionEngine's constant code to work properly when structs and arrays
will become first-class types.

llvm-svn: 51293


# ce4396bc 14-May-2008 Dale Johannesen <dalej@apple.com>

Add CommonLinkage; currently tentative definitions
are represented as "weak", but there are subtle differences
in some cases on Darwin, so we need both. The intent
is that "common" will behave ident

Add CommonLinkage; currently tentative definitions
are represented as "weak", but there are subtle differences
in some cases on Darwin, so we need both. The intent
is that "common" will behave identically to "weak" unless
somebody changes their target to do something else.
No functional change as yet.

llvm-svn: 51118

show more ...


# ee181730 04-Apr-2008 Chris Lattner <sabre@nondot.org>

Make ExecutionEngine::updateGlobalMapping return the old mapping.

llvm-svn: 49206


# cd4a6bed 10-Mar-2008 Duncan Sands <baldrick@free.fr>

Fix formatting.

llvm-svn: 48151


# a53414fd 08-Mar-2008 Nick Lewycky <nicholas@mxc.ca>

Load the symbols first so that the interpreter constructor can find them when
it tries to initialize them.

llvm-svn: 48046


# ca24fd90 29-Feb-2008 Dan Gohman <gohman@apple.com>

Simplify code using convertFromZeroExtendedInteger with an APInt
by using the new convertFromAPInt directly.

llvm-svn: 47739


# 579f0713 20-Feb-2008 Anton Korobeynikov <asl@math.spbu.ru>

Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings.

llvm-svn: 47367


# 1dd86b11 15-Feb-2008 Chris Lattner <sabre@nondot.org>

Support vector constant zeros, thanks to Zack Rusin for the testcase.

llvm-svn: 47148


# 21ad494f 13-Feb-2008 Nicolas Geoffray <nicolas.geoffray@lip6.fr>

Enable exception handling int JIT

llvm-svn: 47079


Revision tags: llvmorg-2.2.0
# f3ebc3f3 29-Dec-2007 Chris Lattner <sabre@nondot.org>

Remove attribution from file headers, per discussion on llvmdev.

llvm-svn: 45418


# edf07887 17-Dec-2007 Christopher Lamb <christopher.lamb@gmail.com>

Change the PointerType api for creating pointer types. The old functionality of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new p

Change the PointerType api for creating pointer types. The old functionality of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space.

llvm-svn: 45082

show more ...


# 26d6539e 15-Dec-2007 Duncan Sands <baldrick@free.fr>

These are more correctly called signaling NaNs.

llvm-svn: 45059


# 1202d1b1 14-Dec-2007 Duncan Sands <baldrick@free.fr>

Teach the interpreter to read and write memory in the
endianness of the target not of the host. Done by the
simple expedient of reversing bytes for primitive types
if the host and target endianness

Teach the interpreter to read and write memory in the
endianness of the target not of the host. Done by the
simple expedient of reversing bytes for primitive types
if the host and target endianness don't match. This is
correct for integer and pointer types. I don't know if
it is correct for floating point types.

llvm-svn: 45039

show more ...


# fde55674 12-Dec-2007 Duncan Sands <baldrick@free.fr>

Remove host endianness info from TargetData and
put it in a new header System/Host.h instead.
Instead of getting the endianness from configure,
calculate it directly.

llvm-svn: 44959


# 5c65cb46 10-Dec-2007 Duncan Sands <baldrick@free.fr>

Fix PR1836: in the interpreter, read and write apints
using the minimum possible number of bytes. For little
endian targets run on little endian machines, apints are
stored in memory from LSB to MSB

Fix PR1836: in the interpreter, read and write apints
using the minimum possible number of bytes. For little
endian targets run on little endian machines, apints are
stored in memory from LSB to MSB as before. For big endian
targets on big endian machines they are stored from MSB to
LSB which wasn't always the case before (if the target and
host endianness doesn't match values are stored according
to the host's endianness). Doing this requires knowing the
endianness of the host, which is determined when configuring -
thanks go to Anton for this. Only having access to little
endian machines I was unable to properly test the big endian
part, which is also the most complicated...

llvm-svn: 44796

show more ...


# dc351b94 06-Dec-2007 Chris Lattner <sabre@nondot.org>

simplify creation of the interpreter, make ExecutionEngine ctor protected,
delete one ExecutionEngine ctor, minor cleanup.

llvm-svn: 44646


# ff306287 28-Nov-2007 Duncan Sands <baldrick@free.fr>

My compiler complains that "x always evaluates to true"
in this call:

Result.IntVal = APInt(80, 2, x);

What is x?

uint16_t x[8];

I deduce that the APInt constructor being used is this one:

A

My compiler complains that "x always evaluates to true"
in this call:

Result.IntVal = APInt(80, 2, x);

What is x?

uint16_t x[8];

I deduce that the APInt constructor being used is this one:

APInt(uint32_t numBits, uint64_t val, bool isSigned = false);

rather than this one:

APInt(uint32_t numBits, uint32_t numWords, const uint64_t bigVal[]);

That doesn't seem right! This fix compiles but is otherwise completely
untested.

llvm-svn: 44400

show more ...


# 44b8721d 01-Nov-2007 Duncan Sands <baldrick@free.fr>

Executive summary: getTypeSize -> getTypeStoreSize / getABITypeSize.
The meaning of getTypeSize was not clear - clarifying it is important
now that we have x86 long double and arbitrary precision int

Executive summary: getTypeSize -> getTypeStoreSize / getABITypeSize.
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

show more ...


# fd6f3257 22-Oct-2007 Chris Lattner <sabre@nondot.org>

add a mechanism for the JIT to invoke a function to lazily create functions as they are referenced.

llvm-svn: 43210


# edaf0b46 21-Oct-2007 Chris Lattner <sabre@nondot.org>

LoadLibraryPermanently doesn't throw.

llvm-svn: 43207


# b5163bb9 21-Oct-2007 Chris Lattner <sabre@nondot.org>

Add a convenience method for creating EE's.

llvm-svn: 43206


# 324fe890 15-Oct-2007 Devang Patel <dpatel@apple.com>

Add removeModuleProvider()

llvm-svn: 43002


# 5f009733 07-Oct-2007 Neil Booth <neil@daikokuya.co.uk>

convertFromInteger, as originally written, expected sign-extended
input. APInt unfortunately zero-extends signed integers, so Dale
modified the function to expect zero-extended input. Make this
ass

convertFromInteger, as originally written, expected sign-extended
input. APInt unfortunately zero-extends signed integers, so Dale
modified the function to expect zero-extended input. Make this
assumption explicit in the function name.

llvm-svn: 42732

show more ...


12345678910>>...15