llvm-project
11ab23c3 - CodeGen: Keep reference to TargetRegisterInfo in TargetInstrInfo (#158224)

Commit
6 hours ago
CodeGen: Keep reference to TargetRegisterInfo in TargetInstrInfo (#158224) Both conceptually belong to the same subtarget, so it should not be necessary to pass in the context TargetRegisterInfo to any TargetInstrInfo member. Add this reference so those superfluous arguments can be removed. Most targets placed their TargetRegisterInfo as a member in TargetInstrInfo. A few had this owned by the TargetSubtargetInfo, so unify all targets to look the same.
Author
Parents
Loading