aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merged in autoconf branch. This provides configuration via the autoconfJohn Criswell2003-06-301-3/+3
| | | | | | | system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
* Include <cmath> instead of <math.h>Brian Gaeke2003-06-231-10/+1
| | | | | | | 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
* Use std::isnan instead of isnan. Brought back to you from theBrian Gaeke2003-06-171-1/+1
| | | | | | | 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
* Add support for atexit function, remove support for __main functionChris Lattner2003-05-141-5/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6194 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement varargs support for LLI!Chris Lattner2003-05-081-0/+33
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6043 91177308-0d34-0410-b5e6-96231b3b80d8
* A large number of simple changes:Chris Lattner2003-05-081-91/+11
| | | | | | | | * 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
* Only do the %ld -> %lld promotion when running a 64 bit bytecode on a 32 bit ↵Chris Lattner2003-04-251-1/+2
| | | | | | host git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5942 91177308-0d34-0410-b5e6-96231b3b80d8
* Add __strdupChris Lattner2003-04-251-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5941 91177308-0d34-0410-b5e6-96231b3b80d8
* Add memcpyChris Lattner2003-04-231-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5887 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a bunch of new external functionsChris Lattner2003-04-231-0/+54
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5885 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for _IO_getc function used on linuxChris Lattner2003-04-231-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5883 91177308-0d34-0410-b5e6-96231b3b80d8
* fprintf CAN take exactly 2 argsChris Lattner2003-04-211-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5830 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement scanf and fix sscanf to actually endian swap the results correctlyChris Lattner2003-03-311-2/+97
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5763 91177308-0d34-0410-b5e6-96231b3b80d8
* * Wrap at 80 columnsChris Lattner2003-01-131-49/+47
| | | | | | | | * Fix a ton of warnings * Implement puts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5254 91177308-0d34-0410-b5e6-96231b3b80d8
* Substantial changes to refactor LLI to incorporate both the Jello JIT andChris Lattner2002-12-231-4/+5
| | | | | | | the traditional LLI interpreter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5125 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for isnanChris Lattner2002-12-201-0/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5111 91177308-0d34-0410-b5e6-96231b3b80d8
* - Eliminated the deferred symbol table stuff in Module & Function, it reallyChris Lattner2002-11-201-10/+9
| | | | | | | 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
* Implement feofChris Lattner2002-11-081-0/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4627 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement freopen for burgChris Lattner2002-11-071-2/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4606 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement fprintfChris Lattner2002-11-061-0/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4585 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement fputc and ungetc to allow burg to run in lliChris Lattner2002-11-061-0/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4584 91177308-0d34-0410-b5e6-96231b3b80d8
* * Implement the getc() functionChris Lattner2002-10-021-11/+86
| | | | | | | * 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
* * Fix a bug that was causing lli to misrun:Chris Lattner2002-09-131-1/+0
| | | | | | | | 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
* Fix problem where lli would not print out a 64 bit value when the client codeChris Lattner2002-08-021-2/+10
| | | | | | | | 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
* MEGAPATCH checkin.Chris Lattner2002-06-251-1/+2
| | | | | | | 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
* Remove explicit support for tracing code. It should be linked into theChris Lattner2002-05-201-43/+10
| | | | | | | executable just like everything else. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2674 91177308-0d34-0410-b5e6-96231b3b80d8
* Added external functions for hashing pointers to sequence numbers.Vikram S. Adve2002-05-191-0/+44
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2659 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug printing out %c formated characters.Chris Lattner2002-04-171-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2277 91177308-0d34-0410-b5e6-96231b3b80d8
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-9/+11
| | | | | | | | 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
* s/Method/FunctionChris Lattner2002-03-291-43/+43
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2036 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a bunch of new functions to support the SPECINT mcfChris Lattner2002-03-081-0/+84
| | | | | | | benchmark git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1841 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement exp functionChris Lattner2002-02-181-0/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1774 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the clock() functionChris Lattner2002-01-231-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1573 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-11/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement sprintfChris Lattner2001-12-131-11/+25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1445 91177308-0d34-0410-b5e6-96231b3b80d8
* Renamed inst_const_iterator -> const_inst_iteratorChris Lattner2001-12-041-2/+2
| | | | | | | | 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
* Remove invalid,unneccesary ## tokenChris Lattner2001-11-261-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1391 91177308-0d34-0410-b5e6-96231b3b80d8
* * Implement array indexing in lliChris Lattner2001-11-261-0/+25
| | | | | | | * 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
* Implement some more rand functions for em3d benchmarkChris Lattner2001-11-131-0/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1291 91177308-0d34-0410-b5e6-96231b3b80d8
* * Switch to operation on pointers with PointerTy more consistentlyChris Lattner2001-11-071-31/+36
| | | | | | | | | | | | | | | | | | | | | * 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
* Add %p format to printf, which MUST be used when printing pointer values.Chris Lattner2001-11-071-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1166 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement log and drand48 for TSP bmChris Lattner2001-11-061-0/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1165 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement sqrt, implement printf better, simpler.Chris Lattner2001-11-061-16/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1161 91177308-0d34-0410-b5e6-96231b3b80d8
* Be lenient on types so that programs that are not very typesafe will workChris Lattner2001-11-031-14/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1104 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a gross function name map that must be used when linking staticallyChris Lattner2001-10-301-18/+42
| | | | | | | This is for use with purify git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1047 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix pow wrapper to actually workChris Lattner2001-10-291-1/+56
| | | | | | | * Implement rudimentary printf support for lli git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1037 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some illegal uses of the ## operatorChris Lattner2001-10-281-4/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1013 91177308-0d34-0410-b5e6-96231b3b80d8
* Add methods print<TYPE> for String, Pointer, and each primitive type.Vikram S. Adve2001-10-281-0/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@994 91177308-0d34-0410-b5e6-96231b3b80d8
* * Make pointer values work better by treating them uniformly as 64 bit values.Chris Lattner2001-10-271-0/+22
| | | | | | | | | | 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
* * Implement exit() builtin functionChris Lattner2001-10-271-2/+34
| | | | | | | | * 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