Lines Matching refs:OpTy
1370 case bitc::CST_CODE_CE_CAST: { // CE_CAST: [opcode, opty, opval]
1376 Type *OpTy = getTypeByID(Record[1]);
1377 if (!OpTy) return Error("Invalid CE_CAST record");
1378 Constant *Op = ValueList.getConstantFwdRef(Record[2], OpTy);
1405 case bitc::CST_CODE_CE_EXTRACTELT: { // CE_EXTRACTELT: [opty, opval, opval]
1407 VectorType *OpTy =
1409 if (OpTy == 0) return Error("Invalid CE_EXTRACTELT record");
1410 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1416 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
1417 if (Record.size() < 3 || OpTy == 0)
1419 Constant *Op0 = ValueList.getConstantFwdRef(Record[0], OpTy);
1421 OpTy->getElementType());
1427 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
1428 if (Record.size() < 3 || OpTy == 0)
1430 Constant *Op0 = ValueList.getConstantFwdRef(Record[0], OpTy);
1431 Constant *Op1 = ValueList.getConstantFwdRef(Record[1], OpTy);
1433 OpTy->getNumElements());
1438 case bitc::CST_CODE_CE_SHUFVEC_EX: { // [opty, opval, opval, opval]
1440 VectorType *OpTy =
1442 if (Record.size() < 4 || RTy == 0 || OpTy == 0)
1444 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1445 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
1452 case bitc::CST_CODE_CE_CMP: { // CE_CMP: [opty, opval, opval, pred]
1454 Type *OpTy = getTypeByID(Record[0]);
1455 if (OpTy == 0) return Error("Invalid CE_CMP record");
1456 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1457 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
1459 if (OpTy->isFPOrFPVectorTy())
2192 case bitc::FUNC_CODE_INST_CAST: { // CAST: [opval, opty, destty, castopc]
2230 // EXTRACTVAL: [opty, opval, n x indices]
2251 // INSERTVAL: [opty, opval, opty, opval, n x indices]
2316 case bitc::FUNC_CODE_INST_EXTRACTELT: { // EXTRACTELT: [opty, opval, opval]
2354 case bitc::FUNC_CODE_INST_CMP: // CMP: [opty, opval, opval, pred]
2358 case bitc::FUNC_CODE_INST_CMP2: { // CMP2: [opty, opval, opval, pred]
2376 case bitc::FUNC_CODE_INST_RET: // RET: [opty,opval<optional>]
2417 case bitc::FUNC_CODE_INST_SWITCH: { // SWITCH: [opty, op0, op1, ...]
2420 Type *OpTy = getTypeByID(Record[0]);
2421 Value *Cond = getFnValueByID(Record[1], OpTy);
2423 if (OpTy == 0 || Cond == 0 || Default == 0)
2430 dyn_cast_or_null<ConstantInt>(getFnValueByID(Record[3+i*2], OpTy));
2441 case bitc::FUNC_CODE_INST_INDIRECTBR: { // INDIRECTBR: [opty, op0, op1, ...]
2444 Type *OpTy = getTypeByID(Record[0]);
2445 Value *Address = getFnValueByID(Record[1], OpTy);
2446 if (OpTy == 0 || Address == 0)
2586 case bitc::FUNC_CODE_INST_ALLOCA: { // ALLOCA: [instty, opty, op, align]
2591 Type *OpTy = getTypeByID(Record[1]);
2592 Value *Size = getFnValueByID(Record[2], OpTy);
2599 case bitc::FUNC_CODE_INST_LOAD: { // LOAD: [opty, op, align, vol]
2611 // LOADATOMIC: [opty, op, align, vol, ordering, synchscope]
2735 PointerType *OpTy = dyn_cast<PointerType>(Callee->getType());
2737 if (OpTy) FTy = dyn_cast<FunctionType>(OpTy->getElementType());
2775 Type *OpTy = getTypeByID(Record[0]);
2776 Value *Op = getFnValueByID(Record[1], OpTy);
2778 if (!OpTy || !Op || !ResTy)