Skip to content

Commit

Permalink
[DPWBS-1210] feat(TargetLowering): set the stack pointer register in …
Browse files Browse the repository at this point in the history
…the TriCoreTargetLowering
  • Loading branch information
gargaroff committed Feb 10, 2020
1 parent dca8869 commit f981f31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/lib/Target/TriCore/TriCoreISelLowering.cpp
Expand Up @@ -44,6 +44,10 @@ TriCoreTargetLowering::TriCoreTargetLowering(const TargetMachine &TM,
addRegisterClass(MVT::i32, &TriCore::DataRegsRegClass);
addRegisterClass(MVT::i64, &TriCore::ExtDataRegsRegClass);

// Set up the stack pointer register
setStackPointerRegisterToSaveRestore(
STI.getRegisterInfo()->getStackRegister());

// Compute derived properties from the register classes
computeRegisterProperties(STI.getRegisterInfo());
}
Expand Down

0 comments on commit f981f31

Please sign in to comment.