Home | History | Annotate | Download | only in Reader

Lines Matching defs:OpTy

1359     case bitc::CST_CODE_CE_CAST: {  // CE_CAST: [opcode, opty, opval]
1365 Type *OpTy = getTypeByID(Record[1]);
1366 if (!OpTy) return Error("Invalid CE_CAST record");
1367 Constant *Op = ValueList.getConstantFwdRef(Record[2], OpTy);
1395 case bitc::CST_CODE_CE_EXTRACTELT: { // CE_EXTRACTELT: [opty, opval, opval]
1397 VectorType *OpTy =
1399 if (OpTy == 0) return Error("Invalid CE_EXTRACTELT record");
1400 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1407 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
1408 if (Record.size() < 3 || OpTy == 0)
1410 OpTy);
1412 OpTy->getElementType());
1419 VectorType *OpTy = dyn_cast<VectorType>(CurTy);
1420 if (Record.size() < 3 || OpTy == 0)
1422 Constant *Op0 = ValueList.getConstantFwdRef(Record[0], OpTy);
1423 Constant *Op1 = ValueList.getConstantFwdRef(Record[1], OpTy);
1425 OpTy->getNumElements());
1430 case bitc::CST_CODE_CE_SHUFVEC_EX: { // [opty, opval, opval, opval]
1432 VectorType *OpTy =
1434 if (Record.size() < 4 || RTy == 0 || OpTy == 0)
1436 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1437 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
1444 case bitc::CST_CODE_CE_CMP: { // CE_CMP: [opty, opval, opval, pred]
1446 Type *OpTy = getTypeByID(Record[0]);
1447 if (OpTy == 0) return Error("Invalid CE_CMP record");
1448 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1449 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
1451 if (OpTy->isFPOrFPVectorTy())
2262 case bitc::FUNC_CODE_INST_CAST: { // CAST: [opval, opty, destty, castopc]
2300 // EXTRACTVAL: [opty, opval, n x indices]
2321 // INSERTVAL: [opty, opval, opty, opval, n x indices]
2386 case bitc::FUNC_CODE_INST_EXTRACTELT: { // EXTRACTELT: [opty, opval, opval]
2424 case bitc::FUNC_CODE_INST_CMP: // CMP: [opty, opval, opval, pred]
2428 case bitc::FUNC_CODE_INST_CMP2: { // CMP2: [opty, opval, opval, pred]
2446 case bitc::FUNC_CODE_INST_RET: // RET: [opty,opval<optional>]
2488 case bitc::FUNC_CODE_INST_SWITCH: { // SWITCH: [opty, op0, op1, ...]
2493 Type *OpTy = getTypeByID(Record[1]);
2494 unsigned ValueBitWidth = cast<IntegerType>(OpTy)->getBitWidth();
2496 Value *Cond = getValue(Record, 2, NextValueNo, OpTy);
2498 if (OpTy == 0 || Cond == 0 || Default == 0)
2529 CaseBuilder.add(IntItem::fromType(OpTy, Low),
2530 IntItem::fromType(OpTy, High));
2533 CaseBuilder.add(IntItem::fromType(OpTy, Low));
2550 Type *OpTy = getTypeByID(Record[0]);
2551 Value *Cond = getValue(Record, 1, NextValueNo, OpTy);
2553 if (OpTy == 0 || Cond == 0 || Default == 0)
2560 dyn_cast_or_null<ConstantInt>(getFnValueByID(Record[3+i*2], OpTy));
2571 case bitc::FUNC_CODE_INST_INDIRECTBR: { // INDIRECTBR: [opty, op0, op1, ...]
2574 Type *OpTy = getTypeByID(Record[0]);
2575 Value *Address = getValue(Record, 1, NextValueNo, OpTy);
2576 if (OpTy == 0 || Address == 0)
2720 case bitc::FUNC_CODE_INST_ALLOCA: { // ALLOCA: [instty, opty, op, align]
2725 Type *OpTy = getTypeByID(Record[1]);
2726 Value *Size = getFnValueByID(Record[2], OpTy);
2733 case bitc::FUNC_CODE_INST_LOAD: { // LOAD: [opty, op, align, vol]
2745 // LOADATOMIC: [opty, op, align, vol, ordering, synchscope]
2869 PointerType *OpTy = dyn_cast<PointerType>(Callee->getType());
2871 if (OpTy) FTy = dyn_cast<FunctionType>(OpTy->getElementType());
2910 Type *OpTy = getTypeByID(Record[0]);
2911 Value *Op = getValue(Record, 1, NextValueNo, OpTy);
2913 if (!OpTy || !Op || !ResTy)