diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-14 20:57:14 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-14 20:57:14 +0000 |
commit | 59a549b7ec73cebb1fceaabc966e5e7e45485649 (patch) | |
tree | 4845fde7d864d60ec875f4d35703cb537a506472 /llvm/include | |
parent | 97022fd32549368bf6953850685202649d53f8d1 (diff) | |
download | bcm5719-llvm-59a549b7ec73cebb1fceaabc966e5e7e45485649.tar.gz bcm5719-llvm-59a549b7ec73cebb1fceaabc966e5e7e45485649.zip |
Place context in member variables instead of passing around pointers.
Use the opportunity to get rid of the trailing underscore variable names.
llvm-svn: 127618
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/CodeGen/ProcessImplicitDefs.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/ProcessImplicitDefs.h b/llvm/include/llvm/CodeGen/ProcessImplicitDefs.h index e2ab899f183..6ab57f03aee 100644 --- a/llvm/include/llvm/CodeGen/ProcessImplicitDefs.h +++ b/llvm/include/llvm/CodeGen/ProcessImplicitDefs.h @@ -18,14 +18,20 @@ namespace llvm { class MachineInstr; class TargetInstrInfo; + class TargetRegisterInfo; + class MachineRegisterInfo; + class LiveVariables; /// Process IMPLICIT_DEF instructions and make sure there is one implicit_def /// for each use. Add isUndef marker to implicit_def defs and their uses. class ProcessImplicitDefs : public MachineFunctionPass { - private: + const TargetInstrInfo *TII; + const TargetRegisterInfo *TRI; + MachineRegisterInfo *MRI; + LiveVariables *LV; bool CanTurnIntoImplicitDef(MachineInstr *MI, unsigned Reg, - unsigned OpIdx, const TargetInstrInfo *tii_, + unsigned OpIdx, SmallSet<unsigned, 8> &ImpDefRegs); public: |