History log of /external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f3ef5332fa3f4d5ec72c178a2b19dac363a19383 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r256229

http://b/26987366

Change-Id: I1f29c4676a8abe633ab5707dded58d846c973d50
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
6948897e478cbd66626159776a8017b3c18579b9 01-Jul-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r239765

Bug: 20140355: This rebase pulls the upstream fix for the spurious
warnings mentioned in the bug.

Change-Id: I7fd24253c50f4d48d900875dcf43ce3f1721a3da
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
0c7f116bb6950ef819323d855415b2f2b0aad987 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r235153

Change-Id: I9bf53792f9fc30570e81a8d80d296c681d005ea7
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
37ed9c199ca639565f6ce88105f9e39e898d82d0 01-Dec-2014 Stephen Hines <srhines@google.com> Update aosp/master LLVM for rebase to r222494.

Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
cf47239da30ea57aaddc591018d0c0a2858088d8 11-Sep-2013 Benjamin Kramer <benny.kra@googlemail.com> Don't expose symbols of lle_ functions.

+ formatting fixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190523 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4ca0ce2594a3e3d420be548cb3b6e4e8f51e229f 02-Sep-2013 Elena Demikhovsky <elena.demikhovsky@intel.com> llvm interpreter: select, shuffle and insertelement instructions.
This patch implements vector support for select instruction and adds specific vector instructions : shuffle and insertelement. (tests are also included)
and functions lle_X_memset, lle_X_memcpy added.

Done by Veselov, Yuri (mailto:Yuri.Veselov@intel.com)



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189735 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
0b8c9a80f20772c3793201ab5b251d3520b9cea3 02-Jan-2013 Chandler Carruth <chandlerc@gmail.com> Move all of the header files which are involved in modelling the LLVM IR
into their new header subdirectory: include/llvm/IR. This matches the
directory structure of lib, and begins to correct a long standing point
of file layout clutter in LLVM.

There are still more header files to move here, but I wanted to handle
them in separate commits to make tracking what files make sense at each
layer easier.

The only really questionable files here are the target intrinsic
tablegen files. But that's a battle I'd rather not fight today.

I've updated both CMake and Makefile build systems (I think, and my
tests think, but I may have missed something).

I've also re-sorted the includes throughout the project. I'll be
committing updates to Clang, DragonEgg, and Polly momentarily.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171366 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
d04a8d4b33ff316ca4cf961e06c9e312eff8e64f 03-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Use the new script to sort the includes of every file under lib.

Sooooo many of these had incorrect or strange main module includes.
I have manually inspected all of these, and fixed the main module
include to be the nearest plausible thing I could find. If you own or
care about any of these source files, I encourage you to take some time
and check that these edits were sensible. I can't have broken anything
(I strictly added headers, and reordered them, never removed), but they
may not be the headers you'd really like to identify as containing the
API being implemented.

Many forward declarations and missing includes were added to a header
files to allow them to parse cleanly when included first. The main
module rule does in fact have its merits. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
426c2bf5cdd2173e4a33aea8cb92cf684a724f4b 01-Nov-2012 Chandler Carruth <chandlerc@gmail.com> Revert the majority of the next patch in the address space series:

r165941: Resubmit the changes to llvm core to update the functions to
support different pointer sizes on a per address space basis.

Despite this commit log, this change primarily changed stuff outside of
VMCore, and those changes do not carry any tests for correctness (or
even plausibility), and we have consistently found questionable or flat
out incorrect cases in these changes. Most of them are probably correct,
but we need to devise a system that makes it more clear when we have
handled the address space concerns correctly, and ideally each pass that
gets updated would receive an accompanying test case that exercises that
pass specificaly w.r.t. alternate address spaces.

However, from this commit, I have retained the new C API entry points.
Those were an orthogonal change that probably should have been split
apart, but they seem entirely good.

In several places the changes were very obvious cleanups with no actual
multiple address space code added; these I have not reverted when
I spotted them.

In a few other places there were merge conflicts due to a cleaner
solution being implemented later, often not using address spaces at all.
In those cases, I've preserved the new code which isn't address space
dependent.

