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

Unified Diff: src/IceInstARM32.cpp

Issue 1449263003: Subzero. ARM32. Introduces the ShAmtImm Operand. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceInstARM32.h ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstARM32.cpp
diff --git a/src/IceInstARM32.cpp b/src/IceInstARM32.cpp
index 3f0d2e609e55e2a1d21fcdef477f17e51573f408..465d81d892378eed956afc351d5804e92d7786f1 100644
--- a/src/IceInstARM32.cpp
+++ b/src/IceInstARM32.cpp
@@ -247,6 +247,9 @@ OperandARM32Mem::OperandARM32Mem(Cfg *Func, Type Ty, Variable *Base,
Vars[1] = Index;
}
+OperandARM32ShAmtImm::OperandARM32ShAmtImm(ConstantInteger32 *SA)
+ : OperandARM32(kShAmtImm, IceType_i8), ShAmt(SA) {}
+
bool OperandARM32Mem::canHoldOffset(Type Ty, bool SignExt, int32_t Offset) {
int32_t Bits = SignExt ? TypeARM32Attributes[Ty].SExtAddrOffsetBits
: TypeARM32Attributes[Ty].ZExtAddrOffsetBits;
@@ -1771,6 +1774,12 @@ void OperandARM32Mem::dump(const Cfg *Func, Ostream &Str) const {
Str << "] AddrMode==" << getAddrMode();
}
+void OperandARM32ShAmtImm::emit(const Cfg *Func) const { ShAmt->emit(Func); }
+
+void OperandARM32ShAmtImm::dump(const Cfg *, Ostream &Str) const {
+ ShAmt->dump(Str);
+}
+
void OperandARM32FlexImm::emit(const Cfg *Func) const {
if (!BuildDefs::dump())
return;
« no previous file with comments | « src/IceInstARM32.h ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698