Lines Matching refs:Ty

56                             GenericValue Src2, Type *Ty) {  in executeFAddInst()  argument
57 switch (Ty->getTypeID()) { in executeFAddInst()
61 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n"; in executeFAddInst()
67 GenericValue Src2, Type *Ty) { in executeFSubInst() argument
68 switch (Ty->getTypeID()) { in executeFSubInst()
72 dbgs() << "Unhandled type for FSub instruction: " << *Ty << "\n"; in executeFSubInst()
78 GenericValue Src2, Type *Ty) { in executeFMulInst() argument
79 switch (Ty->getTypeID()) { in executeFMulInst()
83 dbgs() << "Unhandled type for FMul instruction: " << *Ty << "\n"; in executeFMulInst()
89 GenericValue Src2, Type *Ty) { in executeFDivInst() argument
90 switch (Ty->getTypeID()) { in executeFDivInst()
94 dbgs() << "Unhandled type for FDiv instruction: " << *Ty << "\n"; in executeFDivInst()
100 GenericValue Src2, Type *Ty) { in executeFRemInst() argument
101 switch (Ty->getTypeID()) { in executeFRemInst()
109 dbgs() << "Unhandled type for Rem instruction: " << *Ty << "\n"; in executeFRemInst()
139 Type *Ty) { in executeICMP_EQ() argument
141 switch (Ty->getTypeID()) { in executeICMP_EQ()
142 IMPLEMENT_INTEGER_ICMP(eq,Ty); in executeICMP_EQ()
143 IMPLEMENT_VECTOR_INTEGER_ICMP(eq,Ty); in executeICMP_EQ()
146 dbgs() << "Unhandled type for ICMP_EQ predicate: " << *Ty << "\n"; in executeICMP_EQ()
153 Type *Ty) { in executeICMP_NE() argument
155 switch (Ty->getTypeID()) { in executeICMP_NE()
156 IMPLEMENT_INTEGER_ICMP(ne,Ty); in executeICMP_NE()
157 IMPLEMENT_VECTOR_INTEGER_ICMP(ne,Ty); in executeICMP_NE()
160 dbgs() << "Unhandled type for ICMP_NE predicate: " << *Ty << "\n"; in executeICMP_NE()
167 Type *Ty) { in executeICMP_ULT() argument
169 switch (Ty->getTypeID()) { in executeICMP_ULT()
170 IMPLEMENT_INTEGER_ICMP(ult,Ty); in executeICMP_ULT()
171 IMPLEMENT_VECTOR_INTEGER_ICMP(ult,Ty); in executeICMP_ULT()
174 dbgs() << "Unhandled type for ICMP_ULT predicate: " << *Ty << "\n"; in executeICMP_ULT()
181 Type *Ty) { in executeICMP_SLT() argument
183 switch (Ty->getTypeID()) { in executeICMP_SLT()
184 IMPLEMENT_INTEGER_ICMP(slt,Ty); in executeICMP_SLT()
185 IMPLEMENT_VECTOR_INTEGER_ICMP(slt,Ty); in executeICMP_SLT()
188 dbgs() << "Unhandled type for ICMP_SLT predicate: " << *Ty << "\n"; in executeICMP_SLT()
195 Type *Ty) { in executeICMP_UGT() argument
197 switch (Ty->getTypeID()) { in executeICMP_UGT()
198 IMPLEMENT_INTEGER_ICMP(ugt,Ty); in executeICMP_UGT()
199 IMPLEMENT_VECTOR_INTEGER_ICMP(ugt,Ty); in executeICMP_UGT()
202 dbgs() << "Unhandled type for ICMP_UGT predicate: " << *Ty << "\n"; in executeICMP_UGT()
209 Type *Ty) { in executeICMP_SGT() argument
211 switch (Ty->getTypeID()) { in executeICMP_SGT()
212 IMPLEMENT_INTEGER_ICMP(sgt,Ty); in executeICMP_SGT()
213 IMPLEMENT_VECTOR_INTEGER_ICMP(sgt,Ty); in executeICMP_SGT()
216 dbgs() << "Unhandled type for ICMP_SGT predicate: " << *Ty << "\n"; in executeICMP_SGT()
223 Type *Ty) { in executeICMP_ULE() argument
225 switch (Ty->getTypeID()) { in executeICMP_ULE()
226 IMPLEMENT_INTEGER_ICMP(ule,Ty); in executeICMP_ULE()
227 IMPLEMENT_VECTOR_INTEGER_ICMP(ule,Ty); in executeICMP_ULE()
230 dbgs() << "Unhandled type for ICMP_ULE predicate: " << *Ty << "\n"; in executeICMP_ULE()
237 Type *Ty) { in executeICMP_SLE() argument
239 switch (Ty->getTypeID()) { in executeICMP_SLE()
240 IMPLEMENT_INTEGER_ICMP(sle,Ty); in executeICMP_SLE()
241 IMPLEMENT_VECTOR_INTEGER_ICMP(sle,Ty); in executeICMP_SLE()
244 dbgs() << "Unhandled type for ICMP_SLE predicate: " << *Ty << "\n"; in executeICMP_SLE()
251 Type *Ty) { in executeICMP_UGE() argument
253 switch (Ty->getTypeID()) { in executeICMP_UGE()
254 IMPLEMENT_INTEGER_ICMP(uge,Ty); in executeICMP_UGE()
255 IMPLEMENT_VECTOR_INTEGER_ICMP(uge,Ty); in executeICMP_UGE()
258 dbgs() << "Unhandled type for ICMP_UGE predicate: " << *Ty << "\n"; in executeICMP_UGE()
265 Type *Ty) { in executeICMP_SGE() argument
267 switch (Ty->getTypeID()) { in executeICMP_SGE()
268 IMPLEMENT_INTEGER_ICMP(sge,Ty); in executeICMP_SGE()
269 IMPLEMENT_VECTOR_INTEGER_ICMP(sge,Ty); in executeICMP_SGE()
272 dbgs() << "Unhandled type for ICMP_SGE predicate: " << *Ty << "\n"; in executeICMP_SGE()
280 Type *Ty = I.getOperand(0)->getType(); in visitICmpInst() local
286 case ICmpInst::ICMP_EQ: R = executeICMP_EQ(Src1, Src2, Ty); break; in visitICmpInst()
287 case ICmpInst::ICMP_NE: R = executeICMP_NE(Src1, Src2, Ty); break; in visitICmpInst()
288 case ICmpInst::ICMP_ULT: R = executeICMP_ULT(Src1, Src2, Ty); break; in visitICmpInst()
289 case ICmpInst::ICMP_SLT: R = executeICMP_SLT(Src1, Src2, Ty); break; in visitICmpInst()
290 case ICmpInst::ICMP_UGT: R = executeICMP_UGT(Src1, Src2, Ty); break; in visitICmpInst()
291 case ICmpInst::ICMP_SGT: R = executeICMP_SGT(Src1, Src2, Ty); break; in visitICmpInst()
292 case ICmpInst::ICMP_ULE: R = executeICMP_ULE(Src1, Src2, Ty); break; in visitICmpInst()
293 case ICmpInst::ICMP_SLE: R = executeICMP_SLE(Src1, Src2, Ty); break; in visitICmpInst()
294 case ICmpInst::ICMP_UGE: R = executeICMP_UGE(Src1, Src2, Ty); break; in visitICmpInst()
295 case ICmpInst::ICMP_SGE: R = executeICMP_SGE(Src1, Src2, Ty); break; in visitICmpInst()
319 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) { \
326 Type *Ty) { in executeFCMP_OEQ() argument
328 switch (Ty->getTypeID()) { in executeFCMP_OEQ()
333 dbgs() << "Unhandled type for FCmp EQ instruction: " << *Ty << "\n"; in executeFCMP_OEQ()
376 Type *Ty) in executeFCMP_ONE() argument
380 IMPLEMENT_SCALAR_NANS(Ty, Src1, Src2) in executeFCMP_ONE()
382 MASK_VECTOR_NANS(Ty, Src1, Src2, false) in executeFCMP_ONE()
384 switch (Ty->getTypeID()) { in executeFCMP_ONE()
389 dbgs() << "Unhandled type for FCmp NE instruction: " << *Ty << "\n"; in executeFCMP_ONE()
393 if (Ty->isVectorTy()) in executeFCMP_ONE()
402 Type *Ty) { in executeFCMP_OLE() argument
404 switch (Ty->getTypeID()) { in executeFCMP_OLE()
409 dbgs() << "Unhandled type for FCmp LE instruction: " << *Ty << "\n"; in executeFCMP_OLE()
416 Type *Ty) { in executeFCMP_OGE() argument
418 switch (Ty->getTypeID()) { in executeFCMP_OGE()
423 dbgs() << "Unhandled type for FCmp GE instruction: " << *Ty << "\n"; in executeFCMP_OGE()
430 Type *Ty) { in executeFCMP_OLT() argument
432 switch (Ty->getTypeID()) { in executeFCMP_OLT()
437 dbgs() << "Unhandled type for FCmp LT instruction: " << *Ty << "\n"; in executeFCMP_OLT()
444 Type *Ty) { in executeFCMP_OGT() argument
446 switch (Ty->getTypeID()) { in executeFCMP_OGT()
451 dbgs() << "Unhandled type for FCmp GT instruction: " << *Ty << "\n"; in executeFCMP_OGT()
471 Dest = FUNC(Src1, Src2, Ty); \
479 Type *Ty) { in executeFCMP_UEQ() argument
481 IMPLEMENT_UNORDERED(Ty, Src1, Src2) in executeFCMP_UEQ()
482 MASK_VECTOR_NANS(Ty, Src1, Src2, true) in executeFCMP_UEQ()
483 IMPLEMENT_VECTOR_UNORDERED(Ty, Src1, Src2, executeFCMP_OEQ) in executeFCMP_UEQ()
484 return executeFCMP_OEQ(Src1, Src2, Ty); in executeFCMP_UEQ()
489 Type *Ty) { in executeFCMP_UNE() argument
491 IMPLEMENT_UNORDERED(Ty, Src1, Src2) in executeFCMP_UNE()
492 MASK_VECTOR_NANS(Ty, Src1, Src2, true) in executeFCMP_UNE()
493 IMPLEMENT_VECTOR_UNORDERED(Ty, Src1, Src2, executeFCMP_ONE) in executeFCMP_UNE()
494 return executeFCMP_ONE(Src1, Src2, Ty); in executeFCMP_UNE()
498 Type *Ty) { in executeFCMP_ULE() argument
500 IMPLEMENT_UNORDERED(Ty, Src1, Src2) in executeFCMP_ULE()
501 MASK_VECTOR_NANS(Ty, Src1, Src2, true) in executeFCMP_ULE()
502 IMPLEMENT_VECTOR_UNORDERED(Ty, Src1, Src2, executeFCMP_OLE) in executeFCMP_ULE()
503 return executeFCMP_OLE(Src1, Src2, Ty); in executeFCMP_ULE()
507 Type *Ty) { in executeFCMP_UGE() argument
509 IMPLEMENT_UNORDERED(Ty, Src1, Src2) in executeFCMP_UGE()
510 MASK_VECTOR_NANS(Ty, Src1, Src2, true) in executeFCMP_UGE()
511 IMPLEMENT_VECTOR_UNORDERED(Ty, Src1, Src2, executeFCMP_OGE) in executeFCMP_UGE()
512 return executeFCMP_OGE(Src1, Src2, Ty); in executeFCMP_UGE()
516 Type *Ty) { in executeFCMP_ULT() argument
518 IMPLEMENT_UNORDERED(Ty, Src1, Src2) in executeFCMP_ULT()
519 MASK_VECTOR_NANS(Ty, Src1, Src2, true) in executeFCMP_ULT()
520 IMPLEMENT_VECTOR_UNORDERED(Ty, Src1, Src2, executeFCMP_OLT) in executeFCMP_ULT()
521 return executeFCMP_OLT(Src1, Src2, Ty); in executeFCMP_ULT()
525 Type *Ty) { in executeFCMP_UGT() argument
527 IMPLEMENT_UNORDERED(Ty, Src1, Src2) in executeFCMP_UGT()
528 MASK_VECTOR_NANS(Ty, Src1, Src2, true) in executeFCMP_UGT()
529 IMPLEMENT_VECTOR_UNORDERED(Ty, Src1, Src2, executeFCMP_OGT) in executeFCMP_UGT()
530 return executeFCMP_OGT(Src1, Src2, Ty); in executeFCMP_UGT()
534 Type *Ty) { in executeFCMP_ORD() argument
536 if(Ty->isVectorTy()) { in executeFCMP_ORD()
539 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) { in executeFCMP_ORD()
554 } else if (Ty->isFloatTy()) in executeFCMP_ORD()
565 Type *Ty) { in executeFCMP_UNO() argument
567 if(Ty->isVectorTy()) { in executeFCMP_UNO()
570 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) { in executeFCMP_UNO()
585 } else if (Ty->isFloatTy()) in executeFCMP_UNO()
596 const Type *Ty, const bool val) { in executeFCMP_BOOL() argument
598 if(Ty->isVectorTy()) { in executeFCMP_BOOL()
612 Type *Ty = I.getOperand(0)->getType(); in visitFCmpInst() local
622 case FCmpInst::FCMP_FALSE: R = executeFCMP_BOOL(Src1, Src2, Ty, false); in visitFCmpInst()
624 case FCmpInst::FCMP_TRUE: R = executeFCMP_BOOL(Src1, Src2, Ty, true); in visitFCmpInst()
626 case FCmpInst::FCMP_ORD: R = executeFCMP_ORD(Src1, Src2, Ty); break; in visitFCmpInst()
627 case FCmpInst::FCMP_UNO: R = executeFCMP_UNO(Src1, Src2, Ty); break; in visitFCmpInst()
628 case FCmpInst::FCMP_UEQ: R = executeFCMP_UEQ(Src1, Src2, Ty); break; in visitFCmpInst()
629 case FCmpInst::FCMP_OEQ: R = executeFCMP_OEQ(Src1, Src2, Ty); break; in visitFCmpInst()
630 case FCmpInst::FCMP_UNE: R = executeFCMP_UNE(Src1, Src2, Ty); break; in visitFCmpInst()
631 case FCmpInst::FCMP_ONE: R = executeFCMP_ONE(Src1, Src2, Ty); break; in visitFCmpInst()
632 case FCmpInst::FCMP_ULT: R = executeFCMP_ULT(Src1, Src2, Ty); break; in visitFCmpInst()
633 case FCmpInst::FCMP_OLT: R = executeFCMP_OLT(Src1, Src2, Ty); break; in visitFCmpInst()
634 case FCmpInst::FCMP_UGT: R = executeFCMP_UGT(Src1, Src2, Ty); break; in visitFCmpInst()
635 case FCmpInst::FCMP_OGT: R = executeFCMP_OGT(Src1, Src2, Ty); break; in visitFCmpInst()
636 case FCmpInst::FCMP_ULE: R = executeFCMP_ULE(Src1, Src2, Ty); break; in visitFCmpInst()
637 case FCmpInst::FCMP_OLE: R = executeFCMP_OLE(Src1, Src2, Ty); break; in visitFCmpInst()
638 case FCmpInst::FCMP_UGE: R = executeFCMP_UGE(Src1, Src2, Ty); break; in visitFCmpInst()
639 case FCmpInst::FCMP_OGE: R = executeFCMP_OGE(Src1, Src2, Ty); break; in visitFCmpInst()
646 GenericValue Src2, Type *Ty) { in executeCmpInst() argument
649 case ICmpInst::ICMP_EQ: return executeICMP_EQ(Src1, Src2, Ty); in executeCmpInst()
650 case ICmpInst::ICMP_NE: return executeICMP_NE(Src1, Src2, Ty); in executeCmpInst()
651 case ICmpInst::ICMP_UGT: return executeICMP_UGT(Src1, Src2, Ty); in executeCmpInst()
652 case ICmpInst::ICMP_SGT: return executeICMP_SGT(Src1, Src2, Ty); in executeCmpInst()
653 case ICmpInst::ICMP_ULT: return executeICMP_ULT(Src1, Src2, Ty); in executeCmpInst()
654 case ICmpInst::ICMP_SLT: return executeICMP_SLT(Src1, Src2, Ty); in executeCmpInst()
655 case ICmpInst::ICMP_UGE: return executeICMP_UGE(Src1, Src2, Ty); in executeCmpInst()
656 case ICmpInst::ICMP_SGE: return executeICMP_SGE(Src1, Src2, Ty); in executeCmpInst()
657 case ICmpInst::ICMP_ULE: return executeICMP_ULE(Src1, Src2, Ty); in executeCmpInst()
658 case ICmpInst::ICMP_SLE: return executeICMP_SLE(Src1, Src2, Ty); in executeCmpInst()
659 case FCmpInst::FCMP_ORD: return executeFCMP_ORD(Src1, Src2, Ty); in executeCmpInst()
660 case FCmpInst::FCMP_UNO: return executeFCMP_UNO(Src1, Src2, Ty); in executeCmpInst()
661 case FCmpInst::FCMP_OEQ: return executeFCMP_OEQ(Src1, Src2, Ty); in executeCmpInst()
662 case FCmpInst::FCMP_UEQ: return executeFCMP_UEQ(Src1, Src2, Ty); in executeCmpInst()
663 case FCmpInst::FCMP_ONE: return executeFCMP_ONE(Src1, Src2, Ty); in executeCmpInst()
664 case FCmpInst::FCMP_UNE: return executeFCMP_UNE(Src1, Src2, Ty); in executeCmpInst()
665 case FCmpInst::FCMP_OLT: return executeFCMP_OLT(Src1, Src2, Ty); in executeCmpInst()
666 case FCmpInst::FCMP_ULT: return executeFCMP_ULT(Src1, Src2, Ty); in executeCmpInst()
667 case FCmpInst::FCMP_OGT: return executeFCMP_OGT(Src1, Src2, Ty); in executeCmpInst()
668 case FCmpInst::FCMP_UGT: return executeFCMP_UGT(Src1, Src2, Ty); in executeCmpInst()
669 case FCmpInst::FCMP_OLE: return executeFCMP_OLE(Src1, Src2, Ty); in executeCmpInst()
670 case FCmpInst::FCMP_ULE: return executeFCMP_ULE(Src1, Src2, Ty); in executeCmpInst()
671 case FCmpInst::FCMP_OGE: return executeFCMP_OGE(Src1, Src2, Ty); in executeCmpInst()
672 case FCmpInst::FCMP_UGE: return executeFCMP_UGE(Src1, Src2, Ty); in executeCmpInst()
673 case FCmpInst::FCMP_FALSE: return executeFCMP_BOOL(Src1, Src2, Ty, false); in executeCmpInst()
674 case FCmpInst::FCMP_TRUE: return executeFCMP_BOOL(Src1, Src2, Ty, true); in executeCmpInst()
683 Type *Ty = I.getOperand(0)->getType(); in visitBinaryOperator() local
689 if (Ty->isVectorTy()) { in visitBinaryOperator()
716 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) \ in visitBinaryOperator()
719 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) \ in visitBinaryOperator()
722 dbgs() << "Unhandled type for OP instruction: " << *Ty << "\n"; \ in visitBinaryOperator()
748 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) in visitBinaryOperator()
753 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) in visitBinaryOperator()
758 dbgs() << "Unhandled type for Rem instruction: " << *Ty << "\n"; in visitBinaryOperator()
773 case Instruction::FAdd: executeFAddInst(R, Src1, Src2, Ty); break; in visitBinaryOperator()
774 case Instruction::FSub: executeFSubInst(R, Src1, Src2, Ty); break; in visitBinaryOperator()
775 case Instruction::FMul: executeFMulInst(R, Src1, Src2, Ty); break; in visitBinaryOperator()
776 case Instruction::FDiv: executeFDivInst(R, Src1, Src2, Ty); break; in visitBinaryOperator()
777 case Instruction::FRem: executeFRemInst(R, Src1, Src2, Ty); break; in visitBinaryOperator()
791 GenericValue Src3, const Type *Ty) { in executeSelectInst() argument
793 if(Ty->isVectorTy()) { in executeSelectInst()
808 const Type * Ty = I.getOperand(0)->getType(); in visitSelectInst() local
812 GenericValue R = executeSelectInst(Src1, Src2, Src3, Ty); in visitSelectInst()
965 Type *Ty = I.getType()->getElementType(); // Type to be allocated in visitAllocaInst() local
971 unsigned TypeSize = (size_t)TD.getTypeAllocSize(Ty); in visitAllocaInst()
979 DEBUG(dbgs() << "Allocated Type: " << *Ty << " (" << TypeSize << " bytes) x " in visitAllocaInst()
1142 const Type *Ty = I.getType(); in visitShl() local
1144 if (Ty->isVectorTy()) { in visitShl()
1169 const Type *Ty = I.getType(); in visitLShr() local
1171 if (Ty->isVectorTy()) { in visitLShr()
1196 const Type *Ty = I.getType(); in visitAShr() local
1198 if (Ty->isVectorTy()) { in visitAShr()
1727 Type *Ty = I.getType(); in visitVAArgInst() local
1728 switch (Ty->getTypeID()) { in visitVAArgInst()
1736 dbgs() << "Unhandled dest type for vaarg instruction: " << *Ty << "\n"; in visitVAArgInst()
1753 Type *Ty = I.getType(); in visitExtractElementInst() local
1757 switch (Ty->getTypeID()) { in visitExtractElementInst()
1760 << *Ty << "\n"; in visitExtractElementInst()
1782 Type *Ty = I.getType(); in visitInsertElementInst() local
1784 if(!(Ty->isVectorTy()) ) in visitInsertElementInst()
1792 Type *TyContained = Ty->getContainedType(0); in visitInsertElementInst()
1818 Type *Ty = I.getType(); in visitShuffleVectorInst() local
1819 if(!(Ty->isVectorTy())) in visitShuffleVectorInst()
1831 Type *TyContained = Ty->getContainedType(0); in visitShuffleVectorInst()
2024 Type * Ty = CE->getOperand(0)->getType(); in getConstantExprValue() local
2029 case Instruction::FAdd: executeFAddInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2030 case Instruction::FSub: executeFSubInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2031 case Instruction::FMul: executeFMulInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2032 case Instruction::FDiv: executeFDivInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2033 case Instruction::FRem: executeFRemInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()