This is part of my ongoing effort to clean out the partial address space
code which carries high risk and low test coverage, and not likely to be
finished before the 3.2 release looms closer. Duncan and I would both
like to see the above issues addressed before we return to these
changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167222 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
2c39b15073db81d93bb629303915b7d7e5d088dc 15-Oct-2012 Micah Villmow <villmow@gmail.com> Resubmit the changes to llvm core to update the functions to support different pointer sizes on a per address space basis.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165941 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
fb384d61c78b60787ed65475d8403aee65023962 11-Oct-2012 Micah Villmow <villmow@gmail.com> Revert 165732 for further review.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
f3840d2c16a4ec4c879a8ded402835746de380f8 11-Oct-2012 Micah Villmow <villmow@gmail.com> Add in the first iteration of support for llvm/clang/lldb to allow variable per address space pointer sizes to be optimized correctly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
3574eca1b02600bac4e625297f4ecf745f4c4f32 08-Oct-2012 Micah Villmow <villmow@gmail.com> Move TargetData to DataLayout.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165402 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4bf6c19e94e4c7eb888d94c1aa322d23dbcc93ba 24-Feb-2012 NAKAMURA Takumi <geek4civic@gmail.com> EE/Interpreter/ExternalFunctions.cpp: Staticize lle_X_() entries. They can be mapped in FuncNames[] at the initialization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151313 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
423cbc51440e9b7381ae7372c33fd76562c35e5f 24-Feb-2012 NAKAMURA Takumi <geek4civic@gmail.com> EE/Interpreter/ExternalFunctions.cpp: Prune "C" linkage to suppress warnings with -Wreturn-type (and MSC's w4190).

In historical reason, Interpreter's external entries had prefix "lle_X_" as C linkage, even for well-known entries in EE/Interpreter.
Now, at least on ToT, they are resolved via FuncNames[] mapper.
We will not need their symbols are expected to be exported any more.

Clang r150128 has introduced the warning <"%0 has C-linkage specified, but returns user-defined type %1 which is incompatible with C">.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151312 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
010ad7d353372be52e3ed09a42b915c363081f3f 14-Feb-2012 Aaron Ballman <aaron@aaronballman.com> Using the new external-linkage warning recently added instead of disabling all return type warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150512 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
da32e46936cca9ad191d178f6894ca133ba69db2 14-Feb-2012 Aaron Ballman <aaron@aaronballman.com> Fixing warning due to the new "UTD return type in extern 'C'".

Patch by Matt Johnson

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4d6ccb5f68cd7c6418a209f1fa4dbade569e4493 20-Jan-2012 David Blaikie <dblaikie@gmail.com> More dead code removal (using -Wunreachable-code)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148578 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
a7b0cb759433c715065440ee2a963a04db7f2b0b 15-Nov-2011 Benjamin Kramer <benny.kra@googlemail.com> Remove all remaining uses of Value::getNameStr().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144648 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
db125cfaf57cc83e7dd7453de2d509bc8efd0e5e 18-Jul-2011 Chris Lattner <sabre@nondot.org> land David Blaikie's patch to de-constify Type, with a few tweaks.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
1afcace3a3a138b1b18e5c6270caa8dae2261ae2 09-Jul-2011 Chris Lattner <sabre@nondot.org> Land the long talked about "type system rewrite" patch. This
patch brings numerous advantages to LLVM. One way to look at it
is through diffstat:
109 files changed, 3005 insertions(+), 5906 deletions(-)

Removing almost 3K lines of code is a good thing. Other advantages
include:

1. Value::getType() is a simple load that can be CSE'd, not a mutating
union-find operation.
2. Types a uniqued and never move once created, defining away PATypeHolder.
3. Structs can be "named" now, and their name is part of the identity that
uniques them. This means that the compiler doesn't merge them structurally
which makes the IR much less confusing.
4. Now that there is no way to get a cycle in a type graph without a named
struct type, "upreferences" go away.
5. Type refinement is completely gone, which should make LTO much MUCH faster
in some common cases with C++ code.
6. Types are now generally immutable, so we can use "Type *" instead
"const Type *" everywhere.

Downsides of this patch are that it removes some functions from the C API,
so people using those will have to upgrade to (not yet added) new API.
"LLVM 3.0" is the right time to do this.

There are still some cleanups pending after this, this patch is large enough
as-is.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
0cd0d881604775f3f97048645f040b2ef4f61e4b 18-Jun-2011 Chris Lattner <sabre@nondot.org> eliminate the Type::getDescription() method, using "<<" instead. This
removes some gunk from LLVMContext.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133360 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
1f6efa3996dd1929fbc129203ce5009b620e6969 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com> Merge System into Support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
3472766f9eb7d66f234c390ce1b3a8b76f0ee9ce 12-Jul-2010 Duncan Sands <baldrick@free.fr> Convert some tab stops into spaces.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108130 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
75361b69f3f327842b9dad69fa7f28ae3b688412 08-Apr-2010 Chris Lattner <sabre@nondot.org> rename llvm::llvm_report_error -> llvm::report_fatal_error



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100709 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
820580dfa9ed3e70d3eda06138a59fd903f61b7a 30-Mar-2010 Torok Edwin <edwintorok@gmail.com> Typo noticed by Duncan.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99918 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
fb70e7deafbdce88882735ec8f658e710d65e8cc 30-Mar-2010 Torok Edwin <edwintorok@gmail.com> Don't overwrite previous value, if it succeeded.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99886 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
e38bc14a0106618ada8a2ea1b99c562a220c7a7c 30-Mar-2010 Torok Edwin <edwintorok@gmail.com> Honour addGlobalMapping() in the interpreter, if it was used to add mappings for
external Functions (the JIT does honour this).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
12ea66a7277240c5b045ed14c140f94d453eea0e 28-Jan-2010 Benjamin Kramer <benny.kra@googlemail.com> Replace strcpy with memcpy when we have the length around anyway.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
c74fe78c2d267e05ba79c9dd83b0888cfa35c3f5 05-Jan-2010 David Greene <greened@obbligato.org> These should probably be errs().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92673 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4ac99a8c26cad3f25a50c32dfbd249d6ec5958a3 05-Jan-2010 David Greene <greened@obbligato.org> Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92618 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b5106f5c33b79827ce2d329e0ac9f2780b9fe222 18-Nov-2009 Nick Lewycky <nicholas@mxc.ca> Fix passing of float arguments through ffi.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89198 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
0e49fe814065ce382c34f4ba884be4a51f9c6e4c 17-Nov-2009 Nick Lewycky <nicholas@mxc.ca> Fail less mysteriously; inform the user that their LLVM was not built with
libffi support and that the interpreter can't call external functions without
it. Patch by Timo Juhani Lindfors! Fixes PR5466.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89062 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
d702c8c98064733bd69c636466b502ea1a3a2337 08-Nov-2009 Daniel Dunbar <daniel@zuster.org> Remove ByteswapSCANFResults, it is dead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86458 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
327127909eb8500edcdaae3ce9bd952b08003e59 08-Nov-2009 Nick Lewycky <nicholas@mxc.ca> We don't need to byteswap, the interpreter assumes the program is running
native anyways. This fixes a crash using %d and similar in a scanf statement.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86440 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
7de3bd273ec3f4f027089285106095e8700e226d 18-Sep-2009 Nick Lewycky <nicholas@mxc.ca> Stop using alloca.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82225 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
e4a5743d87bb5b389c4505c51714364062704a7b 17-Sep-2009 Daniel Dunbar <daniel@zuster.org> Some platforms may need malloc.h for alloca.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82100 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
d9ea85ab01fb0f2929ed50223d3758dceea8bcbd 23-Aug-2009 Chris Lattner <sabre@nondot.org> remove some uses of llvm/Support/Streams.h



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
1d0be15f89cb5056e20e2d24faa8d6afb1573bca 13-Aug-2009 Owen Anderson <resistor@mac.com> Push LLVMContexts through the IntegerType APIs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78948 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
a9ad04191cb56c42944b17980b8b2bb2afe11ab2 13-Aug-2009 Dan Gohman <gohman@apple.com> This void is implicit in C++.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78848 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
482cccd37e71ad69845d954b548bd46c2ee15155 07-Aug-2009 Daniel Dunbar <daniel@zuster.org> MSVC warning fixes; patch by Stein Roger!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78405 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
f6ccee5a9d2b9573f679bca6266ade3eb8cd3f88 24-Jul-2009 Daniel Dunbar <daniel@zuster.org> Switch to getNameStr().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76962 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
8f60302ee5e45c90fba7b8c771986106e3618129 22-Jul-2009 Daniel Dunbar <daniel@zuster.org> Simplify some uses of Value::getName()


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76786 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
7d696d80409aad20bb5da0fc4eccab941dd371d4 11-Jul-2009 Torok Edwin <edwintorok@gmail.com> Convert more assert(0)+abort() -> LLVM_UNREACHABLE,
and abort()/exit() -> llvm_report_error().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75363 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
a9d1f2c559ef4b2549e29288fe6944e68913ba0f 07-Jul-2009 Owen Anderson <resistor@mac.com> Have scoped mutexes take referenes instead of pointers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
c226570bdedff961d9c470951f477373cdb86437 23-Jun-2009 Owen Anderson <resistor@mac.com> Add locking around the external function lookup table for the interpreter.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73912 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
93f70fc291c56287bff7aefd924d171f005fdcc7 13-Apr-2009 Nick Lewycky <nicholas@mxc.ca> Link against libffi if available, fall back to "no external calls from
interpreter mode" when it's not.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68937 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
f9c5c5c7a25a3c549cbbc523bf2c8f4e895c20b6 04-Feb-2009 Nick Lewycky <nicholas@mxc.ca> Reapply patch from r62553, with a fix to avoid looking for an ffi.h that isn't
there.

This changes the interpreter to use libffi. After this patch, the interpreter
will barely be able to call any external functions if built on a system without
libffi installed (just enough to pass 'make check' really). But with libffi,
we can now call any function that isn't variadic or taking a struct or vector
parameter (but pointer to struct is fine). Patch by Alexei Svitkine!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63723 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
32aaee684d3fd24a7fb6e385877f113f2bd41ed6 22-Jan-2009 Tanya Lattner <tonic@nondot.org> Revert r62553 and r62616 due to issues with portability.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62777 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
9c70819da0cb4e418adfff4e6610317dd7209eda 20-Jan-2009 Duncan Sands <baldrick@free.fr> Fix typo. Patch by Alexei Svitkine.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62616 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
f514e2d28f3ff1d0d959522bfa0834d023d91aaf 20-Jan-2009 Nick Lewycky <nicholas@mxc.ca> Make the Interpreter use libffi if it's available. Patch from Alexei Svitkine!

This requires a rebuild of 'configure' itself. I will be committing that next, but
built with the wrong version of autoconf. Somebody who has the right one, please update
it.

As a side-note, because of the way autoconf works, all built tools will link against
libffi, not just lli. If you know how to fix this, please let me know ...


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62553 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4520dd2b7b20af07d5a3e4d06d964a532044eb10 08-Oct-2008 Duncan Sands <baldrick@free.fr> Add <cstdio> include where needed by gcc-4.4.
Patch by Samuel Tardieu.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
1eac4e0844439219208e94a17796b8232de41a5c 06-Aug-2008 Dan Gohman <gohman@apple.com> Use strcpy instead of sprintf here. This avoids a GCC 4.3 format-string
warning. There wasn't actually a problem here, because the contents of
the string are known.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54385 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
ae9f3a3b7c915f725aef5a7250e88eaeddda03c6 20-Feb-2008 Anton Korobeynikov <asl@math.spbu.ru> Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
8647bcd5de06eb4f8c11cee90333e373460aacb7 20-Feb-2008 Evan Cheng <evan.cheng@apple.com> Added memmove to interpreter external functions list. Patch by Daniel Dunbar.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47363 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
303595942502f17c087fa28874c2b89117148c45 29-Jan-2008 Dan Gohman <gohman@apple.com> Use empty() instead of comparing size() with zero.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46514 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4ee451de366474b9c228b4e5fa573795a715216d 29-Dec-2007 Chris Lattner <sabre@nondot.org> Remove attribution from file headers, per discussion on llvmdev.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
ded2b0d0fb0d4fa09198e3d05da529d2c97214c3 14-Dec-2007 Dan Gohman <gohman@apple.com> Add explicit keywords, and fix a minor typo that they uncovered.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45034 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
621deadee8967ab3a56c5478bb810b7200c48edb 12-Dec-2007 Zhou Sheng <zhousheng00@gmail.com> Add a guard to cxxabi header as other platform may
not support it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44914 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
6a7951ce9bc9e5f21fcee7314893345acd4e77d7 12-Dec-2007 Zhou Sheng <zhousheng00@gmail.com> Fixed PR1629.
Make lli interpreter correctly call external functions sin()/cos(),
__cxa_guard_acquire() and __cxa_guard_release().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44910 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
22ad1d72cd4e5054389c94e1c03df4564c4a466a 10-Dec-2007 Duncan Sands <baldrick@free.fr> It looks like this has been broken for some time -
get it to compile.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
42346f58d810204606ea5ec3d2e583b0a6da2531 31-Jul-2007 Anton Korobeynikov <asl@math.spbu.ru> Add a comment: don't expect from external function resolver in interpreter
things, it wasn't designed to handle.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40608 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
936baaa5aeddb78ff41b1f655101b4d88c47473b 27-Jul-2007 Chuck Rose III <cfr@adobe.com> VStudio compiler errors and placing Function*->ExFunc map under ManagedStatic control.

This commit fixes two things. One is a pair of VStudio compiler errors stemming from variables
which defined within the for loop statement and also within the body of the for loop. I fixed these
by renaming one of the two variables. Additionally, I've made the Function*->ExFunc map in
ExternalFunctions.cpp a ManagedStatic object, so that cleanup will be done on llvm_shutdown. In repeated
uses of the interpreter, where the same Function* address may get used for completely differnet functions,
this was causing a crash.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40558 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
cc442cabf6585084ae6238f8003c14e5ebc386f6 19-May-2007 Reid Spencer <rspencer@reidspencer.com> On Linux platforms and at optimization levels -O1 and above, llvm-gcc can
turn "putchar" calls into _IO_putc calls which is a lower-level interface.
This patch allows these calls to be executed by lli in interpreter mode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b3b0727032e58c8b8f3017c2b3f560616c6905af 21-Apr-2007 Reid Spencer <rspencer@reidspencer.com> We only need one putchar which gives it a shot at getting matched by its
users.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36305 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
97e0c22330f1856a7e026d162040aafdb2a70d0e 30-Mar-2007 Reid Spencer <rspencer@reidspencer.com> For PR1293:
* Rename the FunctionType* parameter from M to FT on all the functions.
* Implement a fix for PR1293 by just asserting that library functions that
must return pointers should have pointer typed results. This just makes
sure that we don't attempt to use an uninitialized integer or something
later on.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
bfcd5992d8ae20812e61fe3b017b79254236a8ba 06-Mar-2007 Reid Spencer <rspencer@reidspencer.com> Adjust and simplify external function processing now that GenericValue has
a single integer field of type APInt.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34950 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
a54b7cbd452b3adb2f51346140d996b29c2cdb30 12-Jan-2007 Reid Spencer <rspencer@reidspencer.com> For PR1064:
Implement the arbitrary bit-width integer feature. The feature allows
integers of any bitwidth (up to 64) to be defined instead of just 1, 8,
16, 32, and 64 bit integers.

This change does several things:
1. Introduces a new Derived Type, IntegerType, to represent the number of
bits in an integer. The Type classes SubclassData field is used to
store the number of bits. This allows 2^23 bits in an integer type.
2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and
64-bit integers. These are replaced with just IntegerType which is not
a primitive any more.
3. Adjust the rest of LLVM to account for this change.

Note that while this incremental change lays the foundation for arbitrary
bit-width integers, LLVM has not yet been converted to actually deal with
them in any significant way. Most optimization passes, for example, will
still only deal with the byte-width integer types. Future increments
will rectify this situation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33113 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4fe16d607d11e29d742208894909733f5ad01f8f 11-Jan-2007 Reid Spencer <rspencer@reidspencer.com> Rename BoolTy as Int1Ty. Patch by Sheng Zhou.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33076 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
e49661bdf5b7a913d4e368cf511381e524ae403a 31-Dec-2006 Reid Spencer <rspencer@reidspencer.com> For PR950:
Convert signed integer types to signless ones.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32787 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
e81561909d128c6e2d8033cb5465a49b2596b26a 07-Dec-2006 Bill Wendling <isanbard@gmail.com> Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
97af751deb9b26fd42fbcee082da9ccc4ded5b45 02-Dec-2006 Jeff Cohen <jeffc@jolt-lang.org> Unbreak VC++ build.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32113 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
480f093dc2b6aff9b501cc56cf5728513e55be81 28-Nov-2006 Bill Wendling <isanbard@gmail.com> Removed #include <iostream> and replaced streams with llvm streams.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31949 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
d6c3422e3126927840683574a658a0deada903f0 08-Nov-2006 Jim Laskey <jlaskey@mac.com> Remove redundant <cmath>.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31561 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
fe854034677f59baca1e38075e71f6efca247a03 16-Aug-2006 Chris Lattner <sabre@nondot.org> initial changes to support JIT'ing from multiple module providers, implicitly
linking the program on the fly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29721 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
26e6e109d559fb644b59231c14346997290dc9d6 01-Jun-2006 Chris Lattner <sabre@nondot.org> Fix -pedantic warnings


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28635 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
19b7e0e0cabfa6dfc559c64e3d6ed053832c4047 24-May-2006 Reid Spencer <rspencer@reidspencer.com> For PR786:
Minor tweaks in public headers and a few .cpp files so that LLVM can build
successfully with -pedantic and projects using LLVM with -pedantic don't
get warnings from LLVM. There's still more -pedantic warnings to fix.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28453 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
3c94497ec7852eccd68c1bc1663e8ac2a7bb1ab9 22-Apr-2005 Misha Brukman <brukman+llvm@gmail.com> Convert tabs to spaces


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21440 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
d1c881a8d4da8b4d99c2a40512fbcca652ab445e 22-Apr-2005 Misha Brukman <brukman+llvm@gmail.com> * Remove trailing whitespace
* Convert tabs to spaces


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21421 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4e7dd8f7c4c0dc930ca64343316625cf464fb2d7 21-Jan-2005 Chris Lattner <sabre@nondot.org> If the interpreter tries to execute an external function, kill it. Of course
since we are dirty, special case __main. This should fix the infinite loop
horrible stuff that happens on linux-alpha when configuring llvm-gcc. It
might also help cygwin, who knows??


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19729 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
638559aaa3a30cef596fae20292295cb0a329df1 16-Jan-2005 Chris Lattner <sabre@nondot.org> Improve compatiblity with HPUX on Itanium, patch by Duraid Madina


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19586 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
9dacd128b4539b8100e97b973ec10cc36d712849 08-Jan-2005 Chris Lattner <sabre@nondot.org> Silence warnings


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19392 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
df5a37efc997288da520ff4889443e3560d95387 29-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Use System/DynamicLibrary instead of Support/DynamicLinker


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18357 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
abec8f96e3e35fbb306c957674809c4ace04a620 28-Oct-2004 Reid Spencer <rspencer@reidspencer.com> Changes to support rand48 tests


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17284 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
551ccae044b0ff658fe629dd67edd5ffe75d10e8 02-Sep-2004 Reid Spencer <rspencer@reidspencer.com> Changes For Bug 352
Move include/Config and include/Support into include/llvm/Config,
include/llvm/ADT and include/llvm/Support. From here on out, all LLVM
public header files must be under include/llvm/.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
f70c22b019494723d0e706f93d6542dfaa6e73a5 17-Jun-2004 Chris Lattner <sabre@nondot.org> Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14201 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
59108d3d4010e6d9c4e289cc113a9f6d79da5aca 16-Jun-2004 Brian Gaeke <gaeke@uiuc.edu> Add int ferror(FILE *)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14194 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
63e8dfa8a3f1b2f803d252acd1b8afb17c320238 27-May-2004 Chris Lattner <sabre@nondot.org> These #includes are long dead


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
0098bdfb9723c48c144fa9534ae1fe2ffb1c0f13 25-May-2004 Reid Spencer <rspencer@reidspencer.com> Get rid of a wart: useless getFILE function is now a cast macro.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
3c66c355b6e88407fd77a90bf8be0e2f7297409e 01-May-2004 Brian Gaeke <gaeke@uiuc.edu> Generalize the strlen size_t hack, for the benefit of the other external
functions with wrappers that either take or return size_ts.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13296 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
7301178aac1baf1cc334e7c7a66bfe50a65fbf49 28-Dec-2003 Chris Lattner <sabre@nondot.org> Pass around IntrinsicLowering instances as appropriate.
Reimplement the Interpreters implementation of va_* to be more direct.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
f7a743d7ed6e96af4c836e512c9cd59812c8186e 15-Dec-2003 Chris Lattner <sabre@nondot.org> Finegrainify namespacification


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10465 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
6c9d5827388d5b5a84ed5d1c5d5c8261ffcf014f 12-Dec-2003 Brian Gaeke <gaeke@uiuc.edu> Dynamically get the right-sized member of a GenericValue to hold a size_t, and
use it to return the result of strlen.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
8da17489aa1a66bee9a4ceda352c78bcbcd1ac56 13-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Change LLI's internal representation of va_list to a pointer to the next
argument to be returned by va_arg. This allows va_lists to be passed
between different LLVM procedures (though it is unlikely that an LLI
va_list would make sense to an external function, except by chance.)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9965 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
d0fde30ce850b78371fd1386338350591f9ff494 11-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Put all LLVM code into the llvm namespace, as per bug 109.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b56a6bc96a483b47da71b24efaa4380d463bbe17 05-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Abort when the user program calls abort, instead of printing a funny message and calling exit(1).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b8afbe61394d77467406de0b0b3d5b134fd036ae 25-Oct-2003 Chris Lattner <sabre@nondot.org> Unbreak the build


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9502 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b576c94c15af9a440f69d9d03c2afead7971118c 20-Oct-2003 John Criswell <criswell@uiuc.edu> Added LLVM project notice to the top of every C++ source file.
Header files will be on the way.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4c6654963dfa4b91c702a913f3715c4a207472d2 18-Oct-2003 Chris Lattner <sabre@nondot.org> Interpret the new varargs intrinsics correctly


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9222 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b8d15b2ad0a2266b275a00f07410e6c9d9ca6695 14-Oct-2003 Misha Brukman <brukman+llvm@gmail.com> Order #includes as per the style guide.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9128 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
e24b616faa7fc4242f807669d502a544e9b042fd 10-Oct-2003 Brian Gaeke <gaeke@uiuc.edu> Don't include Config/stdio.h or <stdio.h>.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9031 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
d5d96b9fcd779806555cf5db602f80d5a308a471 10-Oct-2003 Misha Brukman <brukman+llvm@gmail.com> Fix spelling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9021 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
58a6faac65d2e5f60a650c6f99bb6c615ad9fbc6 10-Oct-2003 Brian Gaeke <gaeke@uiuc.edu> Rewrite head-of-file comment.
In lookupFunction():
Change to use "F" for Function argument instead of ancient "M".
Remove commented-out code.
Change to use GetAddressOfSymbol instead of dlsym.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
ae19bf7c37fb2dac783d1aa68cc292d0a37b096f 09-Oct-2003 Chris Lattner <sabre@nondot.org> Do not read past the end of the contained type list


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8986 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
70975eef572b9e132bbaade16ba9edb76f15f287 05-Sep-2003 Brian Gaeke <gaeke@uiuc.edu> Make CreateArgv part of lli rather than part of ExecutionEngine.
Switch Interpreter and JIT's "run" methods to take a Function and a vector of
GenericValues.
Move (almost all of) the stuff that constructs a canonical call to main()
into lli (new methods "callAsMain", "makeStringVector").
Nuke getCurrentExecutablePath(), enableTracing(), getCurrentFunction(),
isStopped(), and many dead decls from interpreter.
Add linux strdup() support to interpreter.
Make interpreter's atexit handler runner and JIT's runAtExitHandlers() look
more alike, in preparation for refactoring.
atexit() is spelled "atexit", not "at_exit".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8366 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
1543e40cea50d244979f0667f453cf3466a6106c 24-Aug-2003 Chris Lattner <sabre@nondot.org> Add preliminary support for "any" pointersize/endianness. This will need
to change soon though.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8123 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
5560c9d49ccae132cabf1155f18aa0480dce3eda 18-Aug-2003 Misha Brukman <brukman+llvm@gmail.com> Spell `necessary' correctly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7944 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
7a73b80b9052136c8cd2234eb3433a07df7cf38e 30-Jun-2003 John Criswell <criswell@uiuc.edu> Merged in autoconf branch. This provides configuration via the autoconf
system.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
703379827f92c04f260c5c96cfe5b8450b434a6e 23-Jun-2003 Brian Gaeke <gaeke@uiuc.edu> Include <cmath> instead of <math.h>
Remove isnan; it's too unportable to handle cleanly at this point.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6866 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
1d0acacc63036fbce5fdc25147918cc0ee867a9d 17-Jun-2003 Brian Gaeke <gaeke@uiuc.edu> Use std::isnan instead of isnan. Brought back to you from the
future, by the reconciliation of the C++ and C99 standards. Someday.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6751 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
44edb6bdd2edc48eb31ed160a09006b610cead67 14-May-2003 Chris Lattner <sabre@nondot.org> Add support for atexit function, remove support for __main function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6194 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
374344c0cc5368da4bb1806b2b198bd7401fa1e8 08-May-2003 Chris Lattner <sabre@nondot.org> Implement varargs support for LLI!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6043 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
da82ed52ac02497d343b898cca0bb2cf303f062d 08-May-2003 Chris Lattner <sabre@nondot.org> A large number of simple changes:
* s/Method/Function
* Kill some obsolete (external) functions that used to be to support tracing


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6041 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
7471c486c03e36721bd43988774b1c43b9cc54e9 25-Apr-2003 Chris Lattner <sabre@nondot.org> Only do the %ld -> %lld promotion when running a 64 bit bytecode on a 32 bit host


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5942 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
c8cff9e6432a901166de2c7488d811aabfa20f48 25-Apr-2003 Chris Lattner <sabre@nondot.org> Add __strdup


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5941 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
5f311a7bce065e8d8cccec2245411ec76e23fdd6 23-Apr-2003 Chris Lattner <sabre@nondot.org> Add memcpy


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5887 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
957d62aa791078ba9e09307d43fff27b68ce8d51 23-Apr-2003 Chris Lattner <sabre@nondot.org> Implement a bunch of new external functions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
f87a198dcbaf95a6608b1484b42c6044d61003f6 23-Apr-2003 Chris Lattner <sabre@nondot.org> Add support for _IO_getc function used on linux


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5883 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
9dbf6dddcec7a627fabfc722e124311321de8fa0 22-Apr-2003 Chris Lattner <sabre@nondot.org> fprintf CAN take exactly 2 args


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5830 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
f9a88b684d8ca368ad51695c61a3580f4700da52 01-Apr-2003 Chris Lattner <sabre@nondot.org> Implement scanf and fix sscanf to actually endian swap the results correctly


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5763 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b111874b386f5e3d807a8f78edb010b40d507115 13-Jan-2003 Chris Lattner <sabre@nondot.org> * Wrap at 80 columns
* Fix a ton of warnings
* Implement puts


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
fe11a97fcde7c63109c3ad36570657807d0cd6ef 24-Dec-2002 Chris Lattner <sabre@nondot.org> Substantial changes to refactor LLI to incorporate both the Jello JIT and
the traditional LLI interpreter


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5125 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
dbcda22bf31e60e197f526fd3546cd196386937a 20-Dec-2002 Chris Lattner <sabre@nondot.org> Add support for isnan


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5111 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
6e6026b46569b01f8f6d4dcdb6c899c3a9c76b3e 20-Nov-2002 Chris Lattner <sabre@nondot.org> - Eliminated the deferred symbol table stuff in Module & Function, it really
wasn't an optimization and it was causing lots of bugs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
25f6f373b88199d861c1c618d3aa8f7b69d1e2ae 08-Nov-2002 Chris Lattner <sabre@nondot.org> Implement feof


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
a4479cd94615f84fe87533081e521669113557c7 07-Nov-2002 Chris Lattner <sabre@nondot.org> Implement freopen for burg


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4606 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
cf9b4f0f41242d8a7d4079ab9e6b163f54b621f1 07-Nov-2002 Chris Lattner <sabre@nondot.org> Implement fprintf


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4585 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
a5c0bfe09aad45e30805ef8a3c9358e96a39a3b5 06-Nov-2002 Chris Lattner <sabre@nondot.org> Implement fputc and ungetc to allow burg to run in lli


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4584 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
005cbce20e55077d7e02255812e5df068188d302 02-Oct-2002 Chris Lattner <sabre@nondot.org> * Implement the getc() function
* Support usage of stdin, stdout & stderr correctly in LLI!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
e8b3e9b2e1b1c8eaa3ba50e69053a5aa87def588 14-Sep-2002 Chris Lattner <sabre@nondot.org> * Fix a bug that was causing lli to misrun:
test/Regression/Transforms/DecomposeMultiDimRefs/mixedindices.c
* Eliminate unneccesary #include


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3712 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
69ab7a8ac6c52465f7b886fb11e390330e8cf10f 03-Aug-2002 Chris Lattner <sabre@nondot.org> Fix problem where lli would not print out a 64 bit value when the client code
uses the modifier "%ld". Now lli passes off "%lld" to the underlying runtime
library in this case.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3230 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
0b12b5f50ec77a8bd01b92d287c52d748619bb4b 25-Jun-2002 Chris Lattner <sabre@nondot.org> MEGAPATCH checkin.

For details, See: docs/2002-06-25-MegaPatchInfo.txt


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2778 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
1ee34a5a5ba52557697e7eb607e8bd5d4ce0d492 20-May-2002 Chris Lattner <sabre@nondot.org> Remove explicit support for tracing code. It should be linked into the
executable just like everything else.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2674 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
eb1a8453f9571cea2dc0a79374351db78f31bc28 19-May-2002 Vikram S. Adve <vadve@cs.uiuc.edu> Added external functions for hashing pointers to sequence numbers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2659 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
2012d5e33ffa601eb1c58f6830017dce1a1774b3 17-Apr-2002 Chris Lattner <sabre@nondot.org> Fix a bug printing out %c formated characters.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2277 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
2fbfdcffd3e0cf41422aaa6c526c37cb02b81341 07-Apr-2002 Chris Lattner <sabre@nondot.org> Change references to the Method class to be references to the Function
class. The Method class is obsolete (renamed) and all references to it
are being converted over to Function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2144 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
b408b1255646f31895dcbf099184e087bfa1ca39 29-Mar-2002 Chris Lattner <sabre@nondot.org> s/Method/Function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2036 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
665ee88504ae8e4440fd1609f3d88c3481cebe12 08-Mar-2002 Chris Lattner <sabre@nondot.org> Implement a bunch of new functions to support the SPECINT mcf
benchmark


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1841 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
34dd24b0b83885a3992c02ce91fe02c244e83e97 18-Feb-2002 Chris Lattner <sabre@nondot.org> Implement exp function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1774 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
295fe670596ed0f80850fa289f9bedd74d391b2d 23-Jan-2002 Chris Lattner <sabre@nondot.org> Implement the clock() function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1573 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
697954c15da58bd8b186dbafdedd8b06db770201 20-Jan-2002 Chris Lattner <sabre@nondot.org> Changes to build successfully with GCC 3.02


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
e7c6f726c8d18ff8803d9b3dc3a8443496002044 13-Dec-2001 Chris Lattner <sabre@nondot.org> Implement sprintf


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1445 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
7a1767520611d9ff6face702068de858e1cadf2c 04-Dec-2001 Chris Lattner <sabre@nondot.org> Renamed inst_const_iterator -> const_inst_iterator
Renamed op_const_iterator -> const_op_iterator
Renamed PointerType::getValueType() -> PointerType::getElementType()


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
69b5ce90dcd2043f5a6913665c357442b174fdd2 26-Nov-2001 Chris Lattner <sabre@nondot.org> Remove invalid,unneccesary ## token


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1391 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
782b939db105c1ead1ee9420d95fae8c341dbf47 26-Nov-2001 Chris Lattner <sabre@nondot.org> * Implement array indexing in lli
* Add external atoi method as well as floor, and srand


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
1b600144bda9717804ae3b998c95223947200075 13-Nov-2001 Chris Lattner <sabre@nondot.org> Implement some more rand functions for em3d benchmark


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
ea38c0e85c29783fdaf3b6c25fe7e3aa43688521 07-Nov-2001 Chris Lattner <sabre@nondot.org> * Switch to operation on pointers with PointerTy more consistently
* Fix misspeling
* Catch SIGFPE for traps
* info XXX now prints the raw contents of the GenericValue
* Switch to calloc instead of malloc (temporarily I hope) to bandaid Olden benchmarks
* Implement binary And & Or
* Convert expressions like this:
PointerTy SrcPtr = getOperandValue(I->getPtrOperand(), SF).PointerVal;
to:
GenericValue SRC = getOperandValue(I->getPtrOperand(), SF);
PointerTy SrcPtr = SRC.PointerVal;
because the prior way confuses purify.
* Taint the initial values of the value planes
* Handling 'print bb4' in the interpreter without crashing
* Print nicer stack frames with concise return type
* printf doesn't suck nearly as badly as it used to


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1177 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
6a6791b326f4a8b37a97957050c95bffdd5a4d6a 07-Nov-2001 Chris Lattner <sabre@nondot.org> Add %p format to printf, which MUST be used when printing pointer values.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1166 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
8679005193a8a3f8c0eb975a321bd08dec4793d7 06-Nov-2001 Chris Lattner <sabre@nondot.org> Implement log and drand48 for TSP bm


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1165 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
c063d385fa4d7255639ef0db5c506190e7cabcb4 06-Nov-2001 Chris Lattner <sabre@nondot.org> Implement sqrt, implement printf better, simpler.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
0f279b245dc5f84a6b7c89900fd0d48e324452e7 03-Nov-2001 Chris Lattner <sabre@nondot.org> Be lenient on types so that programs that are not very typesafe will work


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1104 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
4721f1304f3d49e44c78c9eed882a34ad7388be0 30-Oct-2001 Chris Lattner <sabre@nondot.org> Implement a gross function name map that must be used when linking statically
This is for use with purify


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1047 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
08845a242c574d695566cbc61e46da1c86c810ac 29-Oct-2001 Chris Lattner <sabre@nondot.org> * Fix pow wrapper to actually work
* Implement rudimentary printf support for lli


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1037 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
316a65bda996a5b22bf5e8dacadee848d51f6cbe 28-Oct-2001 Chris Lattner <sabre@nondot.org> Fix some illegal uses of the ## operator


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
3eb60f8775941422a7f04c0e16bd3a7fac9b73f5 28-Oct-2001 Vikram S. Adve <vadve@cs.uiuc.edu> Add methods print<TYPE> for String, Pointer, and each primitive type.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
c25931673092b1dae646aeeac1d18f75d9640ec7 27-Oct-2001 Chris Lattner <sabre@nondot.org> * Make pointer values work better by treating them uniformly as 64 bit values.
This causes code that is generated by gcc to work better.
* Implement mul & div
* Export malloc, free, and pow
* add strtol, atoi, and atol to the runtime library


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@988 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
e43db88b2d12f2aebbe62aca8465a46c92292fce 27-Oct-2001 Chris Lattner <sabre@nondot.org> * Implement exit() builtin function
* Implement linked in runtime library with puts(char*) in it
* implement builtin putchar(int) function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@985 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
f8f2afb8cc5f080b291faad678e0a256ea44d15f 18-Oct-2001 Chris Lattner <sabre@nondot.org> Enhancements to pass argc & argv to main if required


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
2e42d3a3060ff0c3d4c419f17493bc6a7683e9d0 15-Oct-2001 Chris Lattner <sabre@nondot.org> Implement global variables. Struct and Pointer initializers are not implemented yet though


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@818 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
ef9c23f2812322ae5c5f3140bfbcf92629d7ff47 03-Oct-2001 Chris Lattner <sabre@nondot.org> * Both Method & GlobalVariable now subclass GlobalValue
* ConstPoolPointerReference now represents a pointer to a GlobalValue
* Methods name references are now explicit pointers to methods
* Rename Value::GlobalVal to Value::GlobalVariableVal to avoid confusion


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@703 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
e93cdce4c9d3cbc991f662bf81efa1904acbf023 10-Sep-2001 Chris Lattner <sabre@nondot.org> Use the correct style casts


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@546 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
7720c8e1a7a252e983e3f3e7f841d7901dfea80c 10-Sep-2001 Chris Lattner <sabre@nondot.org> Add support for external methods


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@529 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp