llvm-project
105ff16f - [RISCV] Change RISCVABI::computeTargetABI() to return Expected<ABI>

Commit
11 days ago
[RISCV] Change RISCVABI::computeTargetABI() to return Expected<ABI> Return Expected<ABI> instead of printing to errs()/reportFatalUsageError internally, so callers decide whether to fall back to the default ABI or treat the failure as fatal, and so it's unit-testable. Also fold the duplicated Hard-float 'f'/'d' ABI checks from RISCVAsmParser.cpp and RISCVISelLowering.cpp into computeTargetABI(), and add RISCVBaseInfoTest coverage for the error paths. This change was created with the help of AI tools Reviewed By: lenary Pull Request: https://github.com/llvm/llvm-project/pull/213410
Author
Parents
Loading