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

Unified Diff: src/IceTargetLoweringMIPS32.h

Issue 1506653002: Subzero: Add Non-SFI support for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 12 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
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringMIPS32.h
diff --git a/src/IceTargetLoweringMIPS32.h b/src/IceTargetLoweringMIPS32.h
index 8a242bd43b60a1922e9f0918b27f31a29ecd2a18..d3789f8215b10119e498686d0eb4282b3f22e6ac 100644
--- a/src/IceTargetLoweringMIPS32.h
+++ b/src/IceTargetLoweringMIPS32.h
@@ -33,7 +33,7 @@ class TargetMIPS32 : public TargetLowering {
public:
~TargetMIPS32() override = default;
- static void staticInit();
+ static void staticInit(const ClFlags &Flags);
static std::unique_ptr<::Ice::TargetLowering> create(Cfg *Func) {
return makeUnique<TargetMIPS32>(Func);
}
@@ -99,11 +99,6 @@ public:
void emitVariable(const Variable *Var) const override;
- const char *getConstantPrefix() const final { return ""; }
- void emit(const ConstantUndef *C) const final {
- (void)C;
- llvm::report_fatal_error("Not yet implemented");
- }
void emit(const ConstantInteger32 *C) const final {
(void)C;
llvm::report_fatal_error("Not yet implemented");
@@ -120,6 +115,14 @@ public:
(void)C;
llvm::report_fatal_error("Not yet implemented");
}
+ void emit(const ConstantUndef *C) const final {
+ (void)C;
+ llvm::report_fatal_error("Not yet implemented");
+ }
+ void emit(const ConstantRelocatable *C) const final {
+ (void)C;
+ llvm::report_fatal_error("Not yet implemented");
+ }
// The following are helpers that insert lowered MIPS32 instructions with
// minimal syntactic overhead, so that the lowering code can look as close to
@@ -193,10 +196,10 @@ public:
Legal_Reg = 1 << 0, // physical register, not stack location
Legal_Imm = 1 << 1,
Legal_Mem = 1 << 2,
- Legal_All = ~Legal_None
+ Legal_Default = ~Legal_None
};
typedef uint32_t LegalMask;
- Operand *legalize(Operand *From, LegalMask Allowed = Legal_All,
+ Operand *legalize(Operand *From, LegalMask Allowed = Legal_Default,
int32_t RegNum = Variable::NoRegister);
Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister);
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698