[llvm-commits] [llvm] r55691 - /llvm/trunk/include/llvm/CodeGen/FastISel.h
Evan Cheng
evan.cheng at apple.com
Tue Sep 2 23:43:10 PDT 2008
Author: evancheng
Date: Wed Sep 3 01:43:10 2008
New Revision: 55691
URL: http://llvm.org/viewvc/llvm-project?rev=55691&view=rev
Log:
Make UpdateValueMap, createResultReg, etc. protected instead of private so they can used by target hooks.
Modified:
llvm/trunk/include/llvm/CodeGen/FastISel.h
Modified: llvm/trunk/include/llvm/CodeGen/FastISel.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/FastISel.h?rev=55691&r1=55690&r2=55691&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/FastISel.h (original)
+++ llvm/trunk/include/llvm/CodeGen/FastISel.h Wed Sep 3 01:43:10 2008
@@ -208,12 +208,15 @@
/// from a specified index of a superregister.
unsigned FastEmitInst_extractsubreg(unsigned Op0, uint32_t Idx);
-private:
unsigned getRegForValue(Value *V,
DenseMap<const Value*, unsigned> &ValueMap);
+ void UpdateValueMap(Instruction* I, unsigned Reg,
+ DenseMap<const Value*, unsigned> &ValueMap);
+
unsigned createResultReg(const TargetRegisterClass *RC);
+private:
bool SelectBinaryOp(Instruction *I, ISD::NodeType ISDOpcode,
DenseMap<const Value*, unsigned> &ValueMap);
@@ -224,10 +227,7 @@
DenseMap<const Value*, unsigned> &ValueMap);
bool SelectCast(Instruction *I, ISD::NodeType Opcode,
- DenseMap<const Value*, unsigned> &ValueMap);
-
- void UpdateValueMap(Instruction* I, unsigned Reg,
- DenseMap<const Value*, unsigned> &ValueMap);
+ DenseMap<const Value*, unsigned> &ValueMap);
};
}
More information about the llvm-commits
mailing list