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

Unified Diff: src/IceTargetLowering.h

Issue 2380023002: [SubZero] Vector types support for MIPS (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 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 side-by-side diff with in-line comments
Download patch
Index: src/IceTargetLowering.h
diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
index 278b7a85491d755ef58db204a268ff0e9e442dfc..82ee5c7b2faa164189756b8ea3ec2a656823bd37 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -256,6 +256,12 @@ public:
/// Return whether a 64-bit Variable should be split into a Variable64On32.
virtual bool shouldSplitToVariable64On32(Type Ty) const = 0;
+ /// Return whether a Vector Variable should be split into a VariableVecOn32.
+ virtual bool shouldSplitToVariableVecOn32(Type Ty) const {
+ (void)Ty;
+ return false;
+ }
+
bool hasComputedFrame() const { return HasComputedFrame; }
/// Returns true if this function calls a function that has the "returns
/// twice" attribute.
@@ -503,6 +509,9 @@ protected:
const SizeT NumElements = typeNumElements(DestTy);
Variable *T = Func->makeVariable(DestTy);
+ if (auto *VarVecOn32 = llvm::dyn_cast<VariableVecOn32>(T)) {
+ VarVecOn32->initVecElement(Func);
+ }
Context.insert<InstFakeDef>(T);
for (SizeT I = 0; I < NumElements; ++I) {
« no previous file with comments | « src/IceOperand.h ('k') | src/IceTargetLowering.cpp » ('j') | src/IceTargetLoweringMIPS32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698