summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instruction.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Now that setcondinst has been eliminated, we can mark Value::SubclassIDChris Lattner2007-01-041-4/+0
| | | | | | const and remove the ugly mutator methods. llvm-svn: 32860
* For PR950:Reid Spencer2006-12-231-27/+27
| | | | | | | | This patch removes the SetCC instructions and replaces them with the ICmp and FCmp instructions. The SetCondInst instruction has been removed and been replaced with ICmpInst and FCmpInst. llvm-svn: 32751
* Allow the ICmp and FCmp instructions to be written by the AsmWriterReid Spencer2006-12-031-0/+2
| | | | llvm-svn: 32148
* For PR950:Reid Spencer2006-11-271-10/+23
| | | | | | | | | | The long awaited CAST patch. This introduces 12 new instructions into LLVM to replace the cast instruction. Corresponding changes throughout LLVM are provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the exception of 175.vpr which fails only on a slight floating point output difference. llvm-svn: 31931
* For PR950:Reid Spencer2006-11-201-1/+1
| | | | | | | | First in a series of patches to convert SetCondInst into ICmpInst and FCmpInst using only two opcodes and having the instructions contain their predicate value. Nothing uses these classes yet. More patches to follow. llvm-svn: 31867
* For PR950:Reid Spencer2006-11-081-1/+2
| | | | | | | | This patch converts the old SHR instruction into two instructions, AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not dependent on the sign of their operands. llvm-svn: 31542
* For PR950:Reid Spencer2006-11-021-2/+6
| | | | | | Replace the REM instruction with UREM, SREM and FREM. llvm-svn: 31369
* Fix Transforms/InstCombine/2006-10-26-VectorReassoc.llChris Lattner2006-10-261-5/+6
| | | | llvm-svn: 31200
* For PR950:Reid Spencer2006-10-261-2/+6
| | | | | | | | Make necessary changes to support DIV -> [SUF]Div. This changes llvm to have three division instructions: signed, unsigned, floating point. The bytecode and assembler are bacwards compatible, however. llvm-svn: 31195
* Add new SetCondInst::isRelational/isEquality methods. RenameChris Lattner2006-09-171-2/+2
| | | | | | Instruction::isRelational to Instruction::isComparison. llvm-svn: 30444
* Add some out-of-line virtual dtors so that the class has a "home", preventingChris Lattner2006-06-211-0/+6
| | | | | | vtables for (e.g.) Instruction from being emitted into every .o file. llvm-svn: 28898
* Add shufflevector support, todo, implement better constant folding.Chris Lattner2006-04-081-0/+1
| | | | llvm-svn: 27510
* VMCore support for the insertelement operation.Robert Bocchino2006-01-171-0/+1
| | | | llvm-svn: 25408
* Added support for the extractelement operation.Robert Bocchino2006-01-101-0/+1
| | | | llvm-svn: 25181
* add new helper functionChris Lattner2005-08-081-0/+9
| | | | llvm-svn: 22698
* core changes for varargsAndrew Lenharth2005-06-181-4/+1
| | | | llvm-svn: 22254
* Add a 'tail' marker for call instructions, patch contributed byChris Lattner2005-05-061-0/+2
| | | | | | Alexander Friedman. llvm-svn: 21722
* Remove trailing whitespaceMisha Brukman2005-04-211-7/+7
| | | | llvm-svn: 21427
* remove all of the various setName implementations, consolidating them intoChris Lattner2005-03-051-9/+0
| | | | | | Value::setName, which is no longer virtual. llvm-svn: 20464
* Remove the 2nd argument to Value::setNameChris Lattner2005-03-051-4/+1
| | | | llvm-svn: 20458
* Adjust to changes in User class.Chris Lattner2005-01-291-11/+8
| | | | llvm-svn: 19892
* Add methodChris Lattner2004-11-301-2/+27
| | | | llvm-svn: 18368
* Add support for undef and unreachableChris Lattner2004-10-161-0/+1
| | | | llvm-svn: 17041
* Implement remove/eraseFromParent methodsChris Lattner2004-10-111-0/+7
| | | | llvm-svn: 16922
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | 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/. llvm-svn: 16137
* Fold iType into Value::VTyChris Lattner2004-06-271-6/+6
| | | | llvm-svn: 14435
* Refactor common initialization code in private init() functions.Alkis Evlogimenos2004-05-261-6/+22
| | | | | | | This is a first step in supplying append to basic block constructors for all instruction types. llvm-svn: 13793
* Know the opcode name of the select instructionChris Lattner2004-03-121-0/+1
| | | | llvm-svn: 12324
* If changing a parent, don't add then remove the object from the leak detectorChris Lattner2004-02-041-5/+5
| | | | llvm-svn: 11106
* Implement new Instruction::isRelational methodChris Lattner2004-01-121-0/+16
| | | | llvm-svn: 10810
* * Finegrainify namespacificationChris Lattner2003-11-201-4/+1
| | | | | | | | | * Add new constructors to allow insertion of terminator instructions at the end of basic blocks. * Move a ReturnInst method out-of-line, so that the vtable and type info don't need to be emitted to every translation unit that uses the class. llvm-svn: 10107
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-201-0/+7
| | | | | | Header files will be on the way. llvm-svn: 9298
* Change the Opcode enum for PHI nodes from "Instruction::PHINode" to ↵Chris Lattner2003-10-191-1/+1
| | | | | | "Instruction::PHI" to be more consistent with the other instructions. llvm-svn: 9269
* Add support for the new varargs intrinsics and instructionsChris Lattner2003-10-181-1/+2
| | | | llvm-svn: 9226
* Regularize header file commentsChris Lattner2003-10-131-1/+1
| | | | llvm-svn: 9071
* Fix spelling/grammar.Misha Brukman2003-10-101-1/+1
| | | | llvm-svn: 9023
* Add support for unwindChris Lattner2003-09-081-0/+1
| | | | llvm-svn: 8407
* *** empty log message ***Tanya Lattner2003-07-311-1/+1
| | | | llvm-svn: 7447
* Added function to determine if an Instruction may trap.Tanya Lattner2003-07-311-0/+17
| | | | llvm-svn: 7442
* Add support for the new va_arg instructionChris Lattner2003-05-081-1/+2
| | | | llvm-svn: 6029
* - Eliminated the deferred symbol table stuff in Module & Function, it reallyChris Lattner2002-11-201-3/+3
| | | | | | wasn't an optimization and it was causing lots of bugs. llvm-svn: 4779
* New isAssociative/isCommutative inspection methods, graciously contributed byChris Lattner2002-10-311-0/+39
| | | | | | Casey Carter. llvm-svn: 4459
* Add capability to insert an instruction into a basic block immediately afterChris Lattner2002-09-101-1/+9
| | | | | | | | it is created, as part of the ctor call. Eliminate the GenericBinaryInst class llvm-svn: 3653
* Enable "garbage detection" of LLVM objects. Now users should be obnoxiousChris Lattner2002-09-081-0/+10
| | | | | | warnings. If they accidentally leak LLVM Value's. llvm-svn: 3620
* Move code out of header files into .cpp files to make future changes easierChris Lattner2002-09-061-0/+4
| | | | llvm-svn: 3605
* Remove support for NOT instructionChris Lattner2002-08-141-5/+2
| | | | llvm-svn: 3323
* Create a static version of Instruction::getOpcodeName(opCode) thatVikram S. Adve2002-07-141-0/+53
| | | | | | | can be invoked with only an opcode (i.e., without an instruction). Move all opCode->opCodeName translations there. llvm-svn: 2900
* MEGAPATCH checkin.Chris Lattner2002-06-251-2/+1
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2779
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-2/+2
| | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. llvm-svn: 2144
OpenPOWER on IntegriCloud