summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/VMCore/InstructionsTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner2011-07-181-7/+7
| | | | llvm-svn: 135375
* Teach getCastOpcode about element-by-element vector casts. For example, "trunc"Duncan Sands2011-05-181-0/+8
| | | | | | | | | | | | | can be used to turn a <4 x i64> into a <4 x i32> but getCastOpcode would assert if you passed these types to it. Note that this strictly extends the previous functionality: if getCastOpcode previously accepted two vector types (i.e. didn't assert) then it still will and returns the same opcode (BitCast). That's because before it would only accept vectors with the same bitwidth, and the new code only touches vectors with the same length. However if two vectors have both the same bitwidth and the same length then their element types have the same bitwidth, so the new logic will return BitCast as before. llvm-svn: 131530
* Don't include Operator.h from InstrTypes.h.Jay Foad2011-04-111-0/+1
| | | | llvm-svn: 129271
* While testing dragonegg I noticed that isCastable and getCastOpcodeDuncan Sands2011-04-011-0/+13
| | | | | | | | had gotten out of sync: isCastable didn't think it was possible to cast the x86_mmx type to anything, while it did think it possible to cast an i64 to x86_mmx. llvm-svn: 128705
* Remove the "ugly" method BranchInst::setUnconditionalDest().Jay Foad2011-01-071-17/+0
| | | | llvm-svn: 123026
* Prefix `next' iterator operation with `llvm::'.Oscar Fuentes2010-08-021-2/+2
| | | | | | | | Fixes potential ambiguity problems on VS 2010. Patch by nobled! llvm-svn: 110029
* another oneGabor Greif2010-03-181-1/+1
| | | | llvm-svn: 98850
* feedback from NickGabor Greif2010-03-171-1/+2
| | | | llvm-svn: 98761
* more BranchInst testsGabor Greif2010-03-161-0/+15
| | | | llvm-svn: 98634
* add BranchInst testsGabor Greif2010-03-161-0/+71
| | | | llvm-svn: 98632
* appease valgrind testersGabor Greif2010-03-161-0/+4
| | | | llvm-svn: 98628
* add single return testsGabor Greif2010-03-161-0/+11
| | | | llvm-svn: 98625
* fix PR6589Gabor Greif2010-03-161-3/+3
| | | | | | | | | | | | | adjusted unittest I have added some doxygen to OptionalOperandTraits, so hopefully there will be no confusion in the future. Incidentally OptionalOperandTraits is not used any more (IIUC), but the obvious client would be BranchInstr, and I plan to rearrange it that way. llvm-svn: 98624
* begin humbly with a repro of PR6589Gabor Greif2010-03-161-0/+26
llvm-svn: 98623
OpenPOWER on IntegriCloud