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

Side by Side Diff: src/PNaClTranslator.cpp

Issue 562783002: Fix bug introduced by CL 561883002. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 } 1624 }
1625 case naclbitc::FUNC_CODE_INST_STORE: { 1625 case naclbitc::FUNC_CODE_INST_STORE: {
1626 // STORE: [address, value, align] 1626 // STORE: [address, value, align]
1627 if (!isValidRecordSize(3, "function block store")) 1627 if (!isValidRecordSize(3, "function block store"))
1628 return; 1628 return;
1629 Ice::Operand *Address = getRelativeOperand(Values[0]); 1629 Ice::Operand *Address = getRelativeOperand(Values[0]);
1630 if (!isValidPointerType(Address, "Store")) 1630 if (!isValidPointerType(Address, "Store"))
1631 return; 1631 return;
1632 Ice::Operand *Value = getRelativeOperand(Values[1]); 1632 Ice::Operand *Value = getRelativeOperand(Values[1]);
1633 unsigned Alignment; 1633 unsigned Alignment;
1634 if (!extractAlignment("Store", Values[2], Alignment)) { 1634 extractAlignment("Store", Values[2], Alignment);
1635 // TODO(kschimpf) Remove error recovery once implementation complete.
1636 Alignment = 1;
1637 }
1638 if (!isValidLoadStoreAlignment(Alignment, Value->getType(), "Store")) 1635 if (!isValidLoadStoreAlignment(Alignment, Value->getType(), "Store"))
1639 return; 1636 return;
1640 Inst = Ice::InstStore::create(Func, Value, Address, Alignment); 1637 Inst = Ice::InstStore::create(Func, Value, Address, Alignment);
1641 break; 1638 break;
1642 } 1639 }
1643 default: 1640 default:
1644 // Generate error message! 1641 // Generate error message!
1645 BlockParserBaseClass::ProcessRecord(); 1642 BlockParserBaseClass::ProcessRecord();
1646 break; 1643 break;
1647 } 1644 }
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1931 if (TopLevelBlocks != 1) { 1928 if (TopLevelBlocks != 1) {
1932 errs() << IRFilename 1929 errs() << IRFilename
1933 << ": Contains more than one module. Found: " << TopLevelBlocks 1930 << ": Contains more than one module. Found: " << TopLevelBlocks
1934 << "\n"; 1931 << "\n";
1935 ErrorStatus = true; 1932 ErrorStatus = true;
1936 } 1933 }
1937 return; 1934 return;
1938 } 1935 }
1939 1936
1940 } // end of namespace Ice 1937 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698