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; |