[llvm] RISCV: Replace most Specifier constants with relocation types (PR #138644)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat May 10 10:17:59 PDT 2025


================
@@ -15,34 +15,21 @@
 #define LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCEXPR_H
 
 #include "llvm/MC/MCExpr.h"
+#include "llvm/MC/MCFixup.h"
 
 namespace llvm {
 
 class StringRef;
 
 class RISCVMCExpr : public MCTargetExpr {
 public:
-  enum Specifier : uint8_t {
+  using Specifier = uint16_t;
+  enum {
----------------
MaskRay wrote:

Migrated `VK_CALL`.

Added comments about `VK_*_LO` and vendor-specific relocations.

https://github.com/llvm/llvm-project/pull/138644


More information about the llvm-commits mailing list