summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter
Commit message (Collapse)AuthorAgeFilesLines
...
* The Interpreter was failing the AtExit UnitTest. This fixes it.Brian Gaeke2004-02-131-0/+4
| | | | llvm-svn: 11367
* Start using the new and improve interface to FunctionType argumentsChris Lattner2004-02-091-2/+2
| | | | llvm-svn: 11224
* rename the "exceptional" destination of an invoke instruction to the ↵Chris Lattner2004-02-081-2/+1
| | | | | | 'unwind' dest llvm-svn: 11202
* Don't pass anything to the IntrinsicLowering class that is not_intrinsic,Brian Gaeke2004-01-141-1/+4
| | | | | | | | | because that makes it abort. Also, fix a typo in a comment. This checkin brought to you by the "It only takes about 30 seconds to run ENABLE_LLI tests on Shootout on zion, even if they all dump core" fund. llvm-svn: 10844
* Clean up a lot of the code I added yesterday by exposing the IntrinsicLoweringChris Lattner2003-12-281-1/+0
| | | | | | implementation from the TargetMachine directly. llvm-svn: 10636
* Pass around IntrinsicLowering instances as appropriate.Chris Lattner2003-12-284-41/+58
| | | | | | Reimplement the Interpreters implementation of va_* to be more direct. llvm-svn: 10627
* No longer run atExit functions from run()Chris Lattner2003-12-262-10/+6
| | | | | | rename run to runFunction llvm-svn: 10609
* Finegrainify namespacificationChris Lattner2003-12-142-24/+2
| | | | llvm-svn: 10465
* Dynamically get the right-sized member of a GenericValue to hold a size_t, andBrian Gaeke2003-12-121-2/+8
| | | | | | use it to return the result of strlen. llvm-svn: 10433
* Since we are using a gep_type_iterator, we apparently must get the typeBrian Gaeke2003-12-121-2/+1
| | | | | | | index by using I.getOperand() here. This was failing an assertion on basically every struct access. llvm-svn: 10426
* Fix typo in comment. Add prototype for getConstantExprValue().Brian Gaeke2003-12-111-1/+3
| | | | llvm-svn: 10390
* Add support for --debug-only=interpreter, to print out instrs beforeBrian Gaeke2003-12-111-40/+144
| | | | | | | | | | | | | | | | | | interpreting them. Move support for getting the value of a ConstantExpr into getConstantExprValue(), and add support for the rest of the different kinds of ConstantExprs. (I don't think I like ConstantExprs!) This requires separate procedures executeShlInst() and executeShrInst(). Reduce the number of references to TheEE. Get rid of an old comment mentioning annotations. Fix exitCalled(), which was crashing the Interpreter. This was a leftover from the return-value code refactoring. llvm-svn: 10389
* implement methodChris Lattner2003-12-081-0/+7
| | | | llvm-svn: 10321
* Do not depend on structure elements being of type UByteTyChris Lattner2003-11-252-22/+31
| | | | llvm-svn: 10224
* Change LLI's internal representation of va_list to a pointer to the nextBrian Gaeke2003-11-133-13/+15
| | | | | | | | 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.) llvm-svn: 9965
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-114-1/+17
| | | | llvm-svn: 9903
* Implement vaarg instruction. This is not quite perfect: 2003-08-11-VaListArgBrian Gaeke2003-11-072-0/+36
| | | | | | still causes a crash. But it's better than before. llvm-svn: 9794
* popStackAndReturnValueToCaller() must advance instruction pointer to normalBrian Gaeke2003-11-071-5/+24
| | | | | | | | destination, if returning from an invoke. Implement 'unwind' instruction. llvm-svn: 9792
* Add stub version of unwind supportBrian Gaeke2003-11-072-0/+5
| | | | llvm-svn: 9789
* visitCallInst --> visitCallSite.Brian Gaeke2003-11-072-4/+7
| | | | | | Use visitCallSite to implement both CallInsts and InvokeInsts. llvm-svn: 9788
* Make the operation of visitCallInst() only depend on the CallSite.Brian Gaeke2003-11-071-7/+9
| | | | llvm-svn: 9787
* Use CallSites for call sites, instead of CallInsts. A revolutionary concept.Brian Gaeke2003-11-072-9/+10
| | | | llvm-svn: 9784
* Refactor the return-from-function code into popStackAndReturnValueToCaller().Brian Gaeke2003-11-072-37/+42
| | | | | | Make external function calls slightly less special; now they get a stack frame. llvm-svn: 9765
* Be friendly to gcc 3.4... good compiler. Nice compiler.Chris Lattner2003-11-053-3/+1
| | | | llvm-svn: 9726
* Abort when the user program calls abort, instead of printing a funny message ↵Brian Gaeke2003-11-051-4/+2
| | | | | | and calling exit(1). llvm-svn: 9716
* Use regular old malloc to emulate malloc/alloca instructions.Brian Gaeke2003-11-051-2/+1
| | | | llvm-svn: 9713
* Remove a comment which no longer applies.Brian Gaeke2003-11-051-5/+0
| | | | llvm-svn: 9712
* Unbreak the buildChris Lattner2003-10-251-1/+0
| | | | llvm-svn: 9502
* ExecutionEngine::create no longer takes a TraceMode argument.Brian Gaeke2003-10-241-18/+4
| | | | | | | | | | CurFrame, TraceMode, and the CachedWriter are history. The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history. ExecutionContext now keeps Values for each stack frame in a std::map. printValue() and print() are history. executeInstruction() is now part of run(). llvm-svn: 9493
* ExecutionEngine::create no longer takes a TraceMode argument.Brian Gaeke2003-10-241-13/+7
| | | | | | CurFrame, TraceMode, and the CachedWriter are history. llvm-svn: 9492
* The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history.Brian Gaeke2003-10-241-71/+0
| | | | llvm-svn: 9490
* Reduce the number of #includes.Brian Gaeke2003-10-241-186/+22
| | | | | | | | | | | | | CurFrame, TraceMode, and the CachedWriter are history. ArrayChecksEnabled and non-QuietMode are history. The ExecutionAnnotations (SlotNumber, InstNumber, and FunctionInfo) are history. ExecutionContext now keeps Values for each stack frame in a std::map. Stop pre-initializing Values on the stack to 42. Remove some dead variables, excess whitespace and commented-out code. executeInstruction() is now part of run(). printValue() and print() are history. llvm-svn: 9489
* Added LLVM copyright header.John Criswell2003-10-212-0/+14
| | | | llvm-svn: 9321
* Added LLVM copyright notice to Makefiles.John Criswell2003-10-201-0/+8
| | | | llvm-svn: 9312
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-203-0/+21
| | | | | | Header files will be on the way. llvm-svn: 9298
* Interpret the new varargs intrinsics correctlyChris Lattner2003-10-183-28/+13
| | | | llvm-svn: 9222
* Order #includes as per the style guide.Misha Brukman2003-10-141-3/+3
| | | | llvm-svn: 9128
* Don't include Config/stdio.h or <stdio.h>.Brian Gaeke2003-10-101-1/+0
| | | | llvm-svn: 9031
* Fix spelling.Misha Brukman2003-10-102-2/+2
| | | | llvm-svn: 9021
* Never set any signal handlers.Brian Gaeke2003-10-101-37/+2
| | | | | | Never call setjmp(), longjmp() or strsignal(). llvm-svn: 9014
* Rewrite head-of-file comment.Brian Gaeke2003-10-101-14/+16
| | | | | | | | | In lookupFunction(): Change to use "F" for Function argument instead of ancient "M". Remove commented-out code. Change to use GetAddressOfSymbol instead of dlsym. llvm-svn: 9013
* Do not read past the end of the contained type listChris Lattner2003-10-091-2/+2
| | | | llvm-svn: 8986
* Squelch warningChris Lattner2003-09-221-2/+2
| | | | llvm-svn: 8659
* Change FunctionInfo from being an annotation put on Functions to beChris Lattner2003-09-173-22/+9
| | | | | | something which is mapped from functions. llvm-svn: 8580
* Reorder #includes to follow LLVM conventionsChris Lattner2003-09-051-4/+4
| | | | llvm-svn: 8375
* ExecutionEngine.h, GenericValue.h --> include/llvm/ExecutionEngine/Brian Gaeke2003-09-051-2/+2
| | | | | | Build ExecutionEngine as library. llvm-svn: 8370
* Make getOperandValue and executeCastOperation methods of Interpreter.Brian Gaeke2003-09-052-3/+6
| | | | | | This lets us protect a few more ExecutionEngine methods. llvm-svn: 8367
* Make CreateArgv part of lli rather than part of ExecutionEngine.Brian Gaeke2003-09-053-110/+54
| | | | | | | | | | | | | | | 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". llvm-svn: 8366
* Remove printOperandInfo(), and simplify run().Brian Gaeke2003-09-051-30/+0
| | | | llvm-svn: 8362
* Remove support for printing values from a module by name, only usedBrian Gaeke2003-09-053-109/+0
| | | | | | | w/ interactive keyboard entry of names. With that, Support.cpp is history. llvm-svn: 8360
OpenPOWER on IntegriCloud