Lines Matching refs:OpTy
1805 case bitc::CST_CODE_CE_CAST: { // CE_CAST: [opcode, opty, opval]
1812 Type *OpTy = getTypeByID(Record[1]);
1813 if (!OpTy)
1815 Constant *Op = ValueList.getConstantFwdRef(Record[2], OpTy);
1846 case bitc::CST_CODE_CE_EXTRACTELT: { // CE_EXTRACTELT: [opty, opval, opval]
1849 VectorType *OpTy =
1851 if (!OpTy)
1853 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1859 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
1860 if (Record.size() < 3 || !OpTy)
1862 Constant *Op0 = ValueList.getConstantFwdRef(Record[0], OpTy);
1864 OpTy->getElementType());
1870 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
1871 if (Record.size() < 3 || !OpTy)
1873 Constant *Op0 = ValueList.getConstantFwdRef(Record[0], OpTy);
1874 Constant *Op1 = ValueList.getConstantFwdRef(Record[1], OpTy);
1876 OpTy->getNumElements());
1881 case bitc::CST_CODE_CE_SHUFVEC_EX: { // [opty, opval, opval, opval]
1883 VectorType *OpTy =
1885 if (Record.size() < 4 || !RTy || !OpTy)
1887 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1888 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
1895 case bitc::CST_CODE_CE_CMP: { // CE_CMP: [opty, opval, opval, pred]
1898 Type *OpTy = getTypeByID(Record[0]);
1899 if (!OpTy)
1901 OpTy);
1902 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
1904 if (OpTy->isFPOrFPVectorTy())
2693 case bitc::FUNC_CODE_INST_CAST: { // CAST: [opval, opty, destty, castopc]
2752 // EXTRACTVAL: [opty, opval, n x indices]
2773 // INSERTVAL: [opty, opval, opty, opval, n x indices]
2838 case bitc::FUNC_CODE_INST_EXTRACTELT: { // EXTRACTELT: [opty, opval, opval]
2876 case bitc::FUNC_CODE_INST_CMP: // CMP: [opty, opval, opval, pred]
2880 case bitc::FUNC_CODE_INST_CMP2: { // CMP2: [opty, opval, opval, pred]
2911 case bitc::FUNC_CODE_INST_RET: // RET: [opty,opval<optional>]
2952 case bitc::FUNC_CODE_INST_SWITCH: { // SWITCH: [opty, op0, op1, ...]
2955 Type *OpTy = getTypeByID(Record[0]);
2956 Value *Cond = getFnValueByID(Record[1], OpTy);
2958 if (!OpTy || !Cond || !Default)
2965 dyn_cast_or_null<ConstantInt>(getFnValueByID(Record[3+i*2], OpTy));
2976 case bitc::FUNC_CODE_INST_INDIRECTBR: { // INDIRECTBR: [opty, op0, op1, ...]
2979 Type *OpTy = getTypeByID(Record[0]);
2980 Value *Address = getFnValueByID(Record[1], OpTy);
2981 if (!OpTy || !Address)
3108 case FUNC_CODE_INST_FREE_2_7: { // FREE: [op, opty]
3122 case bitc::FUNC_CODE_INST_ALLOCA: { // ALLOCA: [instty, opty, op, align]
3123 // For backward compatibility, tolerate a lack of an opty, and use i32.
3131 Type *OpTy = Record.size() == 4 ? getTypeByID(Record[OpNum++]) :
3133 Value *Size = getFnValueByID(Record[OpNum++], OpTy);
3141 case bitc::FUNC_CODE_INST_LOAD: { // LOAD: [opty, op, align, vol]
3193 PointerType *OpTy = dyn_cast<PointerType>(Callee->getType());
3195 if (OpTy) FTy = dyn_cast<FunctionType>(OpTy->getElementType());
3234 Type *OpTy = getTypeByID(Record[0]);
3235 Value *Op = getFnValueByID(Record[1], OpTy);
3237 if (!OpTy || !Op || !ResTy)