Skip to content

Commit 1b2da83

Browse files
wangleiatGroverkss
authored andcommitted
[lldb][LoongArch] Function calls support in lldb expressions
This patch adds desired feature flags in JIT compiler to enable hard-float instructions if target supports them and allows to use floats and doubles in lldb expressions. Fited tests: lldb-shell :: Expr/TestAnonNamespaceParamFunc.cpp lldb-shell :: Expr/TestIRMemoryMap.test lldb-shell :: Expr/TestStringLiteralExpr.test lldb-shell :: SymbolFile/DWARF/debug-types-expressions.test Similar as llvm#99336 Depens on: llvm#114741 Reviewed By: SixWeining Pull Request: llvm#114742
1 parent c1f2a31 commit 1b2da83

File tree

7 files changed

+840
-1
lines changed

7 files changed

+840
-1
lines changed

lldb/include/lldb/Utility/ArchSpec.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ class ArchSpec {
107107
eRISCVSubType_riscv64,
108108
};
109109

110+
enum LoongArcheflags {
111+
eLoongArch_abi_soft_float = 0x00000000, /// soft float
112+
eLoongArch_abi_single_float =
113+
0x00000001, /// single precision floating point, +f
114+
eLoongArch_abi_double_float =
115+
0x00000002, /// double precision floating point, +d
116+
eLoongArch_abi_mask = 0x00000003,
117+
};
118+
110119
enum LoongArchSubType {
111120
eLoongArchSubType_unknown,
112121
eLoongArchSubType_loongarch32,

lldb/source/Plugins/ABI/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
foreach(target AArch64 ARM ARC Hexagon Mips MSP430 PowerPC RISCV SystemZ X86)
1+
foreach(target AArch64 ARM ARC Hexagon LoongArch Mips MSP430 PowerPC RISCV SystemZ X86)
22
if (${target} IN_LIST LLVM_TARGETS_TO_BUILD)
33
add_subdirectory(${target})
44
endif()

0 commit comments

Comments
 (0)