XCheriot was not considered in this function, so RV32E+XCheriot defaulted to ilp32e instead of cheriot when no -target-abi was given. Since this function does not have unit test coverage, this adds new tests for the ABI inference functions: RISCVISAInfo::computeDefaultABI() and RISCVABI::computeTargetABI. This change was created with the help of AI tools
25 lines
400 B
CMake
25 lines
400 B
CMake
include_directories(
|
|
${LLVM_MAIN_SRC_DIR}/lib/Target/RISCV
|
|
${LLVM_BINARY_DIR}/lib/Target/RISCV
|
|
)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
RISCVCodeGen
|
|
RISCVDesc
|
|
RISCVInfo
|
|
Analysis
|
|
AsmParser
|
|
CodeGen
|
|
Core
|
|
MC
|
|
Passes
|
|
SelectionDAG
|
|
TargetParser
|
|
)
|
|
|
|
add_llvm_target_unittest(RISCVTests
|
|
MCInstrAnalysisTest.cpp
|
|
RISCVBaseInfoTest.cpp
|
|
RISCVInstrInfoTest.cpp
|
|
RISCVSelectionDAGTest.cpp
|
|
)
|