llvm-project
7768cca2 - Mips: Force 64bit subtarget feature to be set for ABI options (#157446)

Commit
61 days ago
Mips: Force 64bit subtarget feature to be set for ABI options (#157446) Prepare to use this with HwMode. This is mostly code copied from x86. Mips has an exceptionally broken system where the target-abi option can be used to change the pointer size. i.e., you can mix and match 32-bit base triples with an explicit request to use 32-bit or 64-bit pointers such that you cannot rely on the triple reported pointer size. This hack manages to only work for codegen. The MC subtarget constructors do not have access to the target-abi name so those will continue to not have the appropriate feature set.
Author
Parents
Loading