summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add DynamicLinker support for systems that provide windows.hChris Lattner2004-05-271-8/+23
| | | | llvm-svn: 13851
* Use the SymbolTable::isEmpty() method instead of checking for no valueReid Spencer2004-05-271-1/+1
| | | | | | | | | planes. A SymbolTable could still have types in it! This fixes problems with two regression tests that failed because a symbol table that only contained types was being omitted from bytecode files. Thanks to Chris for the reduced test case that helped find this immediately. llvm-svn: 13842
* This code is a real mess, but at least get the JIT *building* on platformsChris Lattner2004-05-271-0/+8
| | | | | | | (such as plan 9) without mmap. Of course it won't RUN... but that's another step. :) llvm-svn: 13839
* Add support for dos-style filesChris Lattner2004-05-271-1/+1
| | | | llvm-svn: 13837
* Fix InstCombine/load.ll & PR347.Chris Lattner2004-05-271-12/+24
| | | | | | | | | | This code hadn't been updated after the "structs with more than 256 elements" related changes to the GEP instruction. Also it was not handling the ConstantAggregateZero class. Now it does! llvm-svn: 13834
* Implement constant folding of fmod, which is used a lot in povrayChris Lattner2004-05-271-2/+9
| | | | llvm-svn: 13823
* Restructure call constant folding code a bit to make it simplerChris Lattner2004-05-271-39/+40
| | | | | | | | Add support for acos/asin/atan. 188.ammp contains three calls to acos with constant arguments. Constant folding it allows elimination of those 3 calls and three FP divisions of the results. llvm-svn: 13821
* Signals.h header moved. Eventually this should move into a lib/System library,Chris Lattner2004-05-271-1/+1
| | | | | | but not right now. llvm-svn: 13811
* Changes to make libSupport build on systems that don't have the wait syscall.Chris Lattner2004-05-271-30/+12
| | | | llvm-svn: 13806
* Add constructors that take a BasicBlock to append to, to the rest ofAlkis Evlogimenos2004-05-273-45/+175
| | | | | | the llvm::Instruction hierarchy. llvm-svn: 13800
* Do not pass a null pointer if this instruction is not prepended orAlkis Evlogimenos2004-05-261-2/+2
| | | | | | appended anywhere. llvm-svn: 13798
* Inline trivial constructors.Alkis Evlogimenos2004-05-262-33/+0
| | | | llvm-svn: 13797
* Several clean ups suggested by Chris: remove tabs, make SlotMachine do lazyReid Spencer2004-05-261-94/+97
| | | | | | | | initialization so we don't scan large Modules/Functions needlessly, tighten up restrictions on what can be put in SlotMachine (no Constants that aren't GlobalValues). llvm-svn: 13796
* Provide the correct patch for bug 345. The solution is to add a setTypeNameReid Spencer2004-05-261-7/+68
| | | | | | | | function to llvmAsmParser.y and then use it in the one place in the grammar that needs it. Also had to make Type::setName public because setTypeName needs it in order to retain compatibility with setValueName. llvm-svn: 13795
* Refactor common initialization code in private init() functions.Alkis Evlogimenos2004-05-266-98/+96
| | | | | | | This is a first step in supplying append to basic block constructors for all instruction types. llvm-svn: 13793
* Use one destination constructor for the unconditional branch.Alkis Evlogimenos2004-05-261-1/+1
| | | | llvm-svn: 13792
* Fix PR344: the incorrect remove was being used.Chris Lattner2004-05-261-1/+1
| | | | llvm-svn: 13790
* A quick and ugly hack to fix PR345. I used TypeTy specifically to makeChris Lattner2004-05-261-1/+7
| | | | | | Reid cringe :) llvm-svn: 13788
* Part of bug 122:Reid Spencer2004-05-262-63/+50
| | | | | | | | | | This change removes the BuildBytecodeInfo flag from the SlotCalculator class. This flag was needed to distinguish between the Bytecode/Writer and the AsmWriter. Now that AsmWriter doesn't use SlotCalculator, we can remove this flag and simplify some code. Also, some minor name changes to CachedWriter.h needed to be committed (missed in previous commit). llvm-svn: 13785
* Part of bug 122. Removed dependency of AsmWriter on SlotCalculator byReid Spencer2004-05-261-52/+426
| | | | | | | | | incorporating a significantly simpler "SlotMachine" into this file. The SlotMachine is tailored for use by only the AsmWriter whose requirements for slot numbers are vastly different than from the Bytecode/Writer. Code change passes all Feature and Regression tests. llvm-svn: 13784
* Adding scheduling class.Tanya Lattner2004-05-262-0/+246
| | | | llvm-svn: 13783
* Updating my cvs versions. THis is still in progress and much will be changed.Tanya Lattner2004-05-264-157/+299
| | | | llvm-svn: 13782
* Add a (not very meaningful) default constructor for AllocInfo objects.Brian Gaeke2004-05-251-4/+8
| | | | llvm-svn: 13773
* Put SlotTable.h inclusion back at front of list to be coding standardsReid Spencer2004-05-252-2/+2
| | | | | | compliant. Thanks, Chris. llvm-svn: 13771
* Make the constructor explicit so we can't implicitly convert bool toReid Spencer2004-05-251-1/+1
| | | | | | SlotTable. llvm-svn: 13766
* Make some improvements suggested by Chris.Reid Spencer2004-05-252-16/+18
| | | | llvm-svn: 13765
* Adding the initial implementation of the SlotTable class. This class isReid Spencer2004-05-253-0/+424
| | | | | | | | | | | | | the Abstract Data Type that holds slot number values and associates them with Type* and Value*. The SlotTable is simply the holder of the slot numbers and provides a controlled interface for building the table. It does not enforce any particular idiom or functionality for manipulating the slot numbers. This is part of bug_122. The SlotCalculator and SlotMachine classes will follow. llvm-svn: 13764
* Remove this file as well as it is no longer needed nor it compilesAlkis Evlogimenos2004-05-251-25/+0
| | | | llvm-svn: 13762
* Document a couple functions.Reid Spencer2004-05-251-0/+5
| | | | llvm-svn: 13761
* Changed to use SymbolTable's new iteration interfaces.Reid Spencer2004-05-251-6/+18
| | | | llvm-svn: 13759
* Changed to use SymbolTable's new lookup interface.Reid Spencer2004-05-251-2/+2
| | | | llvm-svn: 13758
* Made it illegal to pass a Type* through one of the Value* interfaces. TheReid Spencer2004-05-251-0/+4
| | | | | | | SymbolTable will now assert if this is done. This didn't find any incorrect usage of SymbolTable but will prevent future mistakes until Type != Value. llvm-svn: 13755
* Convert to SymbolTable's new iteration interface.Reid Spencer2004-05-256-95/+120
| | | | llvm-svn: 13754
* Convert to SymbolTable's new iteration interface. Remove tabs.Reid Spencer2004-05-251-14/+27
| | | | llvm-svn: 13753
* Completely rewrote the class. SymbolTable now separates Type* from Value* in ↵Reid Spencer2004-05-251-108/+240
| | | | | | | | | | | | preparation\ for making Type not derive from Value. There are now separate interfaces \ for looking up, finding, and inserting Types and Values. There are also \ three separate iterator interfaces, one for type planes, one for the types \ (type type plane), and one for values within a type plane. See the \ documentation in the Header file. llvm-svn: 13752
* Convert to SymbolTable's new lookup and iteration interfaces.Reid Spencer2004-05-252-30/+29
| | | | llvm-svn: 13751
* Remove unused header file.Reid Spencer2004-05-251-1/+0
| | | | llvm-svn: 13750
* Make this pass simply invoke SymbolTable::strip().Reid Spencer2004-05-251-31/+2
| | | | llvm-svn: 13749
* Remove use of Type::TypeTy from an assert. It will go away soon.Reid Spencer2004-05-251-1/+0
| | | | llvm-svn: 13748
* Get rid of a wart: useless getFILE function is now a cast macro.Reid Spencer2004-05-251-42/+2
| | | | llvm-svn: 13747
* Recognize memalign and friends, and handle them specially.Vikram S. Adve2004-05-251-1/+2
| | | | llvm-svn: 13741
* Implement InstCombine:shift.ll:test16, which turns (X >> C1) & C2 != C3Chris Lattner2004-05-251-0/+35
| | | | | | | | | | into (X & (C2 << C1)) != (C3 << C1), where the shift may be either left or right and the compare may be any one. This triggers 1546 times in 176.gcc alone, as it is a common pattern that occurs for bitfield accesses. llvm-svn: 13740
* Implement some helpersChris Lattner2004-05-251-0/+10
| | | | llvm-svn: 13738
* Implement instcombine/cast.ll:test16:Chris Lattner2004-05-251-0/+5
| | | | | | Canonicalize cast X to bool into a setne instruction llvm-svn: 13736
* Moved MachineBasicBlock deconstructor to cpp file and removed it from ↵Tanya Lattner2004-05-242-5/+11
| | | | | | LeakDetector to fix memory leak bug. llvm-svn: 13718
* Fix a bug in my previous checkinChris Lattner2004-05-241-0/+1
| | | | llvm-svn: 13717
* Added MachineFunction parent* to MachineBasicBlock. Customized ilist templateTanya Lattner2004-05-242-14/+34
| | | | | | to set the parent when a MachineBasicBlock is added to a MachineFunction. llvm-svn: 13716
* Eliminate an explicit use of the LLVM basic block, using getParent instead,Chris Lattner2004-05-241-1/+1
| | | | | | which simplifies the code llvm-svn: 13707
* Changed clone to be const.Tanya Lattner2004-05-241-1/+7
| | | | | | Changed copy constructor to set parent, prev, and next pointers to null. llvm-svn: 13706
* Spelling people's names right is kinda importantChris Lattner2004-05-231-1/+1
| | | | llvm-svn: 13702
OpenPOWER on IntegriCloud