Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: src/PNaClTranslator.cpp

Issue 649463002: Handle "Mov" which is mov, movss, movsd, and used for nacl.read.tp. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: stuff Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 Name = FunctionIDValues[ID]->getName(); 290 Name = FunctionIDValues[ID]->getName();
291 } else if ((ID - FcnIDSize) < GlobalIDAddresses.size()) { 291 } else if ((ID - FcnIDSize) < GlobalIDAddresses.size()) {
292 Name = GlobalIDAddresses[ID - FcnIDSize]->getName(); 292 Name = GlobalIDAddresses[ID - FcnIDSize]->getName();
293 } else { 293 } else {
294 std::string Buffer; 294 std::string Buffer;
295 raw_string_ostream StrBuf(Buffer); 295 raw_string_ostream StrBuf(Buffer);
296 StrBuf << "Reference to global not defined: " << ID; 296 StrBuf << "Reference to global not defined: " << ID;
297 Error(StrBuf.str()); 297 Error(StrBuf.str());
298 Name = "??"; 298 Name = "??";
299 } 299 }
300 const uint64_t Offset = 0; 300 const Ice::RelocOffsetT Offset = 0;
301 C = getTranslator().getContext()->getConstantSym( 301 C = getTranslator().getContext()->getConstantSym(
302 getIcePointerType(), Offset, Name); 302 getIcePointerType(), Offset, Name);
303 ValueIDConstants[ID] = C; 303 ValueIDConstants[ID] = C;
304 return C; 304 return C;
305 } 305 }
306 306
307 /// Returns the number of function addresses (i.e. ID's) defined in 307 /// Returns the number of function addresses (i.e. ID's) defined in
308 /// the bitcode file. 308 /// the bitcode file.
309 unsigned getNumFunctionIDs() const { return NumFunctionIds; } 309 unsigned getNumFunctionIDs() const { return NumFunctionIds; }
310 310
(...skipping 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 2573
2574 if (TopLevelBlocks != 1) { 2574 if (TopLevelBlocks != 1) {
2575 errs() << IRFilename 2575 errs() << IRFilename
2576 << ": Contains more than one module. Found: " << TopLevelBlocks 2576 << ": Contains more than one module. Found: " << TopLevelBlocks
2577 << "\n"; 2577 << "\n";
2578 ErrorStatus = true; 2578 ErrorStatus = true;
2579 } 2579 }
2580 } 2580 }
2581 2581
2582 } // end of namespace Ice 2582 } // end of namespace Ice
OLDNEW
« src/IceDefs.h ('K') | « src/IceTargetLoweringX8632.cpp ('k') | src/assembler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698