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

Unified Diff: src/IceTargetLowering.h

Issue 1571433004: Implements include/exclude register lists for translation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Merge with master. Created 4 years, 11 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 799872e1648718d6e55829ebd031fdb1e697f300..0a7f1478830841407d6535d9b5270d13782ef43c 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -152,9 +152,9 @@ class TargetLowering {
TargetLowering &operator=(const TargetLowering &) = delete;
public:
- static void staticInit(const ClFlags &Flags);
+ static void staticInit(GlobalContext *Ctx);
// Each target must define a public static method:
- // static void staticInit(const ClFlags &Flags);
+ // static void staticInit(GlobalContext *Ctx);
static std::unique_ptr<TargetLowering> createLowering(TargetArch Target,
Cfg *Func);
@@ -299,6 +299,12 @@ public:
protected:
explicit TargetLowering(Cfg *Func);
+ // Applies command line filters to TypeToRegisterSet array.
+ static void
+ filterTypeToRegisterSet(GlobalContext *Ctx, int32_t NumRegs,
+ llvm::SmallBitVector *TypeToRegisterSet,
John 2016/01/14 21:12:49 I know that llvm::SmallBitVector * and llvm::Sm
Karl 2016/01/14 22:00:53 Done.
+ SizeT TypeToRegisterSetSize,
+ std::function<IceString(int32_t)> getRegName);
virtual void lowerAlloca(const InstAlloca *Inst) = 0;
virtual void lowerArithmetic(const InstArithmetic *Inst) = 0;
virtual void lowerAssign(const InstAssign *Inst) = 0;

Powered by Google App Engine
This is Rietveld 408576698