Lines Matching refs:StrBuf
270 raw_string_ostream StrBuf(Buffer); in getTypeByIDForDefining() local
271 StrBuf << "Can't define more than " << NaClBcIndexSize_t_Max in getTypeByIDForDefining()
273 blockError(StrBuf.str()); in getTypeByIDForDefining()
414 raw_string_ostream StrBuf(Buffer); in extractAlignment() local
415 StrBuf << Prefix << " alignment greater than 2**" << AlignPowerLimit in extractAlignment()
417 Parser->Error(StrBuf.str()); in extractAlignment()
535 raw_string_ostream StrBuf(Buffer); in reportLinkageError() local
536 StrBuf << Kind << " " << Decl.getName() in reportLinkageError()
539 StrBuf << "\n Use flag -allow-externally-defined-symbols to override"; in reportLinkageError()
540 Error(StrBuf.str()); in reportLinkageError()
605 raw_string_ostream StrBuf(Buffer); in reportBadTypeIDAs() local
607 StrBuf << "Can't find extended type for type id: " << ID; in reportBadTypeIDAs()
609 StrBuf << "Type id " << ID << " not " << WantedType << ". Found: " << *Ty; in reportBadTypeIDAs()
611 blockError(StrBuf.str()); in reportBadTypeIDAs()
617 raw_string_ostream StrBuf(Buffer); in reportGetFunctionByIDError() local
618 StrBuf << "Function index " << ID in reportGetFunctionByIDError()
621 blockError(StrBuf.str()); in reportGetFunctionByIDError()
630 raw_string_ostream StrBuf(Buffer); in reportGetGlobalVariableByIDError() local
631 StrBuf << "Global index " << Index in reportGetGlobalVariableByIDError()
634 blockError(StrBuf.str()); in reportGetGlobalVariableByIDError()
642 raw_string_ostream StrBuf(Buffer); in convertToIceTypeError() local
643 StrBuf << "Invalid LLVM type: " << *LLVMTy; in convertToIceTypeError()
644 Error(StrBuf.str()); in convertToIceTypeError()
771 raw_string_ostream StrBuf(Buffer); in ErrorAt() local
776 StrBuf << "Invalid " << getBlockName() << " record: <" << Record.GetCode(); in ErrorAt()
778 StrBuf << " " << Val; in ErrorAt()
780 StrBuf << ">"; in ErrorAt()
782 StrBuf << Message; in ErrorAt()
785 StrBuf.str()); in ErrorAt()
792 raw_string_ostream StrBuf(Buffer); in reportRecordSizeError() local
795 StrBuf << FirstChar << (BlockName + 1) << " " << RecordName in reportRecordSizeError()
798 StrBuf << " " << ContextMessage; in reportRecordSizeError()
799 StrBuf << " " << ExpectedSize << " argument"; in reportRecordSizeError()
801 StrBuf << "s"; in reportRecordSizeError()
802 StrBuf << ". Found: " << Record.GetValues().size(); in reportRecordSizeError()
803 Error(StrBuf.str()); in reportRecordSizeError()
810 raw_string_ostream StrBuf(Buffer); in ParseBlock() local
811 StrBuf << "Don't know how to parse block id: " << BlockID; in ParseBlock()
812 Error(StrBuf.str()); in ParseBlock()
820 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
821 StrBuf << "Don't know how to process " << getBlockName() in ProcessRecord()
823 Error(StrBuf.str()); in ProcessRecord()
840 raw_string_ostream StrBuf(Buffer); in ~TypesParser() local
841 StrBuf << "Types block expected " << ExpectedNumTypes in ~TypesParser()
843 Error(StrBuf.str()); in ~TypesParser()
875 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
876 StrBuf << "Size to big for count record: " << Size; in ProcessRecord()
877 Error(StrBuf.str()); in ProcessRecord()
933 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
934 StrBuf << "Type integer record with invalid bitsize: " << Values[0]; in ProcessRecord()
935 Error(StrBuf.str()); in ProcessRecord()
989 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
990 StrBuf << "Invalid type vector record: <" << Values[0] << " x " << BaseTy in ProcessRecord()
992 Error(StrBuf.str()); in ProcessRecord()
1013 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
1014 StrBuf << "Type for parameter " << (i - 1) in ProcessRecord()
1105 raw_string_ostream StrBuf(Buffer); in installGlobalVariables() local
1106 StrBuf << getBlockName() << " block expects " << SpecifiedNumberVars in installGlobalVariables()
1108 Error(StrBuf.str()); in installGlobalVariables()
1132 raw_string_ostream StrBuf(Buffer); in verifyNoMissingInitializers() local
1133 StrBuf << "Global variable @g" << NextGlobalID << " expected " in verifyNoMissingInitializers()
1136 StrBuf << "s"; in verifyNoMissingInitializers()
1137 StrBuf << ". Found: " << NumInits; in verifyNoMissingInitializers()
1138 Error(StrBuf.str()); in verifyNoMissingInitializers()
1184 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
1185 StrBuf << getBlockName() in ProcessRecord()
1187 Error(StrBuf.str()); in ProcessRecord()
1218 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
1219 StrBuf << "Relocation index " << Index << " to big. Expect index < " in ProcessRecord()
1221 Error(StrBuf.str()); in ProcessRecord()
1228 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
1229 StrBuf << "Addend of global reloc record too big: " << Offset; in ProcessRecord()
1230 Error(StrBuf.str()); in ProcessRecord()
1303 raw_string_ostream StrBuf(Buffer); in reportUnableToAssign() local
1304 StrBuf << getTableKind() << " " << getBlockName() << ": " << Context in reportUnableToAssign()
1306 Error(StrBuf.str()); in reportUnableToAssign()
1312 raw_string_ostream StrBuf(Buffer); in ReportDuplicateName() local
1313 StrBuf << getTableKind() << " " << getBlockName() << " defines duplicate " in ReportDuplicateName()
1315 Error(StrBuf.str()); in ReportDuplicateName()
1486 raw_string_ostream StrBuf(Buffer); in getBasicBlock() local
1487 StrBuf << "Reference to basic block " << Index in getBasicBlock()
1489 Error(StrBuf.str()); in getBasicBlock()
1530 raw_string_ostream StrBuf(Buffer); in getNextInstVar() local
1531 StrBuf << "Illegal forward referenced instruction (" in getNextInstVar()
1533 Error(StrBuf.str()); in getNextInstVar()
1548 raw_string_ostream StrBuf(Buffer); in convertRelativeToAbsIndex() local
1549 StrBuf << "Invalid relative value id: " << Id in convertRelativeToAbsIndex()
1551 Error(StrBuf.str()); in convertRelativeToAbsIndex()
1571 raw_string_ostream StrBuf(Buffer); in setOperand() local
1572 StrBuf << "Forward reference @" << Index << " too big. Have " in setOperand()
1575 Fatal(StrBuf.str()); in setOperand()
1595 raw_string_ostream StrBuf(Buffer); in setOperand() local
1596 StrBuf << "Multiple definitions for index " << Index << ": " << *Op in setOperand()
1598 Error(StrBuf.str()); in setOperand()
1652 raw_string_ostream StrBuf(Buffer); in isValidPointerType() local
1653 StrBuf << InstructionName << " address not " << PtrType in isValidPointerType()
1655 Error(StrBuf.str()); in isValidPointerType()
1665 raw_string_ostream StrBuf(Buffer); in isValidLoadStoreType() local
1666 StrBuf << InstructionName << " type not allowed: " << Ty << "*"; in isValidLoadStoreType()
1667 Error(StrBuf.str()); in isValidLoadStoreType()
1680 raw_string_ostream StrBuf(Buffer); in isValidLoadStoreAlignment() local
1681 StrBuf << InstructionName << " " << Ty << "*: not allowed for alignment " in isValidLoadStoreAlignment()
1683 Error(StrBuf.str()); in isValidLoadStoreAlignment()
1753 raw_string_ostream StrBuf(Buffer); in convertBinopOpcode() local
1754 StrBuf << "Binary opcode " << Opcode << "not understood for type " << Ty; in convertBinopOpcode()
1755 Error(StrBuf.str()); in convertBinopOpcode()
1921 raw_string_ostream StrBuf(Buffer); in convertCastOpToIceOp() local
1922 StrBuf << "Cast opcode " << Opcode << " not understood.\n"; in convertCastOpToIceOp()
1923 Error(StrBuf.str()); in convertCastOpToIceOp()
1970 raw_string_ostream StrBuf(Buffer); in convertCastOpToIceOp() local
1971 StrBuf << "Illegal cast: " << Ice::InstCast::getCastName(CastKind) << " " in convertCastOpToIceOp()
1973 Error(StrBuf.str()); in convertCastOpToIceOp()
2096 raw_string_ostream StrBuf(Buffer); in reportGetOperandUndefined() local
2097 StrBuf << "Value index " << Index << " not defined!"; in reportGetOperandUndefined()
2098 Error(StrBuf.str()); in reportGetOperandUndefined()
2109 raw_string_ostream StrBuf(Buffer); in verifyCallArgTypeMatches() local
2110 StrBuf << "Argument " << (Index + 1) << " of " << printName(Fcn) in verifyCallArgTypeMatches()
2112 Error(StrBuf.str()); in verifyCallArgTypeMatches()
2133 raw_string_ostream StrBuf(Buffer); in ExitBlock() local
2134 StrBuf << "Function declared " << DeclaredNumberBbs in ExitBlock()
2136 Error(StrBuf.str()); in ExitBlock()
2144 raw_string_ostream StrBuf(Buffer); in ExitBlock() local
2145 StrBuf << "Basic block " << Index << " contains no instructions"; in ExitBlock()
2146 Error(StrBuf.str()); in ExitBlock()
2157 raw_string_ostream StrBuf(Buffer); in reportInvalidBinaryOp() local
2158 StrBuf << "Invalid operator type for " << Ice::InstArithmetic::getOpName(Op) in reportInvalidBinaryOp()
2160 Error(StrBuf.str()); in reportInvalidBinaryOp()
2191 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2192 StrBuf << "Function defines " << NumBbs in ProcessRecord()
2195 Error(StrBuf.str()); in ProcessRecord()
2225 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2226 StrBuf << "Binop argument types differ: " << Type1 << " and " << Type2; in ProcessRecord()
2227 Error(StrBuf.str()); in ProcessRecord()
2267 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2268 StrBuf << "Select operands not same type. Found " << ThenType << " and " in ProcessRecord()
2270 Error(StrBuf.str()); in ProcessRecord()
2280 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2281 StrBuf << "Select condition type " << CondType in ProcessRecord()
2283 Error(StrBuf.str()); in ProcessRecord()
2289 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2290 StrBuf << "Select condition " << CondVal in ProcessRecord()
2292 Error(StrBuf.str()); in ProcessRecord()
2310 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2311 dumpVectorIndexCheckValue(StrBuf, IndexCheckValue); in ProcessRecord()
2312 StrBuf << ": extractelement " << VecType << " " << *Vec << ", " in ProcessRecord()
2314 Error(StrBuf.str()); in ProcessRecord()
2333 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2334 dumpVectorIndexCheckValue(StrBuf, IndexCheckValue); in ProcessRecord()
2335 StrBuf << ": insertelement " << VecType << " " << *Vec << ", " in ProcessRecord()
2338 Error(StrBuf.str()); in ProcessRecord()
2344 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2345 StrBuf << "Insertelement: Element type " in ProcessRecord()
2348 Error(StrBuf.str()); in ProcessRecord()
2367 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2368 StrBuf << "Compare argument types differ: " << Op1Type << " and " in ProcessRecord()
2370 Error(StrBuf.str()); in ProcessRecord()
2376 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2377 StrBuf << "Compare not defined for type " << Op1Type; in ProcessRecord()
2378 Error(StrBuf.str()); in ProcessRecord()
2386 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2387 StrBuf << "Compare record contains unknown integer predicate index: " in ProcessRecord()
2389 Error(StrBuf.str()); in ProcessRecord()
2398 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2399 StrBuf << "Compare record contains unknown float predicate index: " in ProcessRecord()
2401 Error(StrBuf.str()); in ProcessRecord()
2409 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2410 StrBuf << "Compare on type not understood: " << Op1Type; in ProcessRecord()
2411 Error(StrBuf.str()); in ProcessRecord()
2445 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2446 StrBuf << "Branch condition " << *Cond in ProcessRecord()
2448 Error(StrBuf.str()); in ProcessRecord()
2475 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2476 StrBuf << "Case condition must be non-wide integer. Found: " << CondTy; in ProcessRecord()
2477 Error(StrBuf.str()); in ProcessRecord()
2485 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2486 StrBuf << "Case condition expects type " << CondTy in ProcessRecord()
2488 Error(StrBuf.str()); in ProcessRecord()
2497 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2498 StrBuf << "Too many cases specified in switch: " << NumCasesRaw; in ProcessRecord()
2499 Error(StrBuf.str()); in ProcessRecord()
2514 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2515 StrBuf << "Sequence [1, 1, value, label] expected for case entry " in ProcessRecord()
2517 Error(StrBuf.str()); in ProcessRecord()
2546 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2547 StrBuf << "function block phi record size not valid: " << Values.size(); in ProcessRecord()
2548 Error(StrBuf.str()); in ProcessRecord()
2564 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2565 StrBuf << "Value " << *Op << " not type " << Ty in ProcessRecord()
2567 Error(StrBuf.str()); in ProcessRecord()
2585 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2586 StrBuf << "Alloca on non-i32 value. Found: " << *ByteCount; in ProcessRecord()
2587 Error(StrBuf.str()); in ProcessRecord()
2665 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2666 StrBuf << "Call to " << printName(Fcn) << " has " << NumParams in ProcessRecord()
2668 Error(StrBuf.str()); in ProcessRecord()
2678 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2679 StrBuf << "Call to " << printName(Fcn) << " has " << NumParams in ProcessRecord()
2681 Error(StrBuf.str()); in ProcessRecord()
2702 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2703 StrBuf << "Parameter " << (Index - ParamsStartIndex + 1) << " of " in ProcessRecord()
2705 Error(StrBuf.str()); in ProcessRecord()
2716 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2717 StrBuf << "Return type of " << printName(Fcn) in ProcessRecord()
2719 Error(StrBuf.str()); in ProcessRecord()
2732 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2733 StrBuf << "Argument " << *Op << " of " << printName(Fcn) in ProcessRecord()
2735 Error(StrBuf.str()); in ProcessRecord()
2746 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2747 StrBuf << "Function call calling convention value " << (CCInfo >> 1) in ProcessRecord()
2749 Error(StrBuf.str()); in ProcessRecord()
2862 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2863 StrBuf << "constant block integer record for non-integer type " in ProcessRecord()
2865 Error(StrBuf.str()); in ProcessRecord()
2889 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
2890 StrBuf << "constant block float record for non-floating type " in ProcessRecord()
2892 Error(StrBuf.str()); in ProcessRecord()
2933 raw_string_ostream StrBuf(Buffer); in reportUnableToAssign() local
2934 StrBuf << "Function-local " << Context << " name '" << Name in reportUnableToAssign()
2936 Error(StrBuf.str()); in reportUnableToAssign()
3204 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
3205 StrBuf << "Unknown bitstream version: " << Version; in ProcessRecord()
3206 Error(StrBuf.str()); in ProcessRecord()
3218 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
3219 StrBuf << "Function address has unknown calling convention: " in ProcessRecord()
3221 Error(StrBuf.str()); in ProcessRecord()
3227 raw_string_ostream StrBuf(Buffer); in ProcessRecord() local
3228 StrBuf << "Function address has unknown linkage. Found " << Values[3]; in ProcessRecord()
3229 Error(StrBuf.str()); in ProcessRecord()
3305 raw_string_ostream StrBuf(Buffer); in translate() local
3306 StrBuf << IRFilename << ": Does not contain a module!"; in translate()
3307 llvm::report_fatal_error(StrBuf.str()); in translate()