<< " not allowed. Out of range. Must be less than "
<< FunctionDeclarationList.size();
blockError(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
if (!FunctionDeclarationList.empty())
return FunctionDeclarationList[0];
Fatal();
<< " not allowed. Out of range. Must be less than "
<< VariableDeclarations->size();
blockError(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
if (!VariableDeclarations->empty())
return VariableDeclarations->at(0);
Fatal();
raw_string_ostream StrBuf(Buffer);
StrBuf << "Don't know how to parse block id: " << BlockID;
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
SkipBlock();
return false;
}
raw_string_ostream StrBuf(Buffer);
StrBuf << "Type for parameter " << (i - 1)
<< " not valid. Found: " << ArgTy;
- // TODO(kschimpf) Remove error recovery once implementation complete.
ArgTy = Ice::IceType_i32;
}
FuncTy->appendArgType(ArgTy);
assert(!isIRGenerationDisabled());
if (Index == 0) {
Error("Branch to entry block not allowed");
- // TODO(kschimpf) Remove error recovery once implementation complete.
}
return getBasicBlock(Index);
}
StrBuf << "Illegal forward referenced instruction ("
<< NextLocalInstIndex << "): " << *Op;
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
++NextLocalInstIndex;
return createInstVar(Ty);
}
StrBuf << "Invalid relative value id: " << Id
<< " (must be <= " << BaseIndex << ")";
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
return 0;
}
return BaseIndex - Id;
StrBuf << "Multiple definitions for index " << Index << ": " << *Op
<< " and " << *IndexedOp;
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
IndexedOp = Op;
}
raw_string_ostream StrBuf(Buffer);
StrBuf << "Binary opcode " << Opcode << "not understood for type " << Ty;
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
Op = Ice::InstArithmetic::Add;
return false;
}
raw_string_ostream StrBuf(Buffer);
StrBuf << "Cast opcode " << Opcode << " not understood.\n";
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
CastKind = Ice::InstCast::Bitcast;
return false;
}
// if the return type is void. In such cases, a placeholder value
// for the badly formed instruction is not needed. Hence, if Ty is
// void, an error instruction is not appended.
- // TODO(kschimpf) Remove error recovery once implementation complete.
void appendErrorInstruction(Ice::Type Ty) {
// Note: we don't worry about downstream translation errors because
// the function will not be translated if any errors occur.
raw_string_ostream StrBuf(Buffer);
StrBuf << "Basic block " << Index << " contains no instructions";
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
Node->appendInst(Ice::InstUnreachable::create(Func.get()));
}
++Index;
uint64_t NumBbsRaw = Values[0];
if (NumBbsRaw == 0) {
Error("Functions must contain at least one basic block.");
- // TODO(kschimpf) Remove error recovery once implementation complete.
NumBbsRaw = 1;
} else if (NumBbsRaw > NaClBcIndexSize_t_Max) {
std::string Buffer;
<< IntrinsicInfo->getReturnType()
<< ". Found: " << Inst->getReturnType();
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
break;
}
case Ice::Intrinsics::WrongNumOfArgs: {
StrBuf << "Intrinsic call expects " << IntrinsicInfo->getNumArgs()
<< ". Found: " << Inst->getNumArgs();
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
break;
}
case Ice::Intrinsics::WrongCallArgType: {
<< IntrinsicInfo->getArgType(ArgIndex)
<< ". Found: " << Inst->getArg(ArgIndex)->getType();
Error(StrBuf.str());
- // TODO(kschimpf) Remove error recovery once implementation complete.
break;
}
}
// (FP->getOperand will create fatal error).
if (Index < getFunctionParser()->getNumGlobalIDs()) {
reportUnableToAssign("instruction", Index, Name);
- // TODO(kschimpf) Remove error recovery once implementation complete.
return;
}
if (isIRGenerationDisabled())