Diff Detail
Diff Detail
Event Timeline
Comment Actions
Wouldn't it make more sense to set this by default within LLVM, where it's already enabled by default for darwin?
Currently there's this code there:
AArch64Subtarget::AArch64Subtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const TargetMachine &TM, bool LittleEndian) : AArch64GenSubtargetInfo(TT, CPU, FS), ReserveX18(TT.isOSDarwin()),
Comment Actions
Thanks for pointing this out. This certainly seems a cleaner way/place to do this. Lemme give it a shot.
Comment Actions
I pushed a new patch D35531. This implements the logic in llvm AArch64SubTarget which seems to be the proper place to do this.
Once that patch is reviewed/accepted, I will abandon this one.