Add the preferred alignments in the way done in other targets, namely in <Target>ISelLowering.cpp.
However, using AArch64Subtarget::getProcFamily() is discouraged.
Possible alternatives:
- Make TargetLoweringBase::setPrefFunctionAlignment(), TargetLoweringBase::setPrefLoopAlignment(), etc, public.
- Override the visibility of methods above in AArch64TargetLowering.
- Add equivalent public methods in AArch64TargetLowering wrapping around them.
- Create a parameterizeable SubtargetFeature (?)
- Etc