Similar to D72755.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I'm missing context here but do we want to restrict the ABIs to only those two? We are using ilp32, for example, and there are others (e.g., ilp32f, lp64, lp64f etc.).
mlir/lib/Target/LLVMIR/DebugTranslation.cpp | ||
---|---|---|
59 | IIRC we are using lower case for -target-abi? |
mlir/lib/Target/LLVMIR/DebugTranslation.cpp | ||
---|---|---|
61 | You can have hard floats without using a hard float calling convention; the ABI is distinct from the ISA choice (other than the obvious dependencies on registers existing if you want to use them). Defaulting to using a hard-float calling convention is fine (and IIRC the psABI even recommends that) but it must be possible to have, say, ilp32 rv32if. In the Clang world this is configured with -mabi. |
@jrtc27 Thanks for your comment. I found the solution.
mlir/lib/Target/LLVMIR/DebugTranslation.cpp | ||
---|---|---|
61 |
|
IIRC we are using lower case for -target-abi?
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp#L74