[RISCV] Add preferred function and loop alignment RISCVSubtarget. NFC
authorCraig Topper <craig.topper@sifive.com>
Fri, 17 Feb 2023 16:43:40 +0000 (08:43 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 17 Feb 2023 16:43:40 +0000 (08:43 -0800)
commit22b564c64b736f5a422b3967720c871c8f9eee9b
treedda238e33974bc7fa9dc28581f845ebe492c547b
parentb22aa3d74f276afbfbd10953de68e3b4f8cef907
[RISCV] Add preferred function and loop alignment RISCVSubtarget. NFC

These seem like properties we will want to adjust based on -mtune.
Move them to subtarget like is done on ARM and AArch64. Don't add
any overrides yet.

Note there's a slight change here. We are now passing Align(1) for
preferred function alignment where we previously passed the minimum
alignment. As far as I could tell, it will be maxed with min when
it used so this should be ok.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D144048
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVSubtarget.h