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 | cf03e35d9009480a416b3546a4ee39093e69d506 (patch) | |
tree | 7880719be29d0d8d6516ce9f1993d123479a0898 /include | |
parent | fb32507d099849ab1fa3ee43f4578c3a0e971736 (diff) | |
download | llvm-cf03e35d9009480a416b3546a4ee39093e69d506.tar.gz llvm-cf03e35d9009480a416b3546a4ee39093e69d506.tar.bz2 llvm-cf03e35d9009480a416b3546a4ee39093e69d506.tar.xz |
Place context in member variables instead of passing around pointers.
Use the opportunity to get rid of the trailing underscore variable names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/ProcessImplicitDefs.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/ProcessImplicitDefs.h b/include/llvm/CodeGen/ProcessImplicitDefs.h index e2ab899f18..6ab57f03ae 100644 --- a/include/llvm/CodeGen/ProcessImplicitDefs.h +++ b/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: |