| OLD | NEW | 
|---|
| 1 //===- subzero/src/PNaClTranslator.cpp - ICE from bitcode -----------------===// | 1 //===- subzero/src/PNaClTranslator.cpp - ICE from bitcode -----------------===// | 
| 2 // | 2 // | 
| 3 //                        The Subzero Code Generator | 3 //                        The Subzero Code Generator | 
| 4 // | 4 // | 
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source | 
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. | 
| 7 // | 7 // | 
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// | 
| 9 // | 9 // | 
| 10 // This file implements the PNaCl bitcode file to Ice, to machine code | 10 // This file implements the PNaCl bitcode file to Ice, to machine code | 
| (...skipping 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1913     if (Node->getInsts().empty()) { | 1913     if (Node->getInsts().empty()) { | 
| 1914       std::string Buffer; | 1914       std::string Buffer; | 
| 1915       raw_string_ostream StrBuf(Buffer); | 1915       raw_string_ostream StrBuf(Buffer); | 
| 1916       StrBuf << "Basic block " << Index << " contains no instructions"; | 1916       StrBuf << "Basic block " << Index << " contains no instructions"; | 
| 1917       Error(StrBuf.str()); | 1917       Error(StrBuf.str()); | 
| 1918       // TODO(kschimpf) Remove error recovery once implementation complete. | 1918       // TODO(kschimpf) Remove error recovery once implementation complete. | 
| 1919       Node->appendInst(Ice::InstUnreachable::create(Func.get())); | 1919       Node->appendInst(Ice::InstUnreachable::create(Func.get())); | 
| 1920     } | 1920     } | 
| 1921     ++Index; | 1921     ++Index; | 
| 1922   } | 1922   } | 
| 1923   Func->computePredecessors(); | 1923   Func->computeInOutEdges(); | 
| 1924 } | 1924 } | 
| 1925 | 1925 | 
| 1926 void FunctionParser::ReportInvalidBinaryOp(Ice::InstArithmetic::OpKind Op, | 1926 void FunctionParser::ReportInvalidBinaryOp(Ice::InstArithmetic::OpKind Op, | 
| 1927                                            Ice::Type OpTy) { | 1927                                            Ice::Type OpTy) { | 
| 1928   std::string Buffer; | 1928   std::string Buffer; | 
| 1929   raw_string_ostream StrBuf(Buffer); | 1929   raw_string_ostream StrBuf(Buffer); | 
| 1930   StrBuf << "Invalid operator type for " << Ice::InstArithmetic::getOpName(Op) | 1930   StrBuf << "Invalid operator type for " << Ice::InstArithmetic::getOpName(Op) | 
| 1931          << ". Found " << OpTy; | 1931          << ". Found " << OpTy; | 
| 1932   Error(StrBuf.str()); | 1932   Error(StrBuf.str()); | 
| 1933 } | 1933 } | 
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3014   } | 3014   } | 
| 3015   if (InputStreamFile.getBitcodeBytes().getExtent() % 4 != 0) { | 3015   if (InputStreamFile.getBitcodeBytes().getExtent() % 4 != 0) { | 
| 3016     errs() << IRFilename | 3016     errs() << IRFilename | 
| 3017            << ": Bitcode stream should be a multiple of 4 bytes in length.\n"; | 3017            << ": Bitcode stream should be a multiple of 4 bytes in length.\n"; | 
| 3018     ErrorStatus.assign(EC_Bitcode); | 3018     ErrorStatus.assign(EC_Bitcode); | 
| 3019     return; | 3019     return; | 
| 3020   } | 3020   } | 
| 3021 } | 3021 } | 
| 3022 | 3022 | 
| 3023 } // end of namespace Ice | 3023 } // end of namespace Ice | 
| OLD | NEW | 
|---|