From 307fc0961972ac5264d6f3459978fbec95cad3a9 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Wed, 19 Aug 2026 04:27:41 +0800 Subject: [RISCV][GlobalISel] Select and expand global addresses --- backend/include/rcc/CodeGen/GlobalObject.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'backend/include/rcc/CodeGen/GlobalObject.h') diff --git a/backend/include/rcc/CodeGen/GlobalObject.h b/backend/include/rcc/CodeGen/GlobalObject.h index 1ddc34a..b67421f 100644 --- a/backend/include/rcc/CodeGen/GlobalObject.h +++ b/backend/include/rcc/CodeGen/GlobalObject.h @@ -156,6 +156,15 @@ enum class GlobalUnnamedAddress : std::uint8_t { Count, }; +struct GlobalValueProperties final { + bool DSOLocal = false; + bool ExternalWeak = false; + bool ThreadLocal = false; + + friend constexpr bool operator==(const GlobalValueProperties &Left, + const GlobalValueProperties &Right) noexcept = default; +}; + struct GlobalObjectDesc final { std::string Symbol; GenericConstantType ObjectType; -- cgit v1.2.